Skip to content

Commit c85f8ad

Browse files
committed
switch to pkgutil namespace packages
1 parent 0404e0e commit c85f8ad

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

MANIFEST.in

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
include LICENSE
2-
include snowpenguin/__init__.py
3-
include snowpenguin/django/__init.py
42
recursive-include snowpenguin/django/recaptcha2/templates *.html
53
recursive-include snowpenguin/django/recaptcha2/locale *.mo

setup.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
from setuptools import setup, find_packages
33
setup(
44
name='django-recaptcha2',
5-
packages=find_packages(exclude=['samples'], include=['snowpenguin', 'snowpenguin.django', 'snowpenguin.django.*']),
6-
namespace_packages = ['snowpenguin', 'snowpenguin.django'],
5+
packages=find_packages(exclude=['samples']),
76
# package_data={'': ['']},
87
include_package_data=True,
9-
version='1.0.2',
8+
version='1.0.3',
109
install_requires=[
1110
'Django>=1.7',
1211
'requests'
@@ -21,7 +20,7 @@
2120
author='Andrea Briganti',
2221
author_email='[email protected]',
2322
url='https://github.com/kbytesys/django-recaptcha2',
24-
download_url='https://github.com/kbytesys/django-recaptcha2/tarball/v1.0.2',
23+
download_url='https://github.com/kbytesys/django-recaptcha2/tarball/v1.0.3',
2524
keywords=['django', 'recaptcha', 'recaptcha2'],
2625
license='GNU LGPL v2',
2726
classifiers=[
@@ -40,4 +39,4 @@
4039
'Topic :: Internet :: WWW/HTTP',
4140
'Topic :: Software Development :: Libraries :: Python Modules'
4241
],
43-
)
42+
)

snowpenguin/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__import__('pkg_resources').declare_namespace(__name__)
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

snowpenguin/django/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__import__('pkg_resources').declare_namespace(__name__)
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

0 commit comments

Comments
 (0)