-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (60 loc) · 1.9 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
#!/usr/bin/env python
"""
fds
==========
.. code:: shell
$ fds block <ip_address>
$ fds block <country>
"""
from setuptools import find_packages, setup
import os
install_requires = [
'six',
'netaddr',
'cachecontrol',
'tqdm',
# required for cf.user.tokens.verify.get() and cf.accounts.get()
# neither endpoints are available in CentOS 7, thus we rebuild pkg from
# https://github.com/dvershinin/python-cloudflare/releases/tag/2.7.1
'cloudflare>=2.7.1,<3',
'ipaddress; python_version < "3.0.0"'
]
tests_requires = ["pytest", "flake8", "faker"]
with open("README.md", "r") as fh:
long_description = fh.read()
base_dir = os.path.dirname(__file__)
setup(
name="fds",
author="Danila Vershinin",
author_email="[email protected]",
url="https://github.com/dvershinin/fds",
description="The go-to FirewallD CLI app",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(exclude=["tests"]),
package_data={'fds': ['data/*.json']},
zip_safe=False,
license="BSD",
use_scm_version={
'write_to': 'fds/__about__.py',
'write_to_template': '__version__ = "{version}"'
},
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
install_requires=install_requires,
extras_require={
"tests": install_requires + tests_requires,
},
tests_require=tests_requires,
include_package_data=True,
entry_points={"console_scripts": ["fds = fds:main"]},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Topic :: System :: Networking :: Firewalls",
"Operating System :: POSIX :: Linux"
],
)