|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8 -*- |
3 | | - |
4 | | -try: |
5 | | - from setuptools import setup |
6 | | -except ImportError: |
7 | | - from distutils.core import setup |
8 | | - |
9 | | -# get version from package |
10 | | -import os |
11 | | -here = os.path.dirname(__file__) |
12 | | -version_file = os.path.join(here, 'src/iptools/__init__.py') |
13 | | -d = {} |
14 | | -execfile(version_file, d) |
15 | | -version = d['__version__'] |
| 3 | +from iptools import __version__ |
| 4 | +from setuptools import setup, find_packages |
16 | 5 |
|
17 | 6 | setup( |
18 | 7 | name = 'iptools', |
19 | | - version = version, |
| 8 | + version = __version__, |
20 | 9 | description = 'Python utilites for manipulating IPv4 addresses', |
21 | | - long_description = "Utilities for manipulating IPv4 addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.", |
22 | | - url = 'https://github.com/bd808/python-iptools', |
23 | | - download_url = 'http://pypi.python.org/packages/source/i/iptools/', |
24 | 10 | author = 'Bryan Davis', |
25 | 11 | author_email = 'bd808@bd808.com', |
| 12 | + url = 'https://github.com/bd808/python-iptools', |
| 13 | + download_url = 'http://pypi.python.org/packages/source/i/iptools/', |
26 | 14 | license = 'BSD', |
27 | 15 | platforms = ['any',], |
28 | | - package_dir = {'': 'src'}, |
29 | | - packages = ['iptools'], |
| 16 | + packages = find_packages(), |
30 | 17 | include_package_data = True, |
31 | | - test_suite='iptools.test_iptools', |
| 18 | + test_suite='tests', |
32 | 19 | classifiers = [ |
33 | 20 | 'Development Status :: 4 - Beta', |
34 | 21 | 'Environment :: Web Environment', |
35 | 22 | 'Intended Audience :: Developers', |
36 | 23 | 'License :: OSI Approved :: BSD License', |
37 | 24 | 'Operating System :: OS Independent', |
38 | 25 | 'Programming Language :: Python', |
39 | | - 'Programming Language :: Python :: 2', |
40 | | - 'Programming Language :: Python :: 3', |
| 26 | + 'Programming Language :: Python :: 2.5', |
| 27 | + 'Programming Language :: Python :: 2.6', |
| 28 | + 'Programming Language :: Python :: 2.7', |
| 29 | + 'Programming Language :: Python :: 3.2', |
| 30 | + 'Programming Language :: Python :: 3.3', |
41 | 31 | 'Topic :: Utilities', |
42 | 32 | 'Topic :: Internet', |
43 | 33 | ], |
| 34 | + long_description = "Utilities for manipulating IPv4 addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.", |
44 | 35 | zip_safe=False, |
45 | 36 | ) |
0 commit comments