forked from kbandla/dpkt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·49 lines (44 loc) · 1.66 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
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
package_name = 'dpkt'
description = 'fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols'
readme = open('README.md').read()
requirements = []
# PyPI Readme
long_description = open('README.md').read()
# Pull in the package
package = __import__(package_name)
package_version = package.__version__
if "bdist_msi" in sys.argv:
# The MSI build target does not support a 4 digit version, e.g. '1.2.3.4'
# therefore we remove the last digit.
package_version, _, _ = package_version.rpartition('.')
setup(name=package_name,
version=package_version,
author=package.__author__,
author_email=package.__author_email__,
url=package.__url__,
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
packages=['dpkt'],
install_requires=requirements,
license='BSD',
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
])