forked from steffann/python-ipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·82 lines (72 loc) · 2.02 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env python
# Release process:
#
# - set version in IPy.py
# - set version in setup.py
# - make (to run tests)
# - set release date in ChangeLog
# - git commit -a
# - git tag -a IPy-x.y -m "tag IPy x.y"
# - git push
# - git push --tags
# - ./setup.py register sdist upload
# - update the website
#
# After the release:
# - set version to n+1 (IPy.py and setup.py)
# - add a new empty section in the changelog for version n+1
# - git commit -a
# - git push
from __future__ import with_statement
import sys
from distutils.core import setup
VERSION = '0.76.1'
options = {}
with open('README') as fp:
README = fp.read().strip() + "\n\n"
ChangeLog = (
"What's new\n"
"==========\n"
"\n")
with open('ChangeLog') as fp:
ChangeLog += fp.read().strip()
LONG_DESCRIPTION = README + ChangeLog
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Environment :: Plugins',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications',
'Topic :: Internet',
'Topic :: System :: Networking',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
]
URL = "https://github.com/haypo/python-ipy"
# Python 3: run 2to3
try:
from distutils.command.build_py import build_py_2to3
except ImportError:
pass
else:
options['cmdclass'] = {'build_py': build_py_2to3}
setup(
name="IPy",
version=VERSION,
description="Class and tools for handling of IPv4 and IPv6 addresses and networks",
long_description=LONG_DESCRIPTION,
author="Maximillian Dornseif",
maintainer="Victor Stinner",
maintainer_email="victor.stinner AT haypocalc.com",
license="BSD License",
keywords="ipv4 ipv6 netmask",
url=URL,
download_url=URL,
classifiers= CLASSIFIERS,
py_modules=["IPy"],
**options
)