forked from dvershinin/gixy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (60 loc) · 2.12 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
import re
from setuptools import setup, find_packages
# FileNotFoundError is not there in Python 2, define it:
try:
FileNotFoundError
except NameError:
FileNotFoundError = IOError
with open('gixy/__init__.py', 'r') as fd:
version = re.search(r'^version\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
# README.md is not present in Docker image setup
long_description = None
try:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError:
pass
setup(
name='gixy-ng',
version=version,
description='NGINX configuration [sec]analyzer',
long_description=long_description,
long_description_content_type="text/markdown",
keywords='nginx security lint static-analysis',
author='Yandex IS Team, GetPageSpeed LLC',
author_email='[email protected], [email protected]',
url='https://github.com/dvershinin/gixy',
install_requires=[
'pyparsing>=1.5.5,<=2.4.7',
'cached-property>=1.2.0;python_version<"3.8"',
'argparse>=1.4.0;python_version<"3.2"',
'six>=1.1.0',
'Jinja2>=2.8',
'ConfigArgParse>=0.11.0'
],
entry_points={
'console_scripts': ['gixy=gixy.cli.main:main'],
},
test_suite='nose.collector',
packages=find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'Topic :: Security',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
],
include_package_data=True
)