More missing files for versionedobjects

Add more missing files and the script being used to generate the
repository.

Change-Id: I0fda4c54ece642d3748d8d09bfe96f939505d057
This commit is contained in:
Doug Hellmann 2015-02-02 13:20:18 -05:00
parent da1754a16d
commit 1e437084f4
3 changed files with 87 additions and 1 deletions

View File

@ -2,4 +2,4 @@ pbr>=0.6,<1.0
oslosphinx
sphinx>=1.1.2,!=1.2.0,<1.3
yasfb>=0.5.0
simplejson>=2.2.0

View File

@ -22,10 +22,13 @@ Contents
* nova/objects/__init__.py
* nova/objects/base.py
* nova/objects/fields.py
* nova/test.py
* nova/tests/fixtures.py
* nova/tests/unit/objects/__init__.py
* nova/tests/unit/objects/test_fields.py
* nova/tests/unit/objects/test_objects.py
* nova/tests/unit/test_utils.py (with cleanup to remove extraneous parts)
* nova/safe_utils.py (with cleanup to remove extraneous parts)
* nova/utils.py (with cleanup to remove extraneous parts)
Early Adopters
@ -75,6 +78,12 @@ nova-centric:
but in this library, we should provide methods to set/clear the indirection
service.
.. note::
The service and conductor code will be left out of the initial
import, and the tests using it commented out. Fixing those tests
will be a high priority item before we release.
Finally, there is one detail of the implementation that deserves some thought
before we codify it in a library. Right now, the simple act of subclassing
NovaObject will register the implementation in the registry, via the metaclass.
@ -162,6 +171,7 @@ Work Items
* openstack-dev/devstack - lib/oslo
* openstack-dev/devstack - stackrc
* Update project list on docs.openstack.org
* Fix/update tests that depend on nova's service code
Adoption Notes
==============
@ -180,6 +190,11 @@ References
* Earlier patch to incubator to import this code: https://review.openstack.org/#/c/60376/
Export Script
=============
.. literalinclude:: adopt-oslo-versionedobjects/export.sh
:language: bash
.. note::

View File

@ -0,0 +1,71 @@
#!/bin/bash
# Depends on refactored graduation scripts found
# in https://review.openstack.org/#/c/151027/
set -ex
(cd nova && git checkout master && git pull)
new_repo=oslo.versionedobjects-$(date +%Y-%m-%d-%H%M)
git clone nova $new_repo
cd $new_repo
tooldir=~/repos/openstack/oslo-incubator/tools
FILES="
nova/exception.py
nova/objects/__init__.py
nova/objects/base.py
nova/objects/fields.py
nova/test.py
nova/tests/fixtures.py
nova/tests/unit/objects/__init__.py
nova/tests/unit/objects/test_fields.py
nova/tests/unit/objects/test_objects.py
nova/tests/unit/test_utils.py
nova/safe_utils.py
nova/utils.py
"
$tooldir/filter_git_history.sh $FILES
git mv nova oslo_versionedobjects
git mv oslo_versionedobjects/objects/* oslo_versionedobjects/
rmdir oslo_versionedobjects/objects
git mv oslo_versionedobjects/tests/unit/objects/* oslo_versionedobjects/tests/
rmdir oslo_versionedobjects/tests/unit/objects
git mv oslo_versionedobjects/tests/unit/test_utils.py oslo_versionedobjects/tests/
rmdir oslo_versionedobjects/tests/unit
$tooldir/apply_cookiecutter.sh versionedobjects
cat - >requirements.txt <<EOF
six>=1.7.0
Babel>=1.3
netaddr>=0.7.12
oslo.concurrency>=1.4.1 # Apache-2.0
oslo.context>=0.1.0 # Apache-2.0
oslo.messaging>=1.4.0,!=1.5.0
oslo.serialization>=1.2.0 # Apache-2.0
oslo.utils>=1.2.0 # Apache-2.0
iso8601>=0.1.9
EOF
cat - >test-requirements.txt <<EOF
hacking>=0.5.6,<0.8
oslotest>=1.2.0 # Apache-2.0
mock>=1.0
testtools>=0.9.36,!=1.2.0
# These are needed for docs generation
oslosphinx>=2.2.0 # Apache-2.0
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
EOF
echo
echo "Output in $(pwd)"
exit $?
# oslo-incubator modules:
# versionutils