1
|
0
|
import sys
|
2
|
|
|
3
|
0
|
from setuptools import setup
|
4
|
|
|
5
|
0
|
about = {}
|
6
|
0
|
with open("django_slugify_processor/__about__.py") as fp:
|
7
|
0
|
exec(fp.read(), about)
|
8
|
|
|
9
|
0
|
with open('requirements/base.txt') as f:
|
10
|
0
|
install_reqs = [line for line in f.read().split('\n') if line]
|
11
|
|
|
12
|
0
|
with open('requirements/test.txt') as f:
|
13
|
0
|
tests_reqs = [line for line in f.read().split('\n') if line]
|
14
|
|
|
15
|
0
|
if sys.version_info[0] > 2:
|
16
|
0
|
readme = open('README.rst', encoding='utf-8').read()
|
17
|
|
else:
|
18
|
0
|
readme = open('README.rst').read()
|
19
|
|
|
20
|
0
|
history = open('CHANGES').read().replace('.. :changelog:', '')
|
21
|
|
|
22
|
|
|
23
|
0
|
setup(
|
24
|
|
name=about['__title__'],
|
25
|
|
version=about['__version__'],
|
26
|
|
url=about['__github__'],
|
27
|
|
download_url=about['__pypi__'],
|
28
|
|
license=about['__license__'],
|
29
|
|
author=about['__author__'],
|
30
|
|
author_email=about['__email__'],
|
31
|
|
description=about['__description__'],
|
32
|
|
long_description=readme,
|
33
|
|
packages=['django_slugify_processor'],
|
34
|
|
include_package_data=True,
|
35
|
|
install_requires=install_reqs,
|
36
|
|
tests_require=tests_reqs,
|
37
|
|
zip_safe=False,
|
38
|
|
keywords=about['__title__'],
|
39
|
|
classifiers=[
|
40
|
|
'Development Status :: 5 - Production/Stable',
|
41
|
|
'Environment :: Web Environment',
|
42
|
|
'Framework :: Django',
|
43
|
|
'Framework :: Django :: 1.11',
|
44
|
|
'Framework :: Django :: 2.0',
|
45
|
|
'Intended Audience :: Developers',
|
46
|
|
'License :: OSI Approved :: MIT License',
|
47
|
|
'Operating System :: OS Independent',
|
48
|
|
'Programming Language :: Python',
|
49
|
|
'Programming Language :: Python :: 3',
|
50
|
|
'Programming Language :: Python :: 3.6',
|
51
|
|
'Programming Language :: Python :: 3.7',
|
52
|
|
'Programming Language :: Python :: 3.8',
|
53
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
54
|
|
'Programming Language :: Python :: Implementation :: PyPy',
|
55
|
|
'Topic :: Utilities',
|
56
|
|
],
|
57
|
|
)
|