-
Notifications
You must be signed in to change notification settings - Fork 52
/
setup.py
64 lines (56 loc) · 2.07 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
#!/usr/bin/env python
from pathlib import Path
import setuptools
from setuptools import setup
def load_reqs(path):
reqs = []
with open(path, "r") as f:
for line in f.readlines():
if line.startswith("-r"):
reqs += load_reqs(line.split(" ")[1].strip())
else:
req = line.strip()
if req and not req.startswith("#"):
reqs.append(req)
return reqs
req_path = Path(__file__).parent / "requirements.txt"
requirements = load_reqs(req_path)
long_description = (Path(__file__).parent / "README.md").read_text(encoding="utf-8")
with (Path(__file__).parent / "VERSION").open("r") as fp:
version = fp.read().strip()
setup(
name="deon",
url="http://deon.drivendata.org",
project_urls={
"Homepage": "http://deon.drivendata.org",
"Source Code": "https://github.com/drivendataorg/deon",
"DrivenData": "http://drivendata.co",
},
version=version,
author="DrivenData",
author_email="info@drivendata.org",
include_package_data=True,
description="Deon adds an ethics checklist to your data science projects.",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
packages=setuptools.find_packages(),
keywords=["data science", "ethics", "checklist"],
python_requires=">=3.7",
install_requires=requirements,
entry_points={"console_scripts": ["deon=deon.cli:main"]},
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)