Commit Graph

55 Commits

Author SHA1 Message Date
Zuul 3a863b66c7 Merge "[community goal] Update contributor documentation" 2021-09-17 07:46:09 +00:00
Zuul c4a999f934 Merge "update master branch name to xena" 2021-09-02 13:50:54 +00:00
Ghanshyam Mann bfe6fe4a0b [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: Iae0078a87caee6dbcf2e451e7bb35acc02fd4253
2021-08-30 17:14:12 +00:00
Dirk Mueller a20149e1ae update master branch name to xena
Change-Id: I95f40cf2ff531e6eb99bde59cd1d60ad9ab9e30f
2021-07-17 16:39:11 +02:00
Dirk Mueller 39aff970c1 Switch to OFTC
Change-Id: I4f68538897826bfc2a7d855e485634dae243c049
2021-06-07 10:30:14 +02:00
Thomas Bechtold 668aaf91d5 Fix current master release
It's wallaby now.

Change-Id: If4046f7cd5567e315056c1bd5738bc818469090a
2020-10-21 09:16:53 +00:00
Javier Pena 7fea3fa052 Uncap the flake8 version
The old flake8 version we used was causing trouble. This commit
uncaps the flake8 version, and fixes the new warnings and errors.

Change-Id: I533ddcc8fc14dfaf9dd32fa3e69f4acee06ceae7
2020-10-21 10:23:02 +02:00
Hervé Beraud 5f30bdcfa6 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: I91a2a6a66ad000052e8e35ee3e3314b45ec11ed6
2020-06-03 10:49:11 +02:00
Thomas Bechtold fb6e48d955 Fix current master release
It's victoria now.

Change-Id: I6167214d3729ae90764a1677430c71626ba63f0d
2020-05-12 09:31:48 +02:00
Ghanshyam Mann 5711f63d1b Centralize basepython as py3 in tox
OpenStack ussuri release will be python 3 only
so let's define the basepython in common env now.

Change-Id: I431523d0cd23c227e535c471bb0c74a3586fa696
2020-02-15 17:20:53 -06:00
wangfaxin 003d4a009a update GERRIT_HOST url.
Change-Id: Ibf15e5371f7adb232f3f6d4e6fa3df5f3dcbf736
2019-12-18 14:42:31 +08:00
Thomas Bechtold b90f6aed20 Switch master to Ussuri
Change-Id: I87a77ceb0ba2578900d69d1b4b3d86e88e356a64
2019-10-21 05:53:45 +02:00
Thomas Bechtold 7379ed6f79 Fix status generation when no releases are available
This fixes:

  File "rpm-packaging-status.py", line 153, in find_highest_release_version
    return max(releases, key=lambda x: version.parse(str(x['version'])))
  ValueError: max() arg is an empty sequence

Change-Id: Ide1068e1b0614b099cd4fa88dad1e5581884bf9a
2019-09-24 09:07:37 +02:00
Thomas Bechtold f4b0814a30 Move current CLI behaviour to a subcommand called "status"
Instead of calling

./tools/rpm-packaging-status.py ../releases/ ../rpm-packaging/ \
    ../requirements train

do now

./tools/rpm-packaging-status.py status ../releases/ \
    ../rpm-packaging/ ../requirements train

With that we can introduce other commands in the future.

Change-Id: I182c3e4c8a0e0d3bad7e9636050a328d6ca72b03
2019-08-06 14:30:43 +02:00
Thomas Bechtold 59c9ae3dc5 Use python3 in shebang
Get rid of python2

Change-Id: Iba609c18e173301ca8c4d4c584431a98f332dad3
2019-08-06 13:34:44 +02:00
Dirk Mueller c33ad8f785 Follow opendev rebranding
Change-Id: I9239f0b537b6bb4284b60f0920943d7afe284ff9
2019-04-20 10:34:17 +02:00
OpenDev Sysadmins bf79ada53c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:37:13 +00:00
Thomas Bechtold 25895c2665 Switch current master to train
We branched stable/stein so master is now for train.

Change-Id: Id433d8d512e62bdf405303829ebff3e2d8849a97
2019-03-28 11:26:43 +01:00
Colleen Murphy 9d04d1583c Fix reporting when package version is unset
When a package tracks a stable branch rather than release, the spec file
doesn't contain a specific version number and so the status tool usually
reports it as "{{ py2rpmversion() }}" which gets converted to a Version
object that uses version 0.0. This causes the report to make it appear
like this packages need to be upgraded, but in reality no changes are
needed because they automatically track the branch. This change detects
versions like this and reports them as "ok" instead of "needs upgrade".

Change-Id: Ia1191c6c0938e78d8824cb8d893d561ddd99de4a
2019-03-12 13:22:41 +01:00
Thomas Bechtold d4dc71da24 Fix current master release
It is "stein", not "queens".

Change-Id: I7a4f661ddf16e2c94f8fc369bbc06c6fb6cc24b3
2019-02-06 06:22:30 +01:00
melissaml 6139762c67 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I478e848ea15bd69290cd4983a0531d0a672382d8
2018-12-14 19:52:25 +08:00
Colleen Murphy 63eee60d82 Add status check tox env and zuul job
This patch ensures that the status check tool is run in CI when changes
are made so that we can properly validate the changes and see the
example output.

Change-Id: Ide20064713e54638661b779e371ee9dbbdff1634
2018-11-09 13:40:13 +01:00
Colleen Murphy 27a8a74257 Add requirements for HTML report generation
Change-Id: I7346450ae57c452fa9e5b54f0b18c381fc6c306f
2018-11-09 11:39:49 +01:00
Colleen Murphy 9cbf531827 Add requirements to test-requirements.txt
Without this change, in order to run the rpm status check you need to
figure out by trial and error what the script's dependencies are and
manually install them. With this change, running the script is as simple
as

 $ tox -evenv -- python tools/rpm-packaging-status.py $releases $rpmpackaging $requirements stein

Change-Id: I4dd6ca73d3522e5aeace2b9fd81cd8b39be755a0
2018-10-15 15:19:46 +02:00
Colleen Murphy 8cb55cee82 Fix version parsing on python3
When run under python3, comparing a Version object with the string
obtained from parsing upper constraints caused a TypeError:

 TypeError: '>' not supported between instances of 'Version' and 'str'

This patch converts the upper constraints version number to a Version so
that it can be properly compared. It skips this if the string is '-'
because that means it is not in upper constraints.

Change-Id: Id1c97d42100cb973b856ecfbb8162ff30e94042d
2018-10-15 15:19:34 +02:00
Doug Hellmann 9a40fad6b8 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I4099b85b36164577f238001acd520e4322cf3d8e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:46:17 -04:00
Doug Hellmann a9f4e5146b import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ifbdbbd18184e4ba78b1ce9e933cdea271486c640
Story: #2002586
Task: #24323
2018-08-31 10:10:28 -04:00
Dirk Mueller 7f31b6cabc Prefer release series over independent directory
When a package is switched from release-independent to
release-trailing the version comparisons were actually incorrect.
Prefer a series entry over _independent. Without this patch,
python-magnumclient is compared against "_independent" version
of 2.0.0 instead of 2.10.0 in "stable/rocky".

Change-Id: Ia5283589ce43523899df21df27adf6c8ea4f61f3
2018-08-21 21:49:29 +02:00
Thomas Bechtold 14b87ceb18 Switch master to Queens
Change-Id: I8b4ff7af88e7341688e25952ca2bf2d5ffe04fe6
2017-09-15 15:42:42 +02:00
Thomas Bechtold 4639527257 Fix version detection
When upstream_version() is used as a function with a static version,
fix the detection.
The detection for dynamic versioning is still broken.

Change-Id: Ief534ad74d91c5a2e305f294707abda9642bfe71
2017-04-22 08:04:20 +02:00
Thomas Bechtold cea9e32215 Use 'tarball-base' attribute for name mapping
Instead of maintaining a list with name mappings, use the
'tarball-base' attribute for name mappings.

Change-Id: I9f4bce72aeba15894b3818a35e19ccb664e16480
2017-02-22 06:42:50 -05:00
Thomas Bechtold a7bdc4d9ba Sort by comment
That way the TODOs are on top and newly needed packages at the end.

Change-Id: Ic6051a9e31f97c897c7368b287f9c36151949c66
2017-02-21 16:54:45 -05:00
Thomas Bechtold c95b7fffca Also parse and add independent projects
We also want to have the info about the independent project releases.

Change-Id: I769ee84342195d3b441980ef39518806650ea940
2017-02-21 16:32:15 -05:00
Thomas Bechtold cb522ac343 Switch master to Pike
Change-Id: I5e7b0331f9c6bea815f97a6a9a8fd6f5e0855294
2017-02-10 14:21:25 +01:00
Thomas Bechtold 75fd109cad Recognize versions set via the upstream_version var
The version for renderspec spec templates can be set via the 'upstream_version'
variable. Check for that when showing/comparing the versions.

Change-Id: I6fa48058ef37d42890137936f29978cfb7fd4ec5
2017-02-06 11:41:12 +01:00
Jenkins 4c9e925d00 Merge "Add tox.ini with a pep8 env" 2016-12-09 11:25:40 +00:00
Thomas Bechtold de308edd21 Do not fail with yaml files without a release
Change I9b9c776aad8acbdbb002a8e6615e3bf90095b2ca added deliverable
yaml files without any release.
Just skip these files and do not fail in that case.
This fixes:

Traceback (most recent call last):
  File "rpm-packaging-status.py", line 336, in <module>
    sys.exit(main())
  File "rpm-packaging-status.py", line 286, in main
    v_release = find_highest_release_version(data['releases'])
KeyError: 'releases'

Change-Id: Iae5a086e53e6ea8568cd2193a7199305c9c43f1e
2016-12-09 01:36:23 +01:00
Thomas Bechtold 0aaded1980 Add tox.ini with a pep8 env
This adds the basic tox test infrastructure. It is now possible
to run "tox -epep8".
Also fix the current flake8 errors and add a .gitignore.

Depends-On: I84807f555ef97cd3661e1f6a5423bd2a2b86b416
Change-Id: I053ad914e282e3cbde71ba40eaef37c5424289ea
2016-12-09 01:33:16 +01:00
Jenkins 40c0921b6b Merge "Show open reviews on gerrit for projects" 2016-12-07 17:40:27 +00:00
Thomas Bechtold 79fc3575bd Show open reviews on gerrit for projects
When listing the status for the different projects,
also show the open reviews. This is useful to find similar
reviews for a given project.

Change-Id: Id9421148e82c27b5dbe8227f2a44e35768379532
2016-12-07 08:22:11 +01:00
Flavio Percoco ebbc8e9f83 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/886b823c6e1f668a9577b619b7904c0c\n'

Change-Id: I4f19c60d7ba9b9bbc812f0ca19ecddc67045ddc4
2016-11-25 13:03:05 +01:00
Jenkins a535302317 Merge "Also show upper-constraint version in overview" 2016-10-13 12:34:43 +00:00
Tony Xu b53778bd69 Add mappings for glance_store/aodhclient
Change-Id: I190ce7423b1142b5ff974c2ec81b30fe23d2a619
2016-10-06 23:27:09 +08:00
Thomas Bechtold 3c45f621a5 Also show upper-constraint version in overview
This is useful to see if the release and upper-constraint versions differ.

Change-Id: I04eafa8b04764617adf9fb9bc77b7d0851c3b672
2016-10-06 10:44:09 +02:00
Thomas Bechtold 9cffd46bca Use own rpm_split_filename function to reduce dependencies
rpmUtils is from yum but we just need a single function to
split a rpm filename into it's components.
So copy the function from rpmUtils and use the copy.

Change-Id: I4c0826aebaee9e65ae852d0d1e0e88341053dc4b
2016-07-14 10:23:29 +02:00
Jenkins 942c449009 Merge "ALso allow release files with .yml ending" 2016-07-08 14:04:57 +00:00
Thomas Bechtold bda5c67da3 ALso allow release files with .yml ending
I.e. osprofiler ends with .yml [1].

[1] https://github.com/openstack/releases/blob/master/\
    deliverables/newton/osprofiler.yml

Change-Id: I31010633b068441420de2e3bf196dac712a02a2f
2016-07-08 14:51:07 +02:00
Alberto Planas c662028852 Fix git URL in README.rst.
Change-Id: I938c5318c40ad5ca4213dafbb9d4f9b7591950b7
2016-07-08 14:44:26 +02:00
Thomas Bechtold b10ed4c261 Add optional check for OBS published XML
The OpenBuildService has a published XML format with packages and
versions. Add an optional parameter "--obs-published-xml" which
points to an xml file. If that parameter is given, also evaluate
the xml file and output the version from the OBS xml in the tables.

Change-Id: I74d56a538c17192f8132814eaa7f207bf14577e9
2016-04-01 09:50:37 +02:00
Thomas Bechtold 6c19dae440 Change default release to "mitaka"
Change-Id: I6c44381454dca9eedeb0d93554ee2170d336613f
2016-04-01 09:11:12 +02:00