This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
75 lines (67 loc) · 2.29 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 io
import os
import re
from setuptools import setup
metadata = {}
with io.open(os.path.join('httpolice', '__metadata__.py'), 'rb') as f:
exec(f.read(), metadata) # pylint: disable=exec-used
with io.open('README.rst') as f:
long_description = f.read()
# I prefer not to have shields in my package description. Shields reflect
# current status; they are good in a README when viewed on Git master,
# but not in versions published on PyPI.
long_description = re.sub(r'^\.\. status:.*?\n\n', u'', long_description,
flags=re.DOTALL | re.MULTILINE)
setup(
name='HTTPolice',
version=metadata['version'],
description='Validator for HTTP',
long_description=long_description,
url=metadata['homepage'],
author='Vasiliy Faronov',
author_email='[email protected]',
license='MIT',
python_requires='>= 3.4',
# NB: when updating these fields,
# make sure you don't break ``tools/minimum_requires.sh``.
install_requires=[
'lxml >= 4.1.0',
'bitstring >= 3.1.4',
'dominate >= 2.2.0',
'defusedxml >= 0.5.0',
'Brotli >= 1.0.1',
],
packages=[
'httpolice',
'httpolice.inputs',
'httpolice.known',
'httpolice.reports',
'httpolice.syntax',
'httpolice.util',
],
package_data={
'httpolice': ['notices.xml'],
'httpolice.known': ['*.csv'],
'httpolice.reports': ['html.css', 'html.js'],
},
entry_points={
'console_scripts': [
'httpolice=httpolice.cli:main',
],
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Quality Assurance',
],
keywords='HTTP message request response standards RFC lint validator',
)