forked from jacobsvante/bootstrap-modeltranslation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (35 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
#!/usr/bin/env python
from __future__ import print_function
from distutils.core import setup
import os
import sys
appname = 'bootstrap_modeltranslation'
version = __import__(appname).__version__
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
print("You probably want to tag the version if the upload was successful:")
print(" git tag -a {0} -m 'Version {0}' && git push " \
"--tags".format(version))
sys.exit()
setup(
name='bootstrap-modeltranslation',
version=version,
description="Tabbable translation fields for django-admin-bootstrapped "
"and django-modeltranslation",
author='Jacob Magnusson',
author_email='[email protected]',
url='https://github.com/jmagnusson/bootstrap-modeltranslation',
license='BSD License',
platforms=['any'],
packages=[appname],
package_data={appname: ['static/{0}/*/*'.format(appname)]},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)