This repository was archived by the owner on Jul 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (67 loc) · 2 KB
/
Copy pathsetup.py
File metadata and controls
71 lines (67 loc) · 2 KB
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
import sys
from setuptools import find_packages, setup
# Solve compatibility issue with Python 2
if sys.version_info[0] == 2:
from os import path
with open(path.join(".", "README.md"), "r") as f:
README = f.read().decode("string_escape")
else:
from pathlib import Path
with open(str(Path(".") / "README.md"), "r", encoding="utf-8") as f:
README = f.read()
# Add version specific install packages
if sys.version_info[0] == 2:
version_specific_packages = [
"ipaddress>=1.0"
]
else:
version_specific_packages = []
setup(
name="port-eye",
version="0.2.1",
license="MIT",
url="https://github.com/aHugues/port-eye.git",
description="Simple CLI port scanner",
long_description=README,
long_description_content_type="text/markdown",
author="Aurélien Hugues",
author_email="me@aurelienhugues.com",
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
install_requires=version_specific_packages+[
"click>=7",
"python-nmap>=0.6",
"jinja2>=2.10",
"blessings>=0.7",
"pyfiglet>=0.8",
],
extras_require={
"dev": [
"pytest",
"pytest-cov",
"codecov",
"black",
"pylint"
],
"test": [
"pytest",
"pytest-cov",
"codecov",
]
},
python_requires=">=2.7",
entry_points={"console_scripts": ["port-eye=port_eye.main:main"]},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)