-
Notifications
You must be signed in to change notification settings - Fork 4
Release MOP
Joris Roovers edited this page Apr 19, 2016
·
1 revision
Start by quickly reviewing this page so that you are aware of all steps.
- Bump the version number in
yamlpal/__init__.py
- Update the CHANGELOG.md
- Run tests
# remove any previous builds
rm -rf dist/
# check whether the builds work
python setup.py sdist bdist_wheel
# Now unzip the source distribution in ```dist/``` and check whether it contains all files
Check this blog for good overall instructions: http://peterdowns.com/posts/first-time-with-pypi.html
# remove any previous builds
rm -rf dist/
# Do a rebuild and upload
python setup.py sdist bdist_wheel upload -r pypitest
# SSH into Vagrant VM
vagrant up
vagrant ssh
deactivate # deactivate current virtualenv
# Create virtualenv to test the release
mkdir /tmp/release-0.1.0-test
cd /tmp/release-0.1.0-test/
virtualenv -p /usr/bin/python2.7 .venv
source .venv/bin/activate
# Install
yamlpal # should not work
pip install -r requirements.txt # You can't always install dependencies from testpypi. Just make sure the setup.py file contains the same dependencies as requirements.txt
pip install -i https://testpypi.python.org/pypi yamlpal
# Do some basic testing
yamlpal --version # should print the correct version
yamlpal insert -f /vagrant/examples/sample1.yml "date" "foo: bar"
yamlpal find -f /vagrant/examples/sample1.yml "bill-to/address/city"
# remove any previous builds
rm -rf dist/
# Do a rebuild and upload
python setup.py sdist bdist_wheel upload -r pypi
# SSH into Vagrant VM
vagrant up
vagrant ssh
deactivate # deactivate current virtualenv
# Create virtualenv to test the release
mkdir /tmp/release-0.1.0
cd /tmp/release-0.1.0/
virtualenv -p /usr/bin/python2.7 .venv
source .venv/bin/activate
# Install
yamlpal # should not work
pip install yamlpal
# Do some basic testing
yamlpal --version # should print the correct version
yamlpal insert -f /vagrant/examples/sample1.yml "date" "foo: bar"
yamlpal find -f /vagrant/examples/sample1.yml "bill-to/address/city"
Template commit message:
0.1.0 release
[copy release notes here]
Full Release details in CHANGELOG.md.
git tag v0.1.0
git tag --list
git push --tags
Go to the releases page and create a new release. Copy in changes from CHANGELOG.md
- Bump the version number in
yamlpal/__init__.py