Debian Codegraph @

setup.py

raw symbols SCIP
1 #!/usr/bin/env python
2
3 # Release process:
4 #
5 # - set version in IPy.py
6 # - set version in setup.py
7 # - set version in README.rst
8 # - run unit test: make
9 # - set release date in ChangeLog
10 # - git commit -a
11 # - git tag -a IPy-x.y -m "tag IPy x.y"
12 # - git push
13 # - git push --tags
14 # - python setup.py register sdist upload
15 #
16 # After the release:
17 # - set version to n+1 (IPy.py and setup.py)
18 # - add a new empty section in the changelog for version n+1
19 # - git commit -a
20 # - git push
21
22 from __future__ import with_statement
23 import sys
24 from distutils.core import setup
25
26 VERSION = '1.01'
27
28 options = {}
29
30 with open('README.rst') as fp:
31 README = fp.read().strip() + "\n\n"
32
33 ChangeLog = (
34 "What's new\n"
35 "==========\n"
36 "\n")
37 with open('ChangeLog') as fp:
38 ChangeLog += fp.read().strip()
39
40 LONG_DESCRIPTION = README + ChangeLog
41 CLASSIFIERS = [
42 'Development Status :: 5 - Production/Stable',
43 'Intended Audience :: Developers',
44 'Intended Audience :: System Administrators',
45 'Environment :: Plugins',
46 'Topic :: Software Development :: Libraries :: Python Modules',
47 'Topic :: Communications',
48 'Topic :: Internet',
49 'Topic :: System :: Networking',
50 'License :: OSI Approved :: BSD License',
51 'Operating System :: OS Independent',
52 'Natural Language :: English',
53 'Programming Language :: Python',
54 'Programming Language :: Python :: 3',
55 ]
56 URL = "https://github.com/autocracy/python-ipy"
57
58 setup(
59 name="IPy",
60 version=VERSION,
61 description="Class and tools for handling of IPv4 and IPv6 addresses and networks",
62 long_description=LONG_DESCRIPTION,
63 author="Maximillian Dornseif",
64 maintainer="Jeff Ferland",
65 maintainer_email="jeff AT storyinmemo.com",
66 license="BSD License",
67 keywords="ipv4 ipv6 netmask",
68 url=URL,
69 download_url=URL,
70 classifiers= CLASSIFIERS,
71 py_modules=["IPy"],
72 **options
73 )
74