* Update futurist from branch 'master'
to ec7a2536f4dc5f5951b27f16ed8d8610931104dd
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: I199cba41700c68170e5636b86b21e2fbb7dcf9dc
* Update futurist from branch 'master'
to 4e14db5c247d28fbc8d90acad92845dc8abeee1d
- Bump hacking
hacking 4.0.x is very old.
Change-Id: I39976bf2842773453bbf5904791df8c10f7e920c
* Update futurist from branch 'master'
to c1af9d7908e1d9f042dfaa0b9e4d022f06541a7b
- 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
* Update futurist from branch 'master'
to 8b98478fad1c47ac7e9cd0545892feecdf36a2ac
- coveragerc: Remove non-existent path
The futurist/openstack directory does not exist.
Change-Id: I092cad0a0e2721f37f764bde2df0bebf08bbd776
* Update futurist from branch 'master'
to dac990e281a07db673b70e50fde40f510f06811c
- 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
* Update futurist from branch 'master'
to 1d53984f426fefc142ca65b9445d4cea0b6429cf
- 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
* Update futurist from branch 'master'
to 9878187490994eeebb0cd1f5b0c87e9b645ca1c2
- Merge "Add py39 package metadata"
- 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
* Update futurist from branch 'master'
to 651597d072080a99bd230ece74f51cec21f43482
- 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
* Update futurist from branch 'master'
to d17f58d1bf26fde903578260c87da44c191258ae
- 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
* Update futurist from branch 'master'
to 25f1fca3f46388aeaaf5e434f34082c727204433
- 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
* Update futurist from branch 'master'
to 57678fc04cad2a28d7ac52ffd7e59b1d100b4251
- Remove six
We don't need this dependency anymore
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I93d0c05b1f63c86040b52cdaea99ffb42bad3f07
* Update futurist from branch 'master'
to 689ac0d47e95bf5b30ee768085d91baa866023a0
- 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
* Update futurist from branch 'master'
to d70c7e5f4686ba0ea9235b280f8bdd07fecfeccb
- Merge "setup.cfg: Replace dashes with underscores"
- 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
* Update futurist from branch 'master'
to d0739397e6a5d3d171e988d6779391648c591ad6
- remove unicode from code
Change-Id: I825c922648482f079c10c8db4f7aac262af611ba
* Update futurist from branch 'master'
to cad3f62cda0b5d3fb0dd94700006f1dcb57be28e
- 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
* Update futurist from branch 'master'
to aa7bac46625b98c66fe069c9b927bcf900a2f8c9
- Merge "Remove lower-constraints remnants"
- Remove lower-constraints remnants
These were missed in change: I64c8320d0cdd473d54d6de6050be4d60d92a7c5f
Change-Id: I469d53212193ecbe0b0907cd50ed9bd77a6ae67f
* Update futurist from branch 'master'
to 5aac3c5e65e5bca9c597e2ce3303cb00d87b49cc
- Merge "Use TOX_CONSTRAINTS_FILE"
- 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
* Update futurist from branch 'master'
to 4373f932299b407a31cde67d253efc404d1dd1ec
- Uncap PrettyTable
This is now maintained as a Jazzband project [1].
[1] https://github.com/jazzband/prettytable
Change-Id: I2e28cda2a0fec1d79fe8da5dbaff0fb5dd23c972
* Update futurist from branch 'master'
to dce486245e505e2bf0ea174b0cda684fea050059
- 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
* Update futurist from branch 'master'
to bd2356bfcf2259649a533b9b29239841a8ec9006
- 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
* Update futurist from branch 'master'
- Merge "Adding pre-commit"
- 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>
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- [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
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.
Change-Id: Ia0cbbfeb790dd69046855bcecee9e402a9049ca4
* Update futurist from branch 'master'
- 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>
* Update futurist from branch 'master'
- Merge "Bump default tox env from py37 to py38"
- 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>
* Update futurist from branch 'master'
- 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>
* Update futurist from branch 'master'
- 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>
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- 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
* Update futurist from branch 'master'
- Merge "Fix Calling waiters.wait_for_any() blocks if future has called Condition.wait()"
- Fix Calling waiters.wait_for_any() blocks if future has called Condition.wait()
condition.wait() can block forever even if Futures have completed
A similar issue was already fixed on cpython few years ago:
- https://bugs.python.org/issue20319
- https://hg.python.org/cpython/rev/0bcf23a52d55
- 2b754f49a5
Change-Id: I1fbad12a0d555e199fdf4073db9408a296e7fd8a
Related-Bug: #1848457
* Update futurist from branch 'master'
- Merge "Bump the openstackdocstheme extension to 1.20"
- Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.
Change-Id: Idc90ab7e1ee046b426979de62499cd6861674edc
* Update futurist from branch 'master'
- Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
Change-Id: I2da8f284b877edd2cf0e6f57352b616c54fabac9
* Update futurist from branch 'master'
- Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.
Change-Id: Id756db3dcd513debc7b35a82161c7b3949928492
Sem-Ver: feature
* Update futurist from branch 'master'
- Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html
Change-Id: I795dfc58c5e4de57b89784ec2294da0651621777
Story: #2005924
Task: #34234