-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (36 loc) · 1.36 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
import re
import setuptools
def get_property(prop, project):
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
open(project+'/__init__.py').read())
return result.group(1)
with open("README.md", "r", encoding="utf-8") as file:
long_description = file.read()
reqs = []
for line in open('requirements.txt', 'r').readlines():
reqs.append(line)
setuptools.setup(
name="sortasurvey",
version=get_property('__version__', 'sortasurvey'),
license="MIT",
author="Ashley Chontos",
author_email="achontos@hawaii.edu",
description="Automated and reproducible target selection for large collaborations",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ashleychontos/sort-a-survey",
project_urls={
"Documentation": "https://sortasurvey.readthedocs.io",
"Source": "https://github.com/ashleychontos/sort-a-survey",
"Bug Tracker": "https://github.com/ashleychontos/sort-a-survey/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=reqs,
packages=setuptools.find_packages(),
entry_points={'console_scripts':['survey=sortasurvey.cli:main']},
python_requires=">=3.6",
)