-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (43 loc) · 1.53 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
import os
import re
from setuptools import setup, find_packages
ROOT = os.path.dirname(__file__)
VERSION_RE = re.compile(r'''__version__ = ['"]([a-zA-Z0-9.]+)['"]''')
def get_version():
"""Return the version number"""
init = open(os.path.join(ROOT, 'git_change_request', '__init__.py')).read()
return VERSION_RE.search(init).group(1)
def get_long_description():
"""Returns README.md content."""
return open("README.md", "r").read()
setup(
name="git_change_request",
version=get_version(),
author="Danny Baez",
author_email="[email protected]",
description=" tool for working with pull/merge requests in a CI context.",
long_description=get_long_description(),
long_description_content_type='text/markdown',
license='GPLv3',
url="https://github.com/Dannyb48/git-change-request",
packages=find_packages(exclude=['tests*']),
include_package_data=True,
install_requires=[
'PyGithub',
'GitPython',
'click'
],
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Intended Audience :: Developers',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Libraries :: Python Modules',
],
entry_points={
'console_scripts': ['git-cr=git_change_request.bin.change_request_cli:git_cr'],
'git_cr_plugins': [
'github_request = git_change_request.src.apis:GithubRequest'
],
}
)