-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
47 lines (42 loc) · 1.56 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
import sys
import subprocess
import shlex
from setuptools import find_packages, setup
import requests_toolbar
version = requests_toolbar.__versionstr__
# release a version, publish to GitHub and PyPI
if sys.argv[-1] == 'publish':
command = lambda cmd: subprocess.check_call(shlex.split(cmd))
command('git tag v' + version)
command('git push --tags origin master:master')
command('twine upload --repository-url https://upload.pypi.org/legacy/ dist/*')
sys.exit()
setup(
name='django-debug-toolbar-requests',
version=version,
packages=find_packages(),
url='https://github.com/ENERGYLINX/django-debug-toolbar-requests',
license=open('LICENSE').read(),
author='Martin Voldrich',
author_email='[email protected]',
description='Adds requests debuging information',
long_description=open('README.md').read(),
include_package_data=True,
zip_safe=False,
install_requires=['requests'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: BSD License',
'Environment :: Web Environment'
]
)