Skip to content

Commit 5a550e2

Browse files
committed
Add AUTHORS file MANIFEST.in and fixed setup.py
1 parent 00baa10 commit 5a550e2

File tree

3 files changed

+14
-29
lines changed

3 files changed

+14
-29
lines changed

AUTHORS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Authors
2+
=======
3+
4+
Massimiliano Pippi
5+
Federico Frenguelli
6+
7+
Contributors
8+
============

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.rst LICENSE
2+
recursive-include oauth2_provider/templates *.html

setup.py

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from setuptools import setup
4+
from setuptools import setup, find_packages
55
import os
66
import re
77

@@ -14,31 +14,6 @@ def get_version(package):
1414
return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
1515

1616

17-
def get_packages(package):
18-
"""
19-
Return root package and all sub-packages.
20-
"""
21-
return [dirpath
22-
for dirpath, dirnames, filenames in os.walk(package)
23-
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
24-
25-
26-
def get_package_data(package):
27-
"""
28-
Return all files under the root package, that are not in a
29-
package themselves.
30-
"""
31-
walk = [(dirpath.replace(package + os.sep, '', 1), filenames)
32-
for dirpath, dirnames, filenames in os.walk(package)
33-
if not os.path.exists(os.path.join(dirpath, '__init__.py'))]
34-
35-
filepaths = []
36-
for base, filenames in walk:
37-
filepaths.extend([os.path.join(base, filename)
38-
for filename in filenames])
39-
return {package: filepaths}
40-
41-
4217
version = get_version('oauth2_provider')
4318

4419

@@ -61,10 +36,10 @@ def get_package_data(package):
6136
keywords='django oauth oauth2 oauthlib',
6237
author="Federico Frenguelli, Massimiliano Pippi",
6338
64-
url='http://github.com/pydanny/django-admin2',
39+
url='https://github.com/evonove/django-oauth-toolkit',
6540
license='BSD',
66-
packages=get_packages('oauth2_provider'),
67-
package_data=get_package_data('oauth2_provider'),
41+
packages=find_packages(),
42+
include_package_data=True,
6843
test_suite='runtests',
6944
install_requires=[
7045
'django>=1.5.0',

0 commit comments

Comments
 (0)