Commit Graph

292 Commits

Author SHA1 Message Date
OpenStack Release Bot ec7a2536f4 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I199cba41700c68170e5636b86b21e2fbb7dcf9dc
2024-03-07 14:14:33 +00:00
Takashi Kajinami 4e14db5c24 Bump hacking
hacking 4.0.x is very old.

Change-Id: I39976bf2842773453bbf5904791df8c10f7e920c
2024-01-28 16:00:59 +09:00
Ghanshyam Mann c1af9d7908 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I7db6bd1d62a2c92a6dd5c2beaf58dade84999c84
2024-01-11 15:36:37 -08:00
Takashi Kajinami 8b98478fad coveragerc: Remove non-existent path
The futurist/openstack directory does not exist.

Change-Id: I092cad0a0e2721f37f764bde2df0bebf08bbd776
2023-12-19 20:55:44 +09:00
Ghanshyam ede42b6ea2 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit dac990e281.

Reason for revert: 

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: I86e8aca1c08d51916f6c5c7cdfcf5e6860dfca42
2023-05-04 20:11:44 +00:00
Takashi Kajinami dac990e281 Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232

Change-Id: I85850b29b34f07f543613358be8c0f54dd75a78a
2023-04-10 17:21:14 +09:00
Takashi Kajinami 1d53984f42 tox: Replace whitelist_externals
This option was deprecated in favor of the new allowlist_externals
option and is no longer available in recent versions of tox.

Change-Id: Ica83dee466006e2753b0231753b89d4bb920e9c4
2023-04-10 17:21:14 +09:00
Zuul 9878187490 Merge "Add py39 package metadata" 2022-07-22 01:55:37 +00:00
Hervé Beraud 651597d072 Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Also indicate that we support python 3.9.

Change-Id: I1c4312be49376ef0a6fb97a1d9af79cf44de4c3b
2022-05-05 15:51:45 +02:00
Stephen Finucane 159d752030 tox: Trivial cleanups
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I6a78a626916796b7c385a89d2139b621140d6c0c
2022-04-06 14:14:45 +01:00
Stephen Finucane d17f58d1bf trivial: Remove unnecessary 'coding' lines
All files use UTF-8 by default in Python 3.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I7acf3a0ad369371aa4075962b3656467a6a37c58
2022-04-06 14:14:45 +01:00
Stephen Finucane 25f1fca3f4 Remove pbr from requirements.txt
We don't use this at runtime. No need to include it in the requirements.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I2fdb84ab433b7c1e0875e590f5b9c5565472883c
2022-04-06 14:14:45 +01:00
Stephen Finucane 57678fc04c Remove six
We don't need this dependency anymore

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I93d0c05b1f63c86040b52cdaea99ffb42bad3f07
2022-04-06 14:11:43 +01:00
Tim Burke 6c37422c15 Add py39 package metadata
Now that we're testing under py39, we ought to call it out as being
supported.

See https://review.opendev.org/c/openstack/futurist/+/833810

Change-Id: Ibc3391a66589a93b508079b7ea8dff1d18a3469f
2022-04-05 13:36:40 -07:00
Stephen Finucane 689ac0d47e Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I52de27cdf127969f45e1c360096fb1983dc55c8b
2022-03-15 15:05:50 +00:00
Zuul d70c7e5f46 Merge "setup.cfg: Replace dashes with underscores" 2021-05-26 18:32:19 +00:00
liyou01 d0739397e6 remove unicode from code
Change-Id: I825c922648482f079c10c8db4f7aac262af611ba
2021-05-26 16:52:12 +00:00
wu.shiming 4139990c80 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ie34c25c6e484952a89670986d90d9e015a1cf559
2021-05-13 03:02:15 +00:00
Stephen Finucane cad3f62cda trivial: Bump hacking to 4.x
We also remove a now-useless requirement from 'test-requirements' since
that stuff is handled by pre-commit.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I324251c28f9fd6b61909e5288974b96f804ec19d
2021-04-16 12:17:19 +01:00
Daniel Bengtsson 0273cb742d Move flake8 as a pre-commit local target.
The goal here is to avoid conflicts between flake8 and hacking version each
2 days.

Inspired from nova's approach[1].

The flake8 version to install will be determined by hacking and
requirements[2] will stay aligned instead of relying on different versions.

