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')
|
2009-06-20 19:56:51 +02:00
|
|
|
readme = f.read()
|
|
|
|
f.close()
|
|
|
|
|
2016-11-28 15:50:51 +01:00
|
|
|
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,
|
2012-09-17 11:09:15 +02:00
|
|
|
description=('Django-filter is a reusable Django application for allowing'
|
2012-09-17 11:21:22 +02:00
|
|
|
' users to filter querysets dynamically.'),
|
2009-06-20 19:56:51 +02:00
|
|
|
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',
|
2013-03-12 19:38:12 +01:00
|
|
|
packages=find_packages(exclude=['tests']),
|
2016-08-19 22:22:27 +02:00
|
|
|
package_data={
|
2013-08-10 12:17:44 +02:00
|
|
|
'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',
|
2014-08-03 01:32:21 +02:00
|
|
|
'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',
|
|
|
|
],
|
2013-02-19 02:07:28 +01:00
|
|
|
include_package_data=True,
|
2009-02-14 06:04:51 +01:00
|
|
|
zip_safe=False,
|
|
|
|
)
|