forked from sigmavirus24/github3.py
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
executable file
·71 lines (63 loc) · 2.03 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·71 lines (63 loc) · 2.03 KB
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
67
68
69
70
71
#!/usr/bin/env python
importsys
importos
importre
kwargs= {}
requires= []
packages= [
"github3",
"github3.gists",
"github3.repos",
"github3.issues",
]
try:
fromsetuptoolsimportsetup
kwargs['test_suite'] ='run_tests.collect_tests'
kwargs['tests_require'] = ['mock', 'expecter', 'coverage==3.5.2']
packages.append('tests')
exceptImportError:
fromdistutils.coreimportsetup# NOQA
ifsys.argv[-1] in ("submit", "publish"):
os.system("python setup.py sdist upload")
sys.exit()
requires.extend(["requests >= 1.2.3", "uritemplate.py >= 0.2.0"])
__version__=''
withopen('github3/__init__.py', 'r') asfd:
reg=re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
forlineinfd:
m=reg.match(line)
ifm:
__version__=m.group(1)
break
ifnot__version__:
raiseRuntimeError('Cannot find version information')
setup(
name="github3.py",
version=__version__,
description=("Python wrapper for the GitHub API"
"(http://developer.github.com/v3)"),
long_description="\n\n".join([open("README.rst").read(),
open("HISTORY.rst").read()]),
license=open('LICENSE').read(),
author="Ian Cordasco",
author_email="graffatcolmingov@gmail.com",
url="https://github3py.readthedocs.org",
packages=packages,
package_data={'': ['LICENSE', 'AUTHORS.rst']},
include_package_data=True,
install_requires=requires,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: CPython',
],
**kwargs
)