-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
48 lines (44 loc) · 1.82 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
#!/usr/bin/env python
import os
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:
package = 'stscraper'
head = open(os.path.join(package, '__init__.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.scraper",
description="Python interfaces to Github, Bitbucket and Gitlab APIs",
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',
entry_points={
'console_scripts': ["check_gh_limits = stscraper.github:print_limits"]
},
packages=[package],
url='https://github.com/cmustrudel/strudel.scraper',
install_requires=requirements,
**kwargs
)