-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
40 lines (35 loc) · 1.2 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 = 'grappelli_modeltranslation'
version = __import__(appname).__version__
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
setup(
name='grappelli-modeltranslation',
version=version,
description="A small compatibility layer between grappelli and " \
"django-modeltranslation",
author='Jacob Magnusson',
author_email='[email protected]',
url='https://github.com/jmagnusson/grappelli-modeltranslation',
license='New 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',
],
)