-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
62 lines (51 loc) · 1.46 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
#!/usr/bin/python
# -* encoding: utf-8 *-
import os
import re
import sys
from distutils.core import setup
from setuptools import find_packages
_HERE = os.path.abspath(os.path.dirname(__file__))
with open("ghconf/__init__.py", "rt", encoding="utf-8") as vf:
lines = vf.readlines()
_version = "0.0.0+local"
for l in lines:
m = re.match("version = \"(.*?)\"", l)
if m:
_version = m.group(1)
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_requirements = [
'colorama==0.4.3',
'wrapt==1.12.1',
'pygithub==1.51',
'aspectlib==1.5.2',
'tqdm==4.49.0',
]
try:
long_description = open(os.path.join(_HERE, 'README.rst')).read()
except IOError:
long_description = ""
setup(
name='optile-ghconf',
version=_version,
packages=_packages,
entry_points={
"console_scripts": [
"ghconf = ghconf.main:app",
]
},
install_requires=_requirements,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Environment :: Console",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: POSIX",
],
author="Jonas Maurus (@jdelic)",
author_email="[email protected]",
license="MIT",
description="Apply common GitHub configuration to a whole organization via the GitHub API",
long_description=long_description,
)