3.0 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:
# Run simulator in one window resync-simulator> ./resync-simulator # Run client in another resync> rm -rf localhost_8888 resync> ./resync-sync --baseline --delete http://localhost:8888/ Using URI mapping: http://localhost:8888/ -> localhost_8888 Status: NOT IN SYNC (same=0, to create=1003, to update=0, to delete=0) Will GET 1003 resources, and delete 0 resources Status: SYNCED (same=0, created=1003, updated=0, deleted=0) resync> ./resync-sync --baseline --delete http://localhost:8888/ Using URI mapping: http://localhost:8888/ -> localhost_8888 Status: NOT IN SYNC (same=1000, to create=2, to update=1, to delete=2) Will GET 3 resources, and delete 2 resources Status: SYNCED (same=1000, created=2, updated=1, deleted=2) resync> ./resync-sync --incremental --delete http://localhost:8888/ Using URI mapping: http://localhost:8888/ -> localhost_8888 Status: CHANGES APPLIED (created=4, updated=5, deleted=4) Will apply 13 changes, and delete 4 resources Status: NO CHANGES (created=4, updated=5, deleted=4) esync> ./resync-sync --incremental --delete http://localhost:8888/ Using URI mapping: http://localhost:8888/ -> localhost_8888 Status: CHANGES APPLIED (created=0, updated=3, deleted=0) Will apply 3 changes, and delete 0 resources Status: NO CHANGES (created=0, updated=3, deleted=0) resync> ./resync-sync --incremental --delete http://localhost:8888/; ./resync-sync --audit http://localhost:8888/ Using URI mapping: http://localhost:8888/ -> localhost_8888 Status: CHANGES APPLIED (created=1, updated=2, deleted=0) Will apply 3 changes, and delete 0 resources Status: NO CHANGES (created=1, updated=2, deleted=0) Using URI mapping: http://localhost:8888/ -> localhost_8888 Status: IN SYNC (same=1001, 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