forked from openwisp/django-flat-json-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (52 loc) · 1.84 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
54
55
56
57
#!/usr/bin/env python
import os
import sys
from setuptools import find_packages, setup
from flat_json_widget import get_version
if sys.argv[-1] == 'publish':
# delete any *.pyc, *.pyo and __pycache__
os.system('find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf')
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload -s dist/*')
os.system('rm -rf dist build')
args = {'version': get_version()}
print('You probably want to also tag the version now:')
print(' git tag -a %(version)s -m "version %(version)s"' % args)
print(' git push --tags')
sys.exit()
setup(
name='django-flat-json-widget',
version=get_version(),
license='BSD-3-Clause',
author='Federico Capoano',
author_email='federico.capoano@gmail.com',
description='Django Flat JSON Key/Value Widget',
long_description=open('README.rst').read(),
url='https://github.com/openwisp/django-flat-json-widget',
download_url='https://github.com/openwisp/django-flat-json-widget/releases',
platforms=['Platform Independent'],
keywords=['django', 'json', 'key-value', 'widget'],
packages=find_packages(exclude=['tests*', 'docs*']),
include_package_data=True,
zip_safe=False,
install_requires=[],
extras_require={
'test': [
(
'openwisp-utils[qa]'
' @ https://github.com/openwisp/openwisp-utils/tarball/master'
),
'django-extensions~=3.1.0',
]
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Topic :: Internet :: WWW/HTTP',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Framework :: Django',
'Programming Language :: Python :: 3',
],
)