Skip to content

Commit

Permalink
Enable publish-to-pypi Zuul job
Browse files Browse the repository at this point in the history
This patch enables the publish-to-pypi Zull job and for that removes the
git repository from the test requirements and adds it instead to the Tox
file.

Change-Id: Id029cedef513753700a10bcae761fdc1807964e1
  • Loading branch information
Akrog committed Mar 13, 2019
1 parent b97502f commit 3f7d9ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .zuul.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- project:
templates:
# TODO(geguileo): Uncomment publish-to-pypi once we release Cinder on
# PyPi and we can add it to test-requirements instead of the git repo.
# - publish-to-pypi
- publish-to-pypi
# PEP8 + PY27 + Post branch-tarball
- openstack-python-jobs
- openstack-python36-jobs
Expand Down
2 changes: 0 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ oslotest>=3.2.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
stestr>=1.0.0 # Apache-2.0
# There's no current Cinder PyPi package we can use
git+git://github.com/openstack/cinder.git
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ setenv = OS_STDOUT_CAPTURE=1
OS_TEST_PATH=./cinderlib/tests/unit
usedevelop=True
install_command = pip install {opts} {packages}
# Use cinder from master instead of from PyPi
deps= -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
git+git://github.com/openstack/cinder.git

commands =
find . -ignore_readdir_race -type f -name "*.pyc" -delete
Expand Down

0 comments on commit 3f7d9ab

Please sign in to comment.