-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (39 loc) · 1.65 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
#!/usr/bin/env python
import re
from setuptools import setup
# get author, version and license from package files
# since it has some not yet installed dependencies, parsing the file:
head = open('stgithub.py').read(2048)
pattern = r"""__%s__\s*=\s*['"]([^'"]*)['"]"""
kwargs = {keyword: re.search(pattern % keyword, head).group(1)
for keyword in ('version', 'author', 'license')}
requirements = [
line.strip()
for line in open('requirements.txt')
if line.strip() and not line.strip().startswith('#')]
# options reference: https://docs.python.org/2/distutils/
# see also: https://packaging.python.org/tutorials/distributing-packages/
setup(
name="strudel.ghutils",
description="Interface to undocumented GitHub API",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
classifiers=[ # full list: https://pypi.org/classifiers/
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: POSIX :: Linux',
'Topic :: Scientific/Engineering'
],
platforms=["Linux", "Solaris", "Mac OS-X", "Unix", "Windows"],
python_requires='>2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
py_modules=['stgithub'],
url='https://github.com/cmustrudel/strudel.ghutils',
install_requires=requirements,
**kwargs
)