-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (58 loc) · 2.41 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
from setuptools import setup, find_packages
import pathlib
LOCATION = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
readme_file = LOCATION / "README.md"
readme_lines = [line.strip() for line in readme_file.open(encoding="utf-8").readlines()]
description = [line for line in readme_lines if line and not line.startswith("#")][0]
long_description = "\n".join(readme_lines)
def read_requirements():
"""parses requirements from requirements.txt"""
reqs_file = LOCATION / "requirements.txt"
reqs = [line.strip() for line in reqs_file.open(encoding="utf8").readlines() if not line.strip().startswith("#")]
names = []
links = []
for req in reqs:
if "://" in req:
links.append(req)
else:
names.append(req)
return {"install_requires": names, "dependency_links": links}
setup(
name="data_spot",
version="0.1.a1",
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/kudep/data_spot",
author="Denis Kuznetsov",
author_email="[email protected]",
classifiers=[ # Optional
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
# "Programming Language :: Python :: 3.7",
# "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only",
],
keywords="data", # Optional
# package_dir={"": "data_spot"}, # Optional
packages=find_packages(where="."), # Required
python_requires=">=3.6, <4",
# install_requires=[], # Optional
# extras_require={"dev": ["check-manifest"], "test": ["coverage"]}, # Optional
# package_data={"sample": ["package_data.dat"]}, # Optional
# data_files=[("my_data", ["data/data_file"])], # Optional
#
# For example, the following would provide a command called `sample` which
# executes the function `main` from this package when invoked:
# entry_points={"console_scripts": ["sample=sample:main"]}, # Optional
# project_urls={}, # Optional
)