[1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35
[2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1

Change-Id: I7b08e7c2911b195d911efe02e5df635ad2c4739c
2021-03-23 13:13:24 +01:00
Zuul aa7bac4662 Merge "Remove lower-constraints remnants" 2021-03-16 15:24:36 +00:00
Zuul 7de1e9e932 Merge "Use py3 as the default runtime for tox" 2021-03-15 12:52:58 +00:00
Zuul 5aac3c5e65 Merge "Use TOX_CONSTRAINTS_FILE" 2021-03-15 12:52:41 +00:00
wu.shiming ffec6e1fe4 Remove lower-constraints remnants
These were missed in change: I64c8320d0cdd473d54d6de6050be4d60d92a7c5f

Change-Id: I469d53212193ecbe0b0907cd50ed9bd77a6ae67f
2021-03-15 10:56:10 +00:00
Hervé Beraud 52bb16ccad Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/
[2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ic6ed0834607d7d6e75cfcadeb0e2b990bb1aaab4
2021-03-11 17:36:13 +00:00
Wander Way 4373f93229 Uncap PrettyTable
This is now maintained as a Jazzband project [1].

[1] https://github.com/jazzband/prettytable

Change-Id: I2e28cda2a0fec1d79fe8da5dbaff0fb5dd23c972
2021-03-11 17:36:00 +00:00
Hervé Beraud 549c2ccaa4 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.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Ic5998308cf6892066b296a9e9455466d12f0d720
2021-03-11 17:35:34 +00:00
Stephen Finucane dce486245e pre-commit: Lower flake8 version
We're depending on flake8 3.8.3 and hacking>=3.0.1,<3.1.0, but that
version of hacking has a flake8<3.8.0 cap. Match our version of flake8
with the version expected by hacking. We can bump hacking later.

Change-Id: Icdd50050a193311ebbaed1f229a1f4d03d66d8a1
2021-03-11 17:34:53 +00:00
Hervé Beraud bd2356bfcf Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: I64c8320d0cdd473d54d6de6050be4d60d92a7c5f
2020-12-18 15:06:22 +01:00
Zuul 2cf42695fe Merge "ignore reno generated artifacts" 2020-11-10 00:59:22 +00:00
Zuul cbce9e1913 Merge "Adding pre-commit" 2020-10-05 17:23:11 +00:00
Hervé Beraud 94e8e0743c ignore reno generated artifacts
Change-Id: I9d6b7eb4db3c58fbfa915a45a33185c585efba76
2020-09-22 10:48:01 +02:00
Hervé Beraud d6c466197c Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I3a8d6c282a1ec8189f4150a5e5391a94591cff9d
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 10:46:49 +02:00
OpenStack Release Bot afe7105602 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I7dd8a0c6b71b8dc1fbea9ca7ef1704ea2db1e435
2020-09-11 20:55:33 +00:00
OpenStack Release Bot fe7bf8c90e Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: Id7d5e823fe8305cf5dcba4fe4a3e11bebc232c50
Sem-Ver: feature
2020-09-11 20:55:31 +00:00
Ghanshyam Mann 1a1c6f89c4 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40207

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h>

Change-Id: I14a1d33f1aedfd7bff265b7df2d3aa4340221144
2020-08-04 03:46:21 +00:00
Hervé Beraud 61389a15d0 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: Ife7e5175cebdaa454c61f7f9f768e3dc4221385a
2020-06-09 00:09:49 +02:00
Andreas Jaeger 604b63d3e9 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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: Ife447363df7ed70ee9d813cc70c236efdbb916b6
2020-05-26 08:59:13 +02:00
melissaml 84823603fe Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: Ia0cbbfeb790dd69046855bcecee9e402a9049ca4
2020-05-14 18:47:57 +08:00
Sean McGinnis b29f99d67d
Remove monotonic usage
The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.

Change-Id: I0e5bf6090ed85db2659b50096122a9abda9dde6a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-04 17:17:01 -05:00
Zuul e9acec2377 Merge "Bump default tox env from py37 to py38" 2020-04-27 09:47:54 +00:00
Sean McGinnis 34257a5681
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I0b7dada243ff409437c1799cd2b88696379f1a54
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:38 -05:00
Sean McGinnis 8d542e4dc4
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I72f0f0db1268c7e278bfa5d6b51f9b57f167fdbc
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:34 -05:00
Sean McGinnis cd07ab5eaf
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I2b8d8d6cf4ac29dc58cd8fe418d613445d65c3be
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:52:37 -05:00
OpenStack Release Bot e2fd748ce1 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I00636f150fa07f12696a433e5bec54d6cfe66e49
2020-04-14 10:12:21 +00:00
OpenStack Release Bot b283c2744c Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I1d4d4151e1071f1b4fa9799c18d4a0bc04ba5d1e
Sem-Ver: feature
2020-04-14 10:12:19 +00:00
Zuul 0ad5fd2284 Merge "Remove unnecessary blockquote in release notes" 2020-04-08 19:15:47 +00:00
Andreas Jaeger 4836b632dd Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

blacklist:
W504 line break after binary operator
E731 do not assign a lambda expression, use a def

Change-Id: I5099674e8813a070f34ba4fa4a26f2b61acad925
2020-03-30 11:57:06 +00:00
Tim Burke 08f3dc235c Remove unnecessary blockquote in release notes
Change-Id: I6ca1a0a77229a3274eb56e22dae7be34420b1308
2020-03-28 10:22:16 -07:00
Monty Taylor 79f240b79f Make PrettyTable optional
PrettyTable as a depend can have a tendency to conflict with other
things that want to use it, which is a shame for a general purpose
library like futurist. Make it optional to reduce the transitive
dependency burden for consumers.

Change-Id: Ie976f7f4e544f273fccf0cf579b82b659cbd48d1
2020-03-03 15:51:32 -06:00