-
Notifications
You must be signed in to change notification settings - Fork 120
/
setup.py
62 lines (56 loc) · 2.29 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
61
62
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 = "donald.stufft@gmail.com",
maintainer = "Samuel Giles",
maintainer_email = "sam.e.giles@gmail.com",
classifiers=[
# See: https://pypi.python.org/pypi?:action=list_classifiers
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
# List of python versions and their support status:
# https://en.wikipedia.org/wiki/CPython#Version_history
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing',
],
packages = ["slumber"],
zip_safe = False,
install_requires = install_requires,
tests_require = tests_require,
test_suite = "tests.get_tests",
)