-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (51 loc) · 1.91 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
import re
import pathlib
from setuptools import setup, find_packages
with open("README.md", mode="r", encoding="utf-8") as f:
readme = f.read()
# parse the version instead of importing it to avoid dependency-related crashes
with open(
pathlib.Path("src") / "_pygitviz" / "__version.py", mode="r", encoding="utf-8"
) as f:
line = f.readline()
__version__ = line.split("=")[1].strip(" '\"\n")
assert re.match(r"^\d+(\.\d+){2}$", __version__)
test_requirements = ["pytest>=4.0.0", "coverage>=6.0.0", "pytest-mock", "codecov"]
required = ["daiquiri"]
setup(
name="pygitviz",
version=__version__,
description="Git repository visualizer for demonstrational and educational purposes",
long_description=readme,
long_description_content_type="text/markdown",
author="Simon Larsén",
author_email="[email protected]",
url="https://github.com/slarse/pygitviz",
download_url=(
"https://github.com/slarse/pygitviz/archive/v{}.tar.gz".format(__version__)
),
license="MIT",
package_dir={"": "src"},
packages=find_packages(where="src", exclude=("tests", "docs")),
py_modules=["pygitviz"],
tests_require=test_requirements,
install_requires=required,
extras_require=dict(TEST=test_requirements),
include_package_data=True,
zip_safe=False,
scripts=["bin/pygitviz"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows :: Windows 10",
],
python_requires=">=3.7",
)