Skip to content

Commit 9e7c0bf

Browse files
committed
Converted to setuptools.
1 parent 386e660 commit 9e7c0bf

File tree

4 files changed

+14
-29
lines changed

4 files changed

+14
-29
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
MANIFEST
22
build/
33
dist/
4+
libleipzig.egg-info/
5+
nose-*.egg/
6+
suds-*.egg/
47
manual.html
58
.test/
69
pip-log.txt

Makefile

+5-24
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
1-
TESTDIR = ./.test
21
PYTHON = python
3-
VIRTUALENV = virtualenv
4-
PYVER = $(shell $(PYTHON) -V 2>&1 | grep -o '[0-9].[0-9]')
5-
SOURCES = $(wildcard libleipzig/*.py) $(wildcard tests/*.py) \
6-
README.rst setup.py
7-
.PHONY: install build dist test clean distclean virtualenv docs
2+
.PHONY: install build dist test clean distclean docs
83

9-
test: virtualenv
10-
@cd $(TESTDIR); PYTHONPATH= \
11-
./bin/nosetests --with-doctest --doctest-extension=rst --detailed-errors \
12-
libleipzig.test ../README.rst
13-
14-
virtualenv: $(TESTDIR) \
15-
$(TESTDIR)/lib/python$(PYVER)/site-packages/suds \
16-
$(TESTDIR)/lib/python$(PYVER)/site-packages/libleipzig \
17-
$(TESTDIR)/bin/nosetests
18-
$(TESTDIR):
19-
$(VIRTUALENV) --clear --no-site-packages --distribute "$(TESTDIR)"
20-
$(TESTDIR)/lib/python$(PYVER)/site-packages/suds:
21-
$(TESTDIR)/bin/pip -q install suds
22-
$(TESTDIR)/lib/python$(PYVER)/site-packages/libleipzig: $(SOURCES)
23-
$(TESTDIR)/bin/python setup.py --quiet install
24-
$(TESTDIR)/bin/nosetests:
25-
$(TESTDIR)/bin/pip -q install nose
4+
test:
5+
$(PYTHON) setup.py --quiet test --verbose
266

277
install:
288
$(PYTHON) setup.py install
@@ -39,7 +19,8 @@ manual.html: README.rst libleipzig/protocol.py gendocs
3919

4020
clean:
4121
find . -name '*.py[co]' -exec rm -f {} ';'
42-
rm -rf build/ dist/ "$(TESTDIR)"
22+
rm -rf build/ dist/ libleipzig.egg-info/
23+
rm -rf suds-*.egg/ nose-*.egg/
4324
rm -f MANIFEST manual.html
4425

4526
distclean: clean

libleipzig/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Copyright (C) 2009, 2010 Robert Lehmann
22

3-
__version__ = "1.2.1"
4-
53
from libleipzig.protocol import *
64
from libleipzig.transport import services
75
from suds import WebFault

setup.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# Copyright (C) 2009, 2010 Robert Lehmann
22

3-
from distutils.core import setup
3+
from setuptools import setup
44
import os.path
5-
import libleipzig
65

76
setup(name='libleipzig',
8-
version=libleipzig.__version__,
7+
version='1.2.1',
98
description="wortschatz.uni-leipzig.de binding",
109
long_description=open(os.path.join(os.path.dirname(__file__),
1110
"README.rst")).read(),
1211
url="http://github.com/lehmannro/libleipzig-python/",
12+
install_requires = ['suds'],
13+
tests_require = ['nose'],
14+
test_suite = "nose.collector",
1315
author="Robert Lehmann",
1416
author_email="libleipzig@robertlehmann.de",
1517
license="GPLv3",
1618
packages=['libleipzig', 'libleipzig.test'],
1719
package_dir={'libleipzig.test': "tests"},
1820
package_data={'libleipzig': ["README.rst", "manual.html"]},
21+
zip_safe=True,
1922
classifiers=[
2023
'Environment :: Web Environment',
2124
'License :: OSI Approved :: GNU General Public License (GPL)',

0 commit comments

Comments
 (0)