debian-django-filter/setup.py

60 lines
1.9 KiB
Python
Raw Permalink Normal View History

2014-11-28 13:53:17 +01:00
import os
import sys
2009-02-14 06:04:51 +01:00
from setuptools import setup, find_packages
2012-10-12 21:18:54 +02:00
f = open('README.rst')
readme = f.read()
f.close()
version = '1.0.1'
2015-05-13 14:03:27 +02:00
2014-11-28 13:53:17 +01:00
if sys.argv[-1] == 'publish':
2015-09-03 14:23:06 +02:00
if os.system("pip freeze | grep wheel"):
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
sys.exit()
if os.system("pip freeze | grep twine"):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
2014-11-28 13:53:17 +01:00
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()
2009-02-14 06:04:51 +01:00
setup(
name='django-filter',
2015-05-13 14:03:27 +02:00
version=version,
description=('Django-filter is a reusable Django application for allowing'
' users to filter querysets dynamically.'),
long_description=readme,
2009-02-14 06:04:51 +01:00
author='Alex Gaynor',
author_email='alex.gaynor@gmail.com',
2016-03-11 20:38:25 +01:00
maintainer='Carlton Gibson',
maintainer_email='carlton.gibson@noumenal.es',
url='http://github.com/carltongibson/django-filter/tree/master',
packages=find_packages(exclude=['tests']),
package_data={
'django_filters': [
'locale/*/LC_MESSAGES/*',
],
},
2013-03-25 15:50:12 +01:00
license='BSD',
2009-02-14 06:04:51 +01:00
classifiers=[
2013-03-25 15:50:12 +01:00
'Development Status :: 5 - Production/Stable',
2009-02-14 06:04:51 +01:00
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
2015-12-04 03:49:13 +01:00
'Programming Language :: Python :: 3.5',
2009-02-14 06:04:51 +01:00
'Framework :: Django',
],
include_package_data=True,
2009-02-14 06:04:51 +01:00
zip_safe=False,
)