forked from samgiles/slumber
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
40 lines (34 loc) · 1.22 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
import os
import sys
from setuptools import setup
install_requires = ["requests"]
tests_require = ["mock", "unittest2"]
base_dir = os.path.dirname(os.path.abspath(__file__))
version = "0.7.1"
if sys.argv[-1] == 'publish':
os.system("git tag -a %s -m 'v%s'" % (version, version))
os.system("python setup.py sdist bdist_wheel upload -r pypi")
print("Published version %s, do `git push --tags` to push new tag to remote" % version)
sys.exit()
if sys.argv[-1] == 'syncci':
os.system("panci --to=tox .travis.yml > tox.ini");
sys.exit();
setup(
name = "slumber",
version = version,
description = "A library that makes consuming a REST API easier and more convenient",
long_description="\n\n".join([
open(os.path.join(base_dir, "README.rst"), "r").read(),
open(os.path.join(base_dir, "CHANGELOG.rst"), "r").read()
]),
url = "http://github.com/samgiles/slumber",
author = "Donald Stufft",
author_email = "[email protected]",
maintainer = "Samuel Giles",
maintainer_email = "[email protected]",
packages = ["slumber"],
zip_safe = False,
install_requires = install_requires,
tests_require = tests_require,
test_suite = "tests.get_tests",
)