Commit Graph

229 Commits

Author SHA1 Message Date
Dirk Müller 520ee43dab
add suse_py311 flavor to explicitly render templates for py311
This is needed when py 3.11 is not the primary python version
(e.g. SLE15).

Change-Id: I362ec318a0c63f54469eb3267b5b8d868856bbdf
2024-01-07 14:48:17 +01:00
Zuul 3c045314de Merge "remove unicode from code" 2023-03-03 21:15:43 +00:00
Dirk Müller 90059d316c
add suse_py39 flavor to explicitly render templates for py39
This is needed when py 3.9 is not the primary python version
(e.g. SLE15).

Change-Id: I2a94acbf3b6f601e3665fe3bd32401468af67d20
2023-02-17 19:13:23 +01:00
Tony Breeds e72a16d6d9 Add reqs2pkg
This tool reads in one or more python requirements files and generates
a list of distribution specific package names  the intent is to use it
something like:

  sudo ${package_manager} install $(deps2pkg -r requirements.txt -b)
  sudo pip install .

To install a python project that runs against the distribution provided
pagages rather than pypi wheels/dists

Change-Id: Icd0720311e7863190b84aa916f13e7efa830a4eb
2022-09-06 12:37:13 +10:00
Tony Breeds 2d447598e2 Move CLI code into it's own module
This makes pypkg2mod more like a conventional library/module by moving
the cli code into it's own module.  Making room for additional command
line interfaces

Change-Id: If15b85ac3230adf9cf2bc8a9c1c7a9ac9f31eda9
2022-08-29 13:59:43 -07:00
Tony Breeds 6626d1f62e Convert from "-" to "_" in setup.cfg
Get away from wrnings like:
 UserWarning: Usage of dash-separated 'description-file' will not be
 supported in future versions. Please use the underscore name
 'description_file' instead

Change-Id: Ib111b58bd7ac79cecc5a5b3dd480942e8a516cb7
2022-08-29 13:57:56 -07:00
wangjiaqi07 449387e98e remove unicode from code
Change-Id: Iae4c10467e9e627c9c53defd256270fc559fab16
2022-08-26 18:55:43 +08:00
Tony Breeds 31bdf76391 Update package rules for some packages in the Redhat ecosystems
While using pymod2pkg on Red Hat's Openstack Platform, I discovered that
some package rules are incorrect for RHEL, and Fedora.  This change
updates these packages for the current mapping.

No attempt has been made to address if the packages *may* have had
different names in older Red hat ecosystem releases

Change-Id: Ib8dec98db572b005b6a6c0c9cbd4d7d8f45a3aba
2022-08-19 11:54:36 -05:00
Tony Breeds b861f9d3c6 [tox] Update constraints, flake8 settings and default envlist
In validating the change after this I found that:
1. The pypy tox env defaults to pypy2 which obviously is a problem
2. The constraints URL, while functional, follows an older more complex form
3. The pep8 tox env would descend into .tox which fails as packages
   outside of out control may have pep8 issues
4. I often have a .venv directory which fails for the same reason as
   point 3

This change addresses those issues suck that a `tox` run completes as
expected.

Change-Id: Ia64b5f7b69744ede12604bfd204ae0cbdb6aeea2
2022-08-19 11:48:45 -05:00
Tony Breeds 3edbe8484c Add python2 and python3 return values
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
2022-07-27 15:50:18 +10:00
Dirk Müller 8f07a592c8 update to zed level jobs
Raise flake8 level as well. no changes required to pass

Change-Id: I1ae8e98df2cd27a09cbd93017f893f90199cd547
2022-05-13 10:13:51 +02:00
Zuul d4c07c5c0e Merge "Change RDO mapping for sympy and protobuf" 2022-05-09 09:01:50 +00:00
Zuul c23365cf8d Merge "Add RDO mapping for psycopg2-binary" 2022-05-09 09:01:14 +00:00
karolinku 436089a523 Add RDO mapping for semantic-version
Add rule to handle both versions of name:
semantic-version and semantic_version

Change-Id: I6505427b56cd8f0028b7fa5b009f1d8bc42eacef
2022-04-14 16:15:41 +02:00
karolinku aa82a45ad8 Change RDO mapping for sympy and protobuf
RDO packages are python-sympy and python-protobuf

Change-Id: Icf9b972a767b62d68eb3f1bfa1f5cf1a86dc5b02
2022-04-14 15:21:03 +02:00
karolinku b3c701d7d6 Add RDO mapping for psycopg2-binary
The RDO package is python-psycopg2

