Commit Graph

23 Commits

Author SHA1 Message Date
Tony Breeds 056184c363 Add a tool to update the releases repo
Change-Id: I216b77823281abe390e35395ac8d9ccc7f3064b9
2023-07-13 16:39:46 +10:00
Zuul 35c2bc9856 Merge "Switch to 2023.2 testing runtime py version" 2023-05-16 02:52:20 +00:00
Ghanshyam Mann 7f56f206e6 Switch to 2023.2 testing runtime py version
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
2023-05-10 15:29:50 +00:00
Tony Breeds edfebf3dcc Update package metadata and tox4 setup
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
2023-02-22 03:37:10 +00:00
Tony Breeds c993e3ef10 Use underscores in setup metadata
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
2023-02-02 11:34:37 +11:00
Andreas Jaeger 8843e43329 Small cleanups
* 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
2020-02-23 16:24:13 +01:00
Jeremy Stanley 7c7da155e5 Consistent HTTPS for URLs in non-historical files
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
2019-03-04 16:36:46 +00:00
Tony Breeds 745b694f4b Add a tool to pick some start dates for an election
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
2018-12-12 14:09:05 +11:00
LeopardMa 86e2bfe120 Change openstack-dev to openstack-discuss
Change-Id: Ibd1e60a932f406605c10894ea62c612d9b8c1871
2018-12-04 02:59:59 -05:00
Tony Breeds 32db09bc0f Update template_emails to be a functional tool
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
2018-09-05 10:08:05 +10:00
Tony Breeds e6ed0b1ef2 Python3 by default
Set all the tox environments to be python3 *except* venv2.
Set the trove data mostly because we can.

Change-Id: Ib65e84c7da16683f70657a3bc8e9b9ccdb8f1c8a
2018-09-05 10:08:05 +10:00
Tony Breeds 8a3f32a01d Add a new tool meant for CI to validate all files under candidates
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
2018-07-27 14:21:51 +10:00
Tony Breeds af28fc385c Make owners a 'proper' openstack_election command
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
2018-05-15 15:21:14 +10:00
Tristan Cacqueray fe2ac4be95 Rewrite generate-rolls in python
Change-Id: I20de88a41eaf1d1bfba1e82f487ec508900f9494
Depends-On: Ie3b602237625e11651825abc8feb38caa73e9632
2017-02-01 01:19:13 +00:00
Tony Breeds fc8def9a6f Don't build manpages
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
2017-01-05 12:57:04 +11:00
Tristan Cacqueray f6507b695d Import the new-election tool as create-directories
Change-Id: I9a1dc9f22683852af1527449b2b46c2eaf78ad9c
2016-11-09 03:24:18 +00:00
Tony Breeds 4608160aed Add a quick tool for searching generated rolls
Change-Id: Icf2c05fb751297fb60668be8c76b6913f0406e80
2016-10-06 11:12:33 +11:00
Tristan Cacqueray 72e0775ae7 Add close-election utility and archive rendering
* 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
2016-09-30 01:41:47 +00:00
Tristan Cacqueray 45f3c5d005 Add statistics rendering tool
Change-Id: I5ef2bd5361385ab203b5ea093603fd91d16661fd
2016-09-14 11:25:20 +00:00
Tristan Cacqueray 1f55a539ae Fix check-all-candidacies entry point
Change-Id: I533db9647c8649b5d388aa9278ae85bc84d066b8
2016-09-12 07:41:49 +00:00
Tony Breeds 437e0d19fc Add check-manual for checking a candidate *without* an open review
Change-Id: I869aa412e90170fe5cc7d317c081fd19d38b5989
2016-09-12 07:41:49 +00:00
Tony Breeds b285d3dd9c Make openstack_election look more like a python module
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
2016-09-12 15:35:40 +10:00
Tristan Cacqueray fe3378c68f Cargo-culting doc building from openstack/ossa
* Directories tree for mitaka projects
* Tools to check candidacy
* Generate candidates lists

Change-Id: I784bc4a3a06d3d7506df6d2ef7e6b0362f7696b9
2015-09-10 13:32:36 -04:00