-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (41 loc) · 1.51 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
import os
from distutils.core import Command
from setuptools import find_packages, setup
from request_signer import VERSION
REQUIREMENTS = ['Django', 'south', 'apysigner']
def do_setup():
setup(
name='django-request-signer',
version=VERSION,
author='imtapps',
url='https://github.com/imtapps/django-request-signer',
description="A python library for signing http requests.",
long_description=open('README.rst', 'r').read(),
install_requires=REQUIREMENTS,
packages=find_packages(exclude=['example']),
cmdclass={
'install_dev': InstallDependencies,
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'License :: OSI Approved :: BSD License',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
class InstallDependencies(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system("pip install %s -i http://chishop.apps-system.com" % ' '.join(REQUIREMENTS))
os.system("pip install -r test_requirements.txt -i http://chishop.apps-system.com")
if __name__ == '__main__':
do_setup()