/
setup.py
executable file
·77 lines (69 loc) · 2.48 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
76
77
#!/usr/bin/env python
# This file is part of django-url-sso.
#
# python-postnl-checkout: Generate login URL's for unstandardized SSO systems.
# Copyright (C) 2015-2016 Mathijs de Bruin
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import warnings
from setuptools import setup, find_packages
try:
README = open('README.rst').read() + '\n\n'
README += open('CHANGES.rst').read()
except:
warnings.warn('Could not read README.rst and/or CHANGES.rst')
README = None
try:
REQUIREMENTS = open('requirements.txt').read()
except:
warnings.warn('Could not read requirements.txt')
REQUIREMENTS = None
try:
TEST_REQUIREMENTS = open('requirements_test.txt').read()
except:
warnings.warn('Could not read requirements_test.txt')
TEST_REQUIREMENTS = None
try:
DJANGO_REQUIREMENTS = open('requirements_django.txt').read()
except:
warnings.warn('Could not read requirements_django.txt')
DJANGO_REQUIREMENTS = None
setup(
name='python-postnl-checkout',
version='0.9',
description='PostNL checkout support for Django.',
long_description=README,
install_requires=REQUIREMENTS,
extras_require={
'Django': DJANGO_REQUIREMENTS
},
license='AGPL',
author='Mathijs de Bruin',
author_email='mathijs@mathijsfietst.nl',
url='https://github.com/dokterbob/python-postnl-checkout/',
packages=find_packages(exclude=("tests", "test_project")),
include_package_data=True,
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'
),
test_suite='runtests.run_tests',
tests_require=TEST_REQUIREMENTS + DJANGO_REQUIREMENTS
)