Skip to content

Commit 7e98b48

Browse files
committed
Change setup.py to use distutils
1 parent 24eb3a5 commit 7e98b48

File tree

3 files changed

+30
-26
lines changed

3 files changed

+30
-26
lines changed

.deps

-2
This file was deleted.

README.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
djangotoolbox_ provides a common API for running Django on
1+
Djangotoolbox provides a common API for running Django on
22
non-relational/NoSQL databases (currently via Django-nonrel_).
33

44
In ``djangotoolbox.db`` you can find base classes for writing
@@ -17,7 +17,6 @@ Simply add ``'djangotoolbox'`` to ``INSTALLED_APPS`` **after**
1717
require JOINs. If you still need permission handling you should
1818
use the `nonrel permission backend`_.
1919

20-
.. _djangotoolbox: http://www.allbuttonspressed.com/projects/djangotoolbox
21-
.. _Django-nonrel: http://www.allbuttonspressed.com/projects/django-nonrel
20+
.. _Django-nonrel: http://django-nonrel.org/
2221
.. _Writing a non-relational Django backend: http://www.allbuttonspressed.com/blog/django/2010/04/Writing-a-non-relational-Django-backend
2322
.. _nonrel permission backend: https://github.com/django-nonrel/django-permission-backend-nonrel

setup.py

+28-21
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
1-
from setuptools import setup, find_packages
1+
from distutils.core import setup
2+
import os
3+
4+
def get_packages(package):
5+
return [dirpath
6+
for dirpath, dirnames, filenames in os.walk(package)
7+
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
28

3-
DESCRIPTION = "Djangotoolbox for Django-nonrel"
49

10+
DESCRIPTION = "Djangotoolbox for Django-nonrel"
511
LONG_DESCRIPTION = None
612
try:
713
LONG_DESCRIPTION = open('README.rst').read()
814
except:
915
pass
1016

11-
CLASSIFIERS = [
12-
'Development Status :: 5 - Production/Stable',
13-
'Intended Audience :: Developers',
14-
'Operating System :: OS Independent',
15-
'Programming Language :: Python',
16-
'Framework :: Django',
17-
'Topic :: Database',
18-
'Topic :: Software Development :: Libraries :: Python Modules',
19-
'License :: OSI Approved :: BSD License',
20-
]
21-
2217
setup(name='djangotoolbox',
23-
packages=find_packages(exclude=('tests', 'tests.*')),
24-
author='Waldemar Kornewald',
25-
author_email='[email protected]',
26-
url='http://www.django-nonrel.org/',
18+
version='1.6.0',
2719
description=DESCRIPTION,
2820
long_description=LONG_DESCRIPTION,
29-
platforms=['any'],
30-
classifiers=CLASSIFIERS,
31-
install_requires=[],
32-
version='1.6.0',
21+
author='Waldemar Kornewald',
22+
author_email='[email protected]',
23+
url='https://github.com/django-nonrel/djangotoolbox',
24+
packages=get_packages('djangotoolbox'),
25+
license='3-clause BSD',
26+
classifiers=[
27+
'Development Status :: 5 - Production/Stable',
28+
'Environment :: Web Environment',
29+
'Framework :: Django',
30+
'Intended Audience :: Developers',
31+
'License :: OSI Approved :: BSD License',
32+
'Operating System :: OS Independent',
33+
'Programming Language :: Python',
34+
'Programming Language :: Python :: 2.5',
35+
'Programming Language :: Python :: 2.6',
36+
'Programming Language :: Python :: 2.7',
37+
'Topic :: Database',
38+
'Topic :: Software Development :: Libraries :: Python Modules',
39+
],
3340
)

0 commit comments

Comments
 (0)