This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
75 lines (69 loc) · 2.63 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import os
import sys
from setuptools import (
setup,
find_packages
)
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (2, 7)
# This check and everything above must remain compatible with Python 2.7.
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write("""
==========================
Unsupported Python version
==========================
This version of django-queryset-signals requires Python {}.{}, but you are
trying to install it on Python {}.{}.
This may be because you are using a version of pip that doesn't
understand the python_requires classifier. Make sure you
have pip >= 9.0 and setuptools >= 24.2, then try again:
$ python -m pip install --upgrade pip setuptools
$ python -m pip install django-queryset-signals
This will install the latest version of django-queryset-signals which works on
your version of Python.""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='django-queryset-signals',
version='0.1.0',
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
url='https://github.com/magenta-aps/django-queryset-signals',
author='Emil Madsen (Originally Martin P. Hellwig)',
author_email='[email protected]',
description=('A library that will send signals on queryset data '
'manipulation methods.'),
long_description=read('README.rst'),
license='BSD',
packages=find_packages(),
include_package_data=True,
download_url='https://github.com/magenta-aps/django-queryset-signals/archive/master.zip',
zip_safe=False,
install_requires=['Django'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords=[
'django',
],
project_urls={
'Upstream': 'https://bitbucket.org/hellwig/django-query-signals',
'Source': 'https://github.com/magenta-aps/django-queryset-signals',
# TODO: Add documentation URL
},
)