-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
74 lines (55 loc) · 2.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import os
import setuptools
# the name of the project
name = "flake8_idom"
# basic paths used to gather files
here = os.path.abspath(os.path.dirname(__file__))
root = os.path.join(here, name)
# -----------------------------------------------------------------------------
# Package Definition
# -----------------------------------------------------------------------------
package = {
"name": name,
"packages": setuptools.find_packages(exclude=["tests*"]),
"entry_points": {"flake8.extension": ["IDOM=flake8_idom:Plugin"]},
"python_requires": ">=3.7",
"description": "Flake8 plugin for IDOM",
"author": "Ryan Morshead",
"author_email": "[email protected]",
"url": "https://github.com/idom-team/flake8-idom",
"license": "MIT",
"platforms": "Linux, Mac OS X, Windows",
"classifiers": [
"Environment :: Console",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
],
"setup_requires": ["setuptools_scm"],
"use_scm_version": True,
}
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
requirements = []
with open(os.path.join(here, "requirements", "prod.txt"), "r") as f:
for line in map(str.strip, f):
if not line.startswith("#"):
requirements.append(line)
package["install_requires"] = requirements
# -----------------------------------------------------------------------------
# Library Description
# -----------------------------------------------------------------------------
with open(os.path.join(here, "README.md")) as f:
long_description = f.read()
package["long_description"] = long_description
package["long_description_content_type"] = "text/markdown"
# -----------------------------------------------------------------------------
# Install It
# -----------------------------------------------------------------------------
if __name__ == "__main__":
setuptools.setup(**package)