-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (44 loc) · 1.39 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
#!/usr/bin/env python
"""
gh
==========
.. code:: shell
$ gh user
$ gh repos/dvershinin/lastverion/license
"""
from setuptools import find_packages, setup
import os
install_requires = ["requests", "packaging", "cachecontrol", "lockfile", "appdirs"]
tests_requires = ["pytest>=4.4.0", "flake8", "pytest-xdist"]
with open("README.md", "r") as fh:
long_description = fh.read()
base_dir = os.path.dirname(__file__)
version = {}
with open(os.path.join(base_dir, "gh", "__about__.py")) as fp:
exec(fp.read(), version)
setup(
name="gh-api",
version=version["__version__"],
author="Danila Vershinin",
author_email="info@getpagespeed.com",
url="https://github.com/dvershinin/gh",
description="Low-level GitHub API request interface. With caching",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(exclude=["tests", "tests.*"]),
zip_safe=False,
license="BSD",
install_requires=install_requires,
extras_require={
"tests": install_requires + tests_requires,
},
tests_require=tests_requires,
include_package_data=True,
entry_points={"console_scripts": ["gh = gh:main"]},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development",
],
)