-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
41 lines (37 loc) · 1.23 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from setuptools import setup, find_packages
def read_requirements(file):
"""
Read a requirements file and return its contents.
Useful when the user is passing a requirements file to install dependencies.
:param file: str(path)
:return: list
"""
with open(file) as f:
return f.read().splitlines()
setup(
name="lintmate",
version="0.1.0",
packages=find_packages(),
install_requires=read_requirements("requirements/base.txt"),
extras_require={
"yaml": read_requirements("requirements/yaml.txt"),
"python": read_requirements("requirements/python.txt"),
},
entry_points={
"console_scripts": [
"lintmate= linter_cli.cli:main",
],
},
author="thesujai",
author_email="[email protected]",
description="A CLI tool for linting and formatting files. Without worying about any dependencies.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/thesujai/linter-cli",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
)