diff --git a/.gitignore b/.gitignore index 4b3cfc3..e3ffab6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pyc *.sqlite3 - +*~ +*.log diff --git a/manage.py b/manage.py index 61ac194..f880f61 100755 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "user_reg.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "openstack_registration.settings") from django.core.management import execute_from_command_line diff --git a/user_reg/__init__.py b/openstack_registration/__init__.py similarity index 100% rename from user_reg/__init__.py rename to openstack_registration/__init__.py diff --git a/user_reg/middleware.py b/openstack_registration/middleware.py similarity index 100% rename from user_reg/middleware.py rename to openstack_registration/middleware.py diff --git a/user_reg/settings.py b/openstack_registration/settings.py similarity index 91% rename from user_reg/settings.py rename to openstack_registration/settings.py index 97e6288..be2121b 100644 --- a/user_reg/settings.py +++ b/openstack_registration/settings.py @@ -65,19 +65,19 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'user_reg.middleware.KeystoneHeaderUnwrapper', - 'user_reg.middleware.RequestLoggingMiddleware' + 'openstack_registration.middleware.KeystoneHeaderUnwrapper', + 'openstack_registration.middleware.RequestLoggingMiddleware' ) if 'test' in sys.argv: # modify MIDDLEWARE_CLASSES MIDDLEWARE_CLASSES = list(MIDDLEWARE_CLASSES) - MIDDLEWARE_CLASSES.remove('user_reg.middleware.KeystoneHeaderUnwrapper') - MIDDLEWARE_CLASSES.append('user_reg.middleware.TestingHeaderUnwrapper') + MIDDLEWARE_CLASSES.remove('openstack_registration.middleware.KeystoneHeaderUnwrapper') + MIDDLEWARE_CLASSES.append('openstack_registration.middleware.TestingHeaderUnwrapper') -ROOT_URLCONF = 'user_reg.urls' +ROOT_URLCONF = 'openstack_registration.urls' -WSGI_APPLICATION = 'user_reg.wsgi.application' +WSGI_APPLICATION = 'openstack_registration.wsgi.application' # Database diff --git a/user_reg/urls.py b/openstack_registration/urls.py similarity index 100% rename from user_reg/urls.py rename to openstack_registration/urls.py diff --git a/user_reg/wsgi.py b/openstack_registration/wsgi.py similarity index 100% rename from user_reg/wsgi.py rename to openstack_registration/wsgi.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..113892b --- /dev/null +++ b/setup.py @@ -0,0 +1,36 @@ +from setuptools import setup, find_packages + + +setup( + name='openstack-registration', + + version='0.1.0a1', + description='A user registration service for openstack.', + long_description=( + 'A registration service to sit alongside keystone and ' + + 'add some missing functionality.'), + url='https://github.com/catalyst/openstack-registration', + author='Adrian Turjak', + author_email='adriant@catalyst.net.nz', + license='Apache 2.0', + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + ], + + keywords='openstack registration keystone users', + + packages=find_packages(), + + install_requires=[ + 'Django>=1.7.3', + 'djangorestframework>=3.0.3', + 'decorator>=3.4.0', + 'jsonfield>=1.0.2', + 'keystonemiddleware>=1.3.1', + 'python-keystoneclient>=1.0.0', + 'python-neutronclient>=2.3.10' + ], +)