-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
85 lines (63 loc) · 2.22 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
75
76
77
78
79
80
81
82
83
84
85
import os
from setuptools import setup
from setuptools import find_packages
import flashback
ROOT = os.path.dirname(__file__)
def read_requirements_file(path):
path = os.path.join(ROOT, path)
requirements = []
with open(path, "r", encoding="utf-8") as file:
for line in file:
line = line.strip()
if not line or line.startswith("# "):
continue
if line.startswith("-r "):
requirements += read_requirements_file(line[3:])
else:
requirements.append(line)
return requirements
def read_readme():
path = os.path.join(ROOT, "README.md")
readme = None
with open(path, "r", encoding="utf-8") as file:
readme = file.read()
return readme
setup(
version=flashback.__version__,
name="flashback",
author="Paul Renvoisé",
author_email="[email protected]",
url="https://github.com/PaulRenvoise/flashback",
description="An utility library for python",
long_description=read_readme(),
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
packages=find_packages(exclude=("tests", "tests.*")),
install_requires=read_requirements_file("requirements.txt"),
tests_require=read_requirements_file("requirements-test.txt"),
python_requires=">=3.8",
setup_requires=["pytest-runner"],
test_suite="tests",
entry_points="",
scripts="",
data_files=[],
ext_modules=[],
cmdclass={},
license="MIT",
)