Skip to content

Commit

Permalink
switch to pkgutil namespace packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kbytesys committed Jun 23, 2017
1 parent 0404e0e commit c85f8ad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include LICENSE
include snowpenguin/__init__.py
include snowpenguin/django/__init.py
recursive-include snowpenguin/django/recaptcha2/templates *.html
recursive-include snowpenguin/django/recaptcha2/locale *.mo
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
from setuptools import setup, find_packages
setup(
name='django-recaptcha2',
packages=find_packages(exclude=['samples'], include=['snowpenguin', 'snowpenguin.django', 'snowpenguin.django.*']),
namespace_packages = ['snowpenguin', 'snowpenguin.django'],
packages=find_packages(exclude=['samples']),
# package_data={'': ['']},
include_package_data=True,
version='1.0.2',
version='1.0.3',
install_requires=[
'Django>=1.7',
'requests'
Expand All @@ -21,7 +20,7 @@
author='Andrea Briganti',
author_email='[email protected]',
url='https://github.com/kbytesys/django-recaptcha2',
download_url='https://github.com/kbytesys/django-recaptcha2/tarball/v1.0.2',
download_url='https://github.com/kbytesys/django-recaptcha2/tarball/v1.0.3',
keywords=['django', 'recaptcha', 'recaptcha2'],
license='GNU LGPL v2',
classifiers=[
Expand All @@ -40,4 +39,4 @@
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
)
2 changes: 1 addition & 1 deletion snowpenguin/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion snowpenguin/django/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

0 comments on commit c85f8ad

Please sign in to comment.