forked from Polyconseil/django-cid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·48 lines (43 loc) · 1.59 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
from setuptools import setup, find_packages
def clean_history(history):
# PyPI does not allow the `raw` directive. We'll laboriously
# replace it. Hang tight, it's going to be ugly.
history = history.replace('|backward-incompatible|', '**backward incompatible:** ')
lines = []
for line in history.split('\n'):
if line.startswith('.. role:: raw-html'):
break
lines.append(line)
return '\n'.join(lines)
readme = open('README.rst').read()
changelog = clean_history(open('HISTORY.rst').read())
setup(
name='django-cid',
version='1.4.dev0',
description="""Correlation IDs in Django for debugging requests""",
long_description=readme + '\n\n' + changelog,
author='Snowball One',
author_email='[email protected]',
maintainer="Polyconseil",
maintainer_email="[email protected]",
url='https://github.com/Polyconseil/django-cid',
packages=find_packages(exclude=('sandbox*', 'tests*')),
include_package_data=True,
install_requires=[
'django>=1.11',
],
license="BSD",
zip_safe=False,
keywords='django logging correlation id debugging',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)