-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
47 lines (43 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
41
42
43
44
45
46
47
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys
from setuptools import setup
# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('branchmgr/__init__.py', 'r') as f:
text = f.read()
match = re.search(version_regex, text)
if match:
version = match.group(1)
else:
raise RuntimeError("No version number found!")
setup(
name='branchmgr',
version=version,
description='A tool for managing GitHub branch permissions.',
long_description=open('README.rst').read() + '\r\n\r\n' + open('HISTORY.rst').read(),
author='Cory Benfield',
author_email='[email protected]',
url='http://python-hyper.org',
packages=['branchmgr'],
package_data={'': ['LICENSE', 'README.rst']},
package_dir={'branchmgr': 'branchmgr'},
include_package_data=True,
license='MIT License',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
],
install_requires=['twisted[tls]', 'gidgethub', 'treq', 'click'],
entry_points={
'console_scripts': [
'branchmgr = branchmgr.main:cli',
],
}
)