We have prepared general testing template now and
that has been updated for 2023.2 (current dev cycle)
testing runtime.
- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/873051
Switching election repo testing to the general template
and we do not need to update it in future cycle (all adjustment
of future cycle testing runtime will be handled by central place).
Change-Id: I1ea1e98ba4b7214b4576ecac1e2fdd66bd218c06
The current tox setup results in an 'editable-wheel' install which,
while it works, generates unhelpful warnings. Switch to the 'editable'
type which is what you got under tox <= 4.
While we are reducing noise in the logs, correctly setup
openstack_elections.templates as a module. We need it as a module as
we rely on Jinja2 to be able to use the module loader to locate the
templates.
Change-Id: Icbdca2f72c0777c587d6f95b3fab1911be179f97
Fixes:
[pbr] Generating ChangeLog
.../lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
.../lib/python3.11/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
.../lib/python3.11/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead
warnings.warn(
.../lib/python3.11/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'home-page' will not be supported in future versions. Please use the underscore name 'home_page' instead
warnings.warn(
running editable_wheel
Change-Id: I248d6a305108f4eb49b8ce10829fb4f650104c8a
* Remove usage of six, this repo is using python3 only.
* Remove settings from conf.py that are default in
newer openstackdocstheme versions.
* Remove obsolete build_sphinx sections from setup.cfg, sphinx-build
does not need this. Remove ignored warnerror.
Change-Id: I7b0625a71d81305d90157e42fc6a5065c9be47d1
Update the URLs in various templates and generated content to
consistently use https:// instead of a mix of that and http://, and
while we're at it set the homepage for the Python package of this
repo to the election site rather than the OpenStack Foundation site.
Change-Id: I4fa53076ed9bcdf1545d9c4aa5e80dc5dad95210
For the most part the dates for an election can be known in advance and
the formula for working them out isn't too complex.
Add a tool that, given some simple args, can make an educated guess as
to when an election should be run.
Change-Id: Ied3b5e2d4494f325bda549f303e68151856008bf
At this point 'functional' just means compiles and runs without doing
anything. We'll update it to have a UI as we update the various emails
Change-Id: I812f5737cb81d657f2b299122bd2337130213590
Set all the tox environments to be python3 *except* venv2.
Set the trove data mostly because we can.
Change-Id: Ib65e84c7da16683f70657a3bc8e9b9ccdb8f1c8a
The new tool validates the current release looks to exist ; assuming it
does it performs the following checks against every file found:
1. The file looks like an email address (currently contains an '@')
2. The email address is found in the OSF directory
3. The email address has a merged commit in the expected timeframe for a
deliverable under the governance of the project team the candidate is
nominating for.
While this is meant to be used in CI, the output should be reasonably
readable by a person, either official or candidate.
Change-Id: I51e80f5d185e3ef0be53fd8c9fba19338d9a049a
This change moves the argument parsing for owners.py into it's own
module. We preserve the exiting shell interface. This is the first
step to allowing refactors between owners.py and the other
openstack_election modules.
The installation docs as commented in owners.py were moved and slight
updated
Change-Id: Idf0df6a5b319da2dc1ec4334d1fa0776f3d56612
Building the manpages is a (small) waste of resources as we don't have any.
Set sphinx to only build html artefacts.
Change-Id: I390715abbe9467d62cff58391214aa67ab3f28e8
* close-election [ptl|tc] generate a yaml archive in doc/source
* docs render the results pages based on the archive
* add documentation about the whole election officials process
Change-Id: I8f737f33befc1e8af52dac9c059f73e2874eb5f8
Currently the code in this repo is half modular have series of scripts.
Migrate the code to be more modular. The main benefit to this is
testing is easier.
Testing is added in a followup patch
Change-Id: Ic1262436147ecdb818ee259e2e85fca8df09d722