Change-Id: Ia50671f4763348d4b13694f8658214a36fff36bc
2022-04-14 15:02:28 +02:00
Joel Capitao b5804a6598 Revert "Fix PyYAML mapping for RDO"
Let's revert this commit to use lower case
package name. It was renamed in [1] in order
to satisfy global naming convention [2].

[1] 8dad75a729?branch=rawhide
[2] https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_general_naming

This reverts commit 3b2f6d7730.

Change-Id: Ib9030240ad11287acfa84a706156f9b56e02f668
2022-03-01 18:30:25 +01:00
Javier Pena 34c40b322b Add RDO mapping for suds-community
CentOS is currently distributing python3-suds in its repos, so we'll
keep that for the time being.

Change-Id: I5e7cf1364aeed41d713e35adc353e9224abef20c
2021-10-28 11:22:20 +02:00
Kendall Nelson 27cc192501 Remove retired Karbor support
As announced on the openstack-discuss ML[1], Karbor is retiring
this cycle (Wallaby).

Needed-By: https://review.opendev.org/c/openstack/karbor/+/767032

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018643.html

Change-Id: I23457c92b3e6c171164250edfac6d8c31f1854ea
2021-10-16 20:31:19 +00:00
Zuul 279ddba55a Merge "Remove retired karbor usage" 2021-10-16 20:27:40 +00:00
Zuul 9a289d9d72 Merge "Use py3 as the default runtime for tox" 2021-10-16 20:23:11 +00:00
Zuul 0b5fcb9c0c Merge "Retire django-openstack-auth" 2021-10-16 20:23:09 +00:00
Javier Pena f329204318 Add RDO mapping for prometheus-client
In RDO, the python3 package is python3-prometheus_client.

