The generic translation rules
def openstack_prefix_tr(mod):
def rdo_horizon_plugins_tr(mod):
def suse_horizon_plugins_tr(mod):
Only have return values for pyvers=py, Update the rules to return the
same pkg regardless of pyversion.
This way:
for pyver in py py2 py3 ; do
pymod2pkg --dist xx --pyver $pyver Tempest
done
returns openstack-tempest for all python versions
Change-Id: I73a49916e2b2898cb31d8cfd68e25b94d39b1934
unittest2 was needed for compatibility with python <= 2.6, so we have
not needed this for quite some time now. See unittest2 note on:
https://docs.python.org/2.7/library/unittest.html
This drops the use of unittest2 in favor of the standard unittest
package.
Change-Id: I46ec317f0ee43ff95d8af1aa68b8d0596dc4dd35
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
- openstack-placement maps to placement in the openstack repos
- openstacksdk now maps to the same name
Change-Id: I9f5dd0300c6fb9eb21784bc98971a06294826273
We currently have Tempest (uppercase T) but the pypi name is really
tempest (lowercase t).
So support both (upper/lower case) for now.
Change-Id: I0b74f9f79a8610d23912334310f148f2915f3f4d
The pypi name for OpenStack Placement is openstack-placement. This
name must not be translated (so the result is openstack-placement).
Change-Id: Ic47a0a5b66f23d0fb37364d79e7a61a9e6dcca8a
There was another corner case not found by unit tests. Add
testcase and skip re-expanding the -ui/-dashboard renaming
for the python- subpackage.
Change-Id: Ifa08bc8da8524e15e90bafbb40d6a3ca1acbb615
The change https://review.openstack.org/#/c/622228/ broke
the mapping for neutron-fwaas dashboard. The change introduced
there did not match "neutron-fwaas" because of only matching
for a single word, not a word combination connected by "-".
Change-Id: I9b427b21dfede77935bcfb9559a9afde8957428e
- corresponding tests
- removed the existing rules for *-dashboard for suse as they covered
under regex rules
Change-Id: I99135df7173cd52d0088b276fb0dddca3cb6ae9b
RDO does not have python2-foo packages for everything but python2-foo
packages usually Provides python-foo packages. So change the default
translation for python2 packages to python-foo (instead of
python2-foo).
Change-Id: I51cacf2de8fd108b224f442bd760fa8ba43daec9
On SUSE, the main package starts usually with python- (eg. python-Babel)
and then the py2/py3 packages with python2- and python3- .
To be able to use pymod2pkg for the singlespec convertion, also an
unversioned name is needed.
Change-Id: I3eed46af4ac8c937222c927516bd1a338200d6f2
Python3 support is added by:
- Having a new command-line option (--pyver) that allows us to select
with Python versions we need (by default only Python 2).
- An updated module2package function that returns the required package
name(s).
- Updated rules to return both python2 and python3 package names.
Change-Id: I85009d1671d38773ab49865f9acc3e3c4802b542
Add support to translate package names to what
is in the Ubuntu Archive.
Change-Id: Ie64ecaf1dc7dde9d51e6085215aba56ca3ff3fdd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This patch adds a new OPENSTACK_UPSTREAM_PKG_MAP map to map PyPi
names to OpenStack project names, as they are not always the same,
and a --upstream command-line argument to pymod2pkg.
Change-Id: I4eda55b4d7b2dcc8df28912913b876e2c40289b3
(python-)aodhclient is, unlike all the other openstack clients,
actually registered as aodhclient in pypi. Same for gnocchiclient.
Change-Id: If8b9e99d8719a46de3aca72be702a35159b5ba6e
In addition to the tox.ini, there are some more changes
to enable testing:
- require flake8 in test-requirements.txt
- fix current pep8 errors
- add .gitignore including the .tox dir
Change-Id: I4cf9d8fc1c9a2eb4929fddb4a18a7db87481017c