3.1 KiB
Updating resync on pypi
Notes to remind @zimeon...
resync is at https://pypi.python.org/pypi/resync on pypi
Putting up a new version
-
In
developbranch: bump version number inresync/__init__.pyand checkCHANGES.mdis up to date -
Check all tests good with appropriate Python 3.x (
python setup.py testand CI) -
Check code is up-to-date with github version
-
Check out
masterand merge indevelop -
Check all tests still good (
python setup.py testand CI) -
Make sure master
README.mdhas correct travis-ci icon link -
Check branches as expected (
git branch -a) -
Check local build and version reported OK (
python setup.py build; python setup.py install; resync-sync --version) -
Check client works with simulator:
simeon@RottenApple resync>resync-sync --delete --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: NOT IN SYNC (same=92, to create=0, to update=1, to delete=0) Will GET 1 resources, and delete 0 resources Status: SYNCED (same=92, created=0, updated=1, deleted=0) simeon@RottenApple resync>resync-sync -i --delete --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: NO CHANGES (created=0, updated=0, deleted=0) simeon@RottenApple resync>resync-sync -i --delete --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: CHANGES (created=1, updated=0, deleted=0) simeon@RottenApple resync>resync-sync -i --delete --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: NO CHANGES (created=0, updated=0, deleted=0) simeon@RottenApple resync>resync-sync -a --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: IN SYNC (same=94, to create=0, to update=0, to delete=0) simeon@RottenApple resync>resync-sync -a --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: NOT IN SYNC (same=94, to create=1, to update=0, to delete=0) simeon@RottenApple resync>resync-sync -i --delete --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: CHANGES (created=1, updated=0, deleted=0) simeon@RottenApple resync>resync-sync -a --capabilitylist=http://resync.library.cornell.edu/sim100/capabilitylist.xml http://resync.library.cornell.edu/sim100 Status: IN SYNC (same=95, to create=0, to update=0, to delete=0) -
If all checks out OK, tag and push the new version to github:
git tag -n1 #...current tags git tag -a -m "ResourceSync v1.1 specification, add --delay" v2.0.0 git push --tags python setup.py sdist upload -
Then check on PyPI at https://pypi.python.org/pypi/resync
-
Finally, back on
developbranch start new version number by editingresync/__init__.pyandCHANGES.md