-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·60 lines (52 loc) · 1.75 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
# -*- coding: utf-8 -*-
import re
import setuptools
with open("CHANGELOG.md", "r") as fh:
changelog = fh.read().splitlines()
compiler = re.compile(pattern=r"^\s*version\s+\d+(\.\d+)*\s*$", flags=re.IGNORECASE)
raw_changelog_version = list(filter(compiler.match, changelog))[0]
changelog_version = re.sub(
pattern=r"^\s*version\s+",
repl="",
string=raw_changelog_version,
flags=re.IGNORECASE,
)
with open("README.md", "r") as fh:
long_description = fh.read()
with open("dev-requirements.txt", "r") as fh:
dev_requirements = fh.read().splitlines()
with open("requirements.txt", "r") as fh:
requirements = fh.read().splitlines()
setuptools.setup(
name="dependency-graph",
version=changelog_version,
author="frank690",
author_email="frank690@gmx.de",
description="The fast module to analyze your repositories internal dependencies",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/frank690/dependency-graph",
packages=setuptools.find_packages(
exclude=["tests", "tests.*", "*.tests.*", "*.tests", "docs"]
),
include_package_data=True,
setup_requires=["cython"],
install_requires=requirements,
extras_require={
"dev": dev_requirements,
},
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: Microsoft :: Windows ",
"Operating System :: Unix",
],
python_requires=">=3.7",
entry_points={
"console_scripts": [
"dependency_graph=dependency_graph:start",
"pre_commit_dependency_graph=dependency_graph:pre_commit_start",
]
},
)