Change-Id: I32f05007d577a9516d5ac2b2087a75c47e284fa2
2021-10-08 12:45:57 +02:00
Ghanshyam Mann a04c10dae5 [community goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38550
Change-Id: I4c6cb07fc0fab0180cea3d5f6284aa17a7c7dff7
2021-08-30 17:14:42 +00:00
manchandavishal ec2aa95875 Retire django-openstack-auth
``django_openstack_auth`` code was merged into the main horizon
repository during the queens release. This repo is already
deprecated and now we can retire it. This patch removes all
references of ``django_openstack_auth`` as mentioned in [1].

[1] https://docs.openstack.org/project-team-guide/repository.html#retiring-a-repository

Needed-By: https://review.opendev.org/c/openstack/project-config/+/800532/
Change-Id: Ie57ff1193c516ba7d6ba8e60a389ed5bf9fd72fc
2021-07-13 23:02:34 +05:30
Ghanshyam Mann f68c89bc7e Moving IRC network reference to OFTC
Change-Id: I36807a8267fd33be737da084712ac31ce135d49c
2021-07-08 08:29:22 -05:00
zhangboye 6466ee2cad Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: Iba3c9b38260ad757c2e055d13da8ff740c014aa0
2021-04-20 16:36:54 +08:00
Hervé Beraud d14d9ddfc7 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

Notice that pymod2pkg isn't released by the openstack/release team due
to the recent SIG move, however standardization can't hurt.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Iba51416b8c4544db3983ac0ea1e6ea53d266be7c
2021-01-07 16:34:24 +01:00
Ghanshyam Mann 2f8586250a Remove retired Qinling support
Qinling project is retiring in Wallaby cycle[1].
This commit removes the usages/support of Qinling project
before its code is removed.

Needed-By: https://review.opendev.org/c/openstack/qinling/+/764521

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018638.html

Change-Id: I6172fb9c2394a7b2a142f937940ee5d90f591c82
2020-12-17 08:30:33 +00:00
Javier Pena 004326ce61 Bump some requirements in lower-constraints.txt
The current lower-constraints job is failing due to an issue with
the pip resolver and the docutils minimum version. This commit should
fix that.

Change-Id: I05e53e3ae5065f443903698754ecce7e3fcf489d
2020-12-16 10:44:51 +01:00
Hervé Beraud 286f10c412 Remove retired karbor usage
Karbor project is retiring in Wallaby cycle[1].
This commit removes the usage of Karbor project
before its code is removed.

[1]
http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018643.html

Change-Id: I72d7e06387b4a52deb078f5cceb8b40f3d1ca5b5
2020-11-30 09:46:31 +01:00
Ghanshyam Mann 298e4119cb Remove retired Searchlight usage
Searchlight project is retiring in Wallaby cycle[1].
This commit removes the usage of Searchlight project
before its code is removed.

Needed-By: https://review.opendev.org/c/openstack/searchlight/+/764526

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018637.html

Change-Id: Ief6a62bcd36d15ef1eb8ce97957a6cedf721fe2b
2020-11-28 16:51:14 -06:00
maaoyu 5138e3e1b4 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I37ddbac65128ad3df123440fccbf63958c60d6ba
2020-10-12 15:16:59 +08:00
Joel Capitao 3b2f6d7730 Fix PyYAML mapping for RDO
Change-Id: I3537bd87c29d59d3eeb42d3b2e81a2adbcb40a60
2020-08-07 15:23:30 +02:00
Hervé Beraud 052a798bb9 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I7188b8519e62943ce1ea6fb6cd8dec37d7587d9b
2020-06-02 20:45:37 +02:00
Andreas Jaeger 8ed0100952 Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ia09a198905ef04b5ea0c2dac440882c45d8b147c
2020-06-01 15:23:00 +02:00
Jan Zerebecki 5c9c2833eb
Add ansible-runner
Change-Id: I0d8529c0db6cca3e37ee8467e9ba4c368b7b94e7
2020-04-30 15:37:31 +02:00
Ken Dreyer 429780de96 doc: update git clone url to opendev.org
Tell users to clone the source code from the new location.

Change-Id: I0a1b222a84070a76a5643a843ab9f67e8c3e3588
2020-04-15 14:04:53 -06:00
Andreas Jaeger f740d320fc Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I1251a9904fcc146ec615ba2c7f93a1b675e3220f
2020-04-05 10:25:07 +02:00
Dirk Mueller 037724dd88 Switch away from deprecated distribution lookup
Python 3.8 removed the linux_distribution support, we need
to switch to the distro package.

To pass testing, we need to update to a newer flake8 version.
Also update setuptools annotation since Python 2.x support
has been dropped.

Change-Id: I40768af80ff376866b1070026a93fd3f4bb1c2e4
2020-03-23 12:37:13 +01:00
Ghanshyam Mann 5012af2f47 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

pymod2pkg is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I7cf441a76a209287eb935e2d360022d957b56954
2020-02-15 17:14:08 -06:00
Sean McGinnis f8b81c71f9
Drop use of unittest2
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>
2020-01-12 02:31:47 -06:00
Javier Pena 7f6c72d97b Fix some upstream mappings
- openstack-placement maps to placement in the openstack repos
- openstacksdk now maps to the same name

Change-Id: I9f5dd0300c6fb9eb21784bc98971a06294826273
2019-10-11 11:04:48 +02:00
Javier Pena 756c7a7cdf Fix pyOpenSSL mapping for RDO
The previous commit turned the mapping into "python-pyopenssl", which
is not what we want.

Change-Id: I613b893b9ae125f6e25a0c15012f7e8bb38c65e8
2019-09-27 16:59:20 +02:00
Javier Pena 62637352bf Remove pyOpenSSL mapping for RDO
We can now use python2-pyOpenSSL and python3-pyOpenSSL as package
names.

Change-Id: Id31b4aa49f46a6ce98c534943d3317e34f6d1761
2019-09-27 12:43:51 +02:00
Ryan Tidwell adcd701232
Add neutron-dynamic-routing translation for RDO and SUSE
Change-Id: I72763b02174ec8c08d12db06c71a515031e7bdc8
2019-09-20 10:56:45 -05:00
Javier Pena caf23616be Add sphinxcontrib-svg2pdfconverter mapping for RDO
The Fedora package for sphinxcontrib-svg2pdfconverter is split into
two main packages: sphinxcontrib-rsvgconverter and
sphinxcontrib-inkscapeconverter, with a -common subpackage for common
assets. For the OpenStack use case, we want to use the rsvg-based
converter.

Change-Id: I0918126db3f5bf51f2bc327663065b9a6933b6da
2019-09-17 10:41:29 +02:00
Thomas Bechtold 079347dd37 Translate tempest to openstack-tempest
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
2019-09-03 09:57:05 +02:00
Thomas Bechtold bda6c851c9 Add openstack-placement rule for SUSE and RDO
The pypi name for OpenStack Placement is openstack-placement. This
name must not be translated (so the result is openstack-placement).

Change-Id: Ic47a0a5b66f23d0fb37364d79e7a61a9e6dcca8a
2019-08-26 14:39:11 +02:00
Dirk Mueller dbba22a16a Add openstack-placement mapping
Change-Id: Ie744e78068d342993f9bcb7a3574fc82156e234d
2019-08-21 22:57:09 +02:00