-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (50 loc) · 1.77 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
#!/usr/bin/env python
import io
import os
from setuptools import find_packages, setup
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
def local_path(*parts):
base_folder = os.path.dirname(__file__)
return os.path.join(base_folder, *parts)
def get_requirements(filename):
install_reqs = parse_requirements(filename, session=False)
return list(str(ir.req) for ir in install_reqs)
reqs = get_requirements("requirements.txt")
test_reqs = get_requirements("requirements-test.txt")
with io.open(local_path("README.md")) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='branchdb',
version="0.0.1",
packages=find_packages(exclude=["tests"]),
include_package_data=True,
license="MIT License",
description="Create a new version of your DB based off of your git branch",
long_description=README,
url='https://github.com/CalgaryMichael/branchdb',
platforms=["any"],
author="Calgary Michael",
author_email="cseth.michael@gmail.com",
scripts=[
"bin/branchdb"
],
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
install_requires=reqs,
tests_require=test_reqs
)