renaming for packaging, adding setup file

packaging still not done, but this will help
with it later.

Change-Id: Iec976ae732e8943cff52a76655c4ba1e35ebb833
This commit is contained in:
adriant 2015-02-26 12:14:28 +13:00
parent 69c8435a5b
commit a8ec7f8c02
8 changed files with 45 additions and 8 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.pyc
*.sqlite3
*~
*.log

View File

@ -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

View File

@ -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

36
setup.py Normal file
View File

@ -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'
],
)