-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
53 lines (42 loc) · 1.48 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
from setuptools import setup, find_packages
import sys
import os
from djangotransifex import VERSION
if sys.argv[-1] == 'publish-to-pypi':
os.system("python setup.py sdist upload -r pypi")
os.system("git tag -a %s -m 'version %s'" % (VERSION, VERSION))
os.system("git push --tags")
sys.exit()
if sys.argv[-1] == 'publish-to-pypitest':
os.system("python setup.py sdist upload -r pypitest")
sys.exit()
if sys.argv[-1] == 'install-from-pypitest':
os.system("pip install -i https://testpypi.python.org/pypi djangotransifex")
sys.exit()
if sys.argv[-1] == 'check-import':
os.system("pip install --upgrade djangotransifex && python -c \"import djangotransifex; print(djangotransifex.VERSION)\"")
sys.exit()
setup(
name='djangotransifex',
version=VERSION,
description='A Django api to Transifex',
author='Craig Blaszczyk',
author_email='masterjakul@gmail.com',
url='https://github.com/jakul/django-transifex',
license='BSD',
packages=find_packages(),
tests_require=[
],
install_requires=open('requirements.txt').read(),
zip_safe=False,
include_package_data=True,
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)