-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
executable file
·52 lines (48 loc) · 1.49 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
import re
from os.path import dirname, join
from setuptools import find_packages, setup
with open(join(dirname(__file__), "projects", "__init__.py")) as fp:
for line in fp:
m = re.search(r'^\s*__version__\s*=\s*([\'"])([^\'"]+)\1\s*$', line)
if m:
version = m.group(2)
break
else:
raise RuntimeError("Unable to find own __version__ string")
with open("requirements.txt") as f:
requirements = f.read().splitlines()
extras = {
"testing": [
"pytest>=4.4.0",
"pytest-xdist==1.31.0",
"pytest-cov==2.8.1",
"flake8==3.7.9",
"black==21.8b0",
"typing-extensions==3.10.0.2",
]
}
setup(
name="projects",
version=version,
author="Fabio Beranizo Lopes",
author_email="fabio.beranizo@gmail.com",
description="Manages projects.",
license="Apache",
url="https://github.com/platiagro/projects",
packages=find_packages(),
package_data={
"projects": ["config/*.ipynb", "config/*.html"],
},
install_requires=requirements,
extras_require=extras,
python_requires=">=3.8.0",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)