Alen Mujezinovic avatar Alen Mujezinovic committed 45a929b

Modified setup.py to use find_packages()

Comments (0)

Files changed (1)

 #!/usr/bin/env python
+from setuptools import setup,find_packages
 
 METADATA = dict(
     name='django-socialregistration',
-    version='0.4.1',
+    version='0.4.2',
     author='Alen Mujezinovic',
     author_email='alen@caffeinehit.com',
     description='Django application enabling registration through a variety of APIs',
     long_description=open('README.rst').read(),
     url='http://github.com/flashingpumpkin/django-socialregistration',
     keywords='django facebook twitter oauth openid registration',
-)
-SETUPTOOLS_METADATA = dict(
-    install_requires=['setuptools', 'django', 'oauth2', 'python-openid'],
+    install_requires=['django', 'oauth2', 'python-openid'],
     include_package_data=True,
     classifiers=[
         'Development Status :: 4 - Beta',
         'Programming Language :: Python',
         'Framework :: Django',
     ],
-    packages=['socialregistration', 'socialregistration.templatetags'],
+    packages=find_packages(),
     package_data={'socialregistration': ['templates/socialregistration/*.html'], }
 )
 
 if __name__ == '__main__':
-    try:
-        import setuptools
-        METADATA.update(SETUPTOOLS_METADATA)
-        setuptools.setup(**METADATA)
-    except ImportError:
-        import distutils.core
-        distutils.core.setup(**METADATA)
+    setup(**METADATA)
+    
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.