Skip to content

Commit d7c3adf

Browse files
committed
Clean up the distutils code, and add a manifest to include the missing
files.
1 parent b7208b4 commit d7c3adf

File tree

3 files changed

+54
-30
lines changed

3 files changed

+54
-30
lines changed

.bzrignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
./django
2-
MANIFEST
2+
./MANIFEST
3+
./build
4+
./dist

MANIFEST.in

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include Makefile
2+
include MANIFEST.in
3+
include LICENSE.txt
4+
include README.txt
5+
include TODO.txt
6+
7+
recursive-include django_openid_auth/templates *.html
8+
recursive-include example_consumer *.py

setup.py

+43-29
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,49 @@
2626
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
2727
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
# POSSIBILITY OF SUCH DAMAGE.
29-
"""setup.py"""
29+
"""OpenID integration for django.contrib.auth
30+
31+
A library that can be used to add OpenID support to Django applications.
32+
The library integrates with Django's built in authentication system, so
33+
most applications require minimal changes to support OpenID llogin. The
34+
library also includes the following features:
35+
* Basic user details are transferred from the OpenID server via the
36+
simple Registration extension.
37+
* can be configured to use a fixed OpenID server URL, for use in SSO.
38+
* supports the launchpad.net teams extension to get team membership
39+
info.
40+
"""
3041

3142
from distutils.core import setup
3243

33-
setup(name = 'django-openid-auth',
34-
version = '0.1',
35-
description = 'OpenID integration for django.contrib.auth',
36-
long_description = """A library that can be used to add OpenID support to
37-
Django applications. The library integrates with Django's built in
38-
authentication system, so most applications require minimal changes to
39-
support OpenID llogin. The library also includes the following features:
40-
* Basic user details are transferred from the OpenID server via the simple
41-
Registration extension.
42-
* can be configured to use a fixed OpenID server URL, for use in SSO.
43-
* supports the launchpad.net teams extension to get team membership info.
44-
""",
45-
url = 'https://launchpad.net/django-openid-auth',
46-
packages = ['django_openid_auth',
47-
'django_openid_auth/management',
48-
'django_openid_auth/management/commands',
49-
'django_openid_auth/templates',
50-
'django_openid_auth/templates/openid',
51-
'django_openid_auth/tests',
52-
],
53-
classifiers = ['Development Status :: 4 - Beta',
54-
'Environment :: Web Environment',
55-
'Framework :: Django',
56-
'Intended Audience :: Developers',
57-
'License :: OSI Approved :: BSD License',
58-
'Operating System :: OS Independent',
59-
'Programming Language :: Python',
60-
'Topic :: Utilities'])
44+
45+
description, long_description = __doc__.split('\n\n', 1)
46+
47+
setup(
48+
name='django-openid-auth',
49+
version='0.1',
50+
author='Canonical Ltd',
51+
description=description,
52+
long_description=long_description,
53+
license='BSD',
54+
url='https://launchpad.net/django-openid-auth',
55+
classifiers=[
56+
'Development Status :: 4 - Beta',
57+
'Environment :: Web Environment',
58+
'Framework :: Django',
59+
'Intended Audience :: Developers',
60+
'License :: OSI Approved :: BSD License',
61+
'Operating System :: OS Independent',
62+
'Programming Language :: Python',
63+
'Topic :: Utilities'
64+
],
65+
packages=[
66+
'django_openid_auth',
67+
'django_openid_auth.management',
68+
'django_openid_auth.management.commands',
69+
'django_openid_auth.tests',
70+
],
71+
package_data={
72+
'django_openid_auth': ['templates/*.html', 'templates/openid/*.html'],
73+
},
74+
)

0 commit comments

Comments
 (0)