From 24339c2ab85de377d91f88107a9eabf916ffd959 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Mon, 21 May 2012 13:16:05 +0200 Subject: [PATCH] More changes to make it more standard. - Rename swift3 to middleware to match the other gholt (defacto) standard. - Same thing for version in __init__.py --- swift3/__init__.py | 26 ++++++++++++++++++++++++-- swift3/{swift3.py => middleware.py} | 0 2 files changed, 24 insertions(+), 2 deletions(-) rename swift3/{swift3.py => middleware.py} (100%) diff --git a/swift3/__init__.py b/swift3/__init__.py index d7de1bb3..7ff0416f 100644 --- a/swift3/__init__.py +++ b/swift3/__init__.py @@ -1,2 +1,24 @@ -# -*- encoding: utf-8 -*- -version = "1.0" +# Copyright 2012 OpenStack, LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +""" +Static Web Middleware for OpenStack Swift +""" + +__all__ = ['version_info', 'version'] + +#: Version information ``(major, minor, revision)``. +version_info = (1, 0, 0) +#: Version string ``'major.minor.revision'``. +version = '.'.join(map(str, version_info)) diff --git a/swift3/swift3.py b/swift3/middleware.py similarity index 100% rename from swift3/swift3.py rename to swift3/middleware.py