forked from TopologyMapping/mca
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
60 lines (53 loc) · 1.96 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
#! /usr/bin/env python
try:
from setuptools import setup, find_packages
except:
raise ImportError("setuptools is required to install!")
import io
import os
def get_long_description():
"""Extract description from README.md, for PyPI's usage"""
def process_ignore_tags(buffer):
return "\n".join(
x for x in buffer.split("\n") if "<!-- ignore_ppi -->" not in x
)
try:
fpath = os.path.join(os.path.dirname(__file__), "README.md")
with io.open(fpath, encoding="utf-8") as f:
readme = f.read()
return process_ignore_tags(readme.strip())
except IOError:
return None
# https://packaging.python.org/guides/distributing-packages-using-setuptools/
setup(
name="mca-traceroute",
version=__import__("mca").VERSION,
packages=["mca"],
entry_points={"console_scripts": ["mca-traceroute = mca.__main__:main"]},
python_requires=">=3.6, < 4",
install_requires=["scapy"],
zip_safe=False,
# Metadata
author="Rafael Almeida",
author_email="[email protected]",
maintainer="Ítalo Cunha",
description="mca-traceroute: Detection and Classification of Load Balancers",
long_description=get_long_description(),
long_description_content_type="text/markdown",
license="GPLv3",
url="https://www.dcc.ufmg.br/~rlca/mca",
project_urls={"Source Code": "https://github.com/rlcalmeida/mca"},
keywords=["network"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Monitoring",
],
)