Skip to content

Commit 6febe6d

Browse files
committed
Reorganize source.
1 parent 33f2a44 commit 6febe6d

12 files changed

Lines changed: 30 additions & 51 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
build
44
dist
55
extras
6+
iptools.egg-info
67
setuptools-*.egg
7-
src/iptools.egg-info

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
language: python
2-
32
python:
43
- "2.5"
54
- "2.6"
65
- "2.7"
76
- "3.2"
87
- "3.3"
98
- "pypy"
10-
11-
script: "./runtests"
12-
13-
# nothing to install, but this will squelch a warning
14-
install: "true"
15-
9+
install:
10+
- pip install . --use-mirrors
11+
- pip install -r tests/requirements.txt --use-mirrors
12+
script:
13+
- flake8 iptools
14+
- flake8 tests
15+
- nosetests
1616
notifications:
1717
email:
1818
- travis-ci+python-iptools@bd808.com

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
import sys
44
import os
5-
import datetime
5+
from datetime import date
66

7-
sys.path.append(os.path.abspath('../src'))
7+
sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), '..')))
88
import iptools
99

1010
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
1111
templates_path = ['_templates']
1212
source_suffix = '.rst'
1313
master_doc = 'index'
14-
project = 'python-iptools'
15-
copyright = '%s, Bryan Davis. All Rights Reserved' % datetime.date.today().year
14+
project = 'iptools'
15+
copyright = '%s, Bryan Davis. All Rights Reserved' % date.today().year
1616
version = iptools.__version__
1717
release = version
1818
exclude_patterns = ['_build']

docs/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.

runtests

Lines changed: 0 additions & 12 deletions
This file was deleted.

setup.py

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,36 @@
11
#!/usr/bin/env python
22
# -*- 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
165

176
setup(
187
name = 'iptools',
19-
version = version,
8+
version = __version__,
209
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/',
2410
author = 'Bryan Davis',
2511
author_email = 'bd808@bd808.com',
12+
url = 'https://github.com/bd808/python-iptools',
13+
download_url = 'http://pypi.python.org/packages/source/i/iptools/',
2614
license = 'BSD',
2715
platforms = ['any',],
28-
package_dir = {'': 'src'},
29-
packages = ['iptools'],
16+
packages = find_packages(),
3017
include_package_data = True,
31-
test_suite='iptools.test_iptools',
18+
test_suite='tests',
3219
classifiers = [
3320
'Development Status :: 4 - Beta',
3421
'Environment :: Web Environment',
3522
'Intended Audience :: Developers',
3623
'License :: OSI Approved :: BSD License',
3724
'Operating System :: OS Independent',
3825
'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',
4131
'Topic :: Utilities',
4232
'Topic :: Internet',
4333
],
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.",
4435
zip_safe=False,
4536
)

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)