Skip to content
Snippets Groups Projects
Commit e0307847 authored by nimrod's avatar nimrod
Browse files

- Add release environment to Tox, updated documentation.

parent 73fa65f8
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ Testing is done by running :code:`tox`. Auto-generated code (for now just
:code:`unshare/constants.py`) is generated by running :code:`make all`. For Mac
developers there's a Vagrant box defined (it optionally uses
`vagrant-gatling-rsync <https://github.com/smerrill/vagrant-gatling-rsync>`_).
Finally, releasing a version is done by running :code:`tox -e release`.
TODO
----
......
......@@ -9,7 +9,7 @@ Vagrant.configure(2) do |config|
config.vm.synced_folder ".", "/home/vagrant/python-unshare",
type: "rsync",
auto: true,
rsync__exclude: [".cache", ".tox", "*.egg-info", "*.swp", ".DS_Store", ".idea", "*.pyc", "__pycache__"]
rsync__exclude: [".cache", ".tox", "*.egg-info", "*.swp", ".DS_Store", ".idea", "*.pyc", "__pycache__", "dist"]
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -yf build-essential linux-libc-dev python-pip python3-pip git
......
......@@ -15,3 +15,16 @@ commands =
python setup.py check -m -r -s
flake8 .
py.test --verbose
[testenv:release]
basepython = python
whitelist_externals =
sh
git
deps =
twine
wheel
commands =
sh -c 'git tag -f $(cat VERSION)'
python setup.py bdist_wheel
# twine upload --skip-existing dist/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment