Commit Graph

1342 Commits

Author SHA1 Message Date
Ghanshyam Mann a5cadb200b 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: I8ce3e066121e6e07f05ed886eccdd22e1c66c6d3
2024-01-11 15:36:34 -08:00
Zuul 7e1af19bfc Merge "Moving IRC network reference to OFTC" 2023-12-19 17:54:43 +00:00
Hervé Beraud 6db7dbe4ec Remove python-dev from bindep
It is no longer supported by jammy and lead us to the following errors with the announce-release job.

```
No package matching 'python-dev' is available
```

Change-Id: Ia9e33bd46dbd98c2b83486f3bf95affabcd13b27
2022-11-07 10:55:54 +01:00
niuke 47788ab5b5 remove unicode literal from code
Change-Id: Ic897d7d55331fa81819f2e92aa3cc12e5661ce54
2022-07-30 15:30:49 +08:00
Hervé Beraud 8b545f387e 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 indicates that we support python 3.9.

Change-Id: I298bf00067bd877e4d29cddd15512b9e7fda3bf3
2022-05-05 16:20:44 +02:00
Stephen Finucane d14b09d516 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/

Change-Id: If74666468cebc05e3089d0ea3fb864ffe7f35f1b
Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-15 15:06:47 +00:00
Ghanshyam Mann c1a18117e8 Moving IRC network reference to OFTC
Change-Id: Ibdc5baf8980586e74c3b299a6ba411ecbe24ece5
2021-07-08 08:22:29 -05:00
Daniel Bengtsson 9d81e2f9c7 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: I131b244cb842dc5f06efc261aafd078e29a058b5
2021-03-23 13:14:08 +01:00
Zuul e1150ab84a Merge "Use py3 as the default runtime for tox" 2021-01-21 14:57:40 +00:00
Hervé Beraud bc5023a13c 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: Ic460410f180a49a533559c7a18bcf6b7f4850f76
2020-12-18 15:04:20 +01:00
Hervé Beraud 3c9dac5186 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: I9a48a44a1cc32c3ab9393b97ea9014dc95cfd4de
2020-11-04 10:54:10 +01:00
Hervé Beraud 31c0b1901c 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: I07c86686aa5bdd8658616c901cba262e4394bb12
2020-11-04 10:07:49 +01:00
Hervé Beraud e33745b74c Use Python 3.8 as the default runtime for tox
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.

Moving on the most recent officially supported runtime as the default runtime
for tox.

[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: I93b58f133efe115cc954932ebca887d52f9edfac
2020-11-03 14:33:07 +01:00
Hervé Beraud fbe3f2fe7c 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: I7ac1599e903577e28fb64bb07a6b984e1ff8a023
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-15 15:05:13 +02:00
Zuul 86d1aa8378 Merge "Use unittest.mock instead of mock" 2020-08-17 16:07:38 +00:00
Hervé Beraud 24fc79fe24 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I453515f347a59f4c6f60e0dcba2c327cf2a40426
2020-08-17 17:43:44 +02:00
Ghanshyam Mann b161ecca7a [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: Id3df43c47a3bdfce317331e1e3e4df775c4b4f32
2020-08-04 00:33:17 +00:00
Zuul a4323a025b Merge "Remove demjson from requirements" 2020-06-30 16:04:37 +00:00
Sean McGinnis c2ecc30f16
Remove demjson from requirements
This package is not actually used anymore in this repo, so this cleans
this up so it can be removed from global requirements.

Change-Id: I6f6065138760ba8af46f45f45e3a9bb7e8e0f75b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-23 14:49:19 -05:00
Andreas Jaeger 8cca4479b6 Update sitemap
* Update releases: Newton is unmainted; train, ussuri are relased
* We have redirects to some sites, ignore them
* Remove python2 code
* Use https as starting point

Switch repo also to victoria PTI jobs.

Change-Id: I744e725b32a797b0e208ac7e81afe4b8d3578751
2020-06-21 21:48:53 +02:00
Andreas Jaeger 7ee77130c4 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.

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: I5f985549671e3b4f8c438f247fae0818d25b21f5
2020-05-29 12:45:49 +02:00
Andreas Jaeger f13c79703a Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
- Update classifiers

Change-Id: I391f53925c1b20d2e8ad1685358c81dcbdaaf34c
2020-04-05 10:14:14 +02:00
Andreas Jaeger ae0833ad9f Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Change-Id: I621cc7f472e2666d3422113675b18d838688a434
2020-03-30 12:03:26 +00:00
Andreas Jaeger b9d280acce Update sitemap for Python3
Fix sitemap code to work under Python3.

Change-Id: I7aad21f612047ce264b93460f7604b63fa951cab
2020-03-24 12:04:33 +01:00
Andreas Jaeger 5888968ec0 Add python-requires >= 3.6
As part of moving to Python 3.6, add a python-requires to clearly state
it.

Change-Id: I4da67ec5ea303ef35d6aac47a5d7ae5ec57aab9b
2020-01-27 18:27:37 +01:00
pengyuesheng dc37b3569b Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: I32d5dc317b821dee4a625506f227a8f5bfaaecfc
2020-01-27 17:03:20 +01:00
gujin 70cef7f849 tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: Ief136815d6a0e1dfa0b8d1ffb42500fef38e39fe
2019-11-01 14:54:19 +08:00
Zuul ea541c2e7b Merge "setup.cfg: Cleanup and update some urls to latest" 2019-10-23 03:12:24 +00:00
caoyuan 74d2575a0e setup.cfg: Cleanup and update some urls to latest
- pbr hasn't need the hook configuration since forever [1]
- The 'wheel' group is renamed to 'bdist_wheel' [2]
- Update the urls to latest

[1] c84876dc0f
[2] f7c9878712

Change-Id: I52e7abcb577e3a9ba61492e84a3c148f6eab4b4a
2019-10-22 11:22:44 +08:00
Andreas Jaeger baa6740dbc Switch to ussuri python3 jobs
Train is out, we test Ussuri jobs now.

Change-Id: Ie9ac3a7c1e69b82b97f85db9182cccb178c45179
2019-10-16 21:46:59 +02:00
pengyuesheng 9fa71c6477 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I760aa2e27a4272852e7498cc6e0475d58d08e2f6
2019-09-25 14:18:19 +08:00
Zuul 2b275421b0 Merge "Remove openstack-jsoncheck and openstack-indexpage" 2019-08-20 09:00:03 +00:00
Andreas Jaeger 5793218d2b Remove openstack-jsoncheck and openstack-indexpage
These are not used anymore, remove them.

Change-Id: Ib4f8c25bc0bbd8227d21e055f07411926577714b
2019-08-19 13:04:13 +00:00
Zuul 6c0858175d Merge "Cleanup doc-tools-check-languages" 2019-08-16 15:46:23 +00:00
Zuul 64c33f3bb4 Merge "Remove some commented obsolete lines" 2019-08-16 11:00:53 +00:00
Andreas Jaeger 8f7f1d97fe Cleanup doc-tools-check-languages
Remove now unused content.

Change-Id: I77f5b2927f4d455e34c55afc8e98b6533ac6f459
2019-08-15 20:35:40 +02:00
Andreas Jaeger a031fd772e Publish to publish-docs/html
Publish to publish-docs/html to simplify our doc building and publishing
CI jobs.

Change-Id: I8beb68195a7beaa3f2c125ef83db0fa589837639
2019-08-15 06:30:48 +02:00
Andreas Jaeger 918cec0047 Remove some commented obsolete lines
Addressing feedback from
https://review.opendev.org/675762 . These comments are wrong
with current openstackdocstheme, so remove them completely.

Change-Id: Ibfb3a2e37ea5b89ce81caed3e4884ee077e0d967
2019-08-13 18:13:26 +02:00
Andreas Jaeger 06d7ac27b7 Update docs building
Use sphinx-build and cleanup unused config.
Switch to openstackdocstheme 1.20.0 and remove obsolete settings from
conf.py files.

Update some RST files, they had wrong indentation.

Change-Id: Iaad2841db809f8a343fb8b1031cf8d0587d70442
2019-08-11 09:48:06 +02:00
Andreas Jaeger a178d4b73c Don't use special api-quick-start location
To simplify publishing of the guide, we don't use the special directory
anymore, remove it for translated documents as well.

Change-Id: I0520314f4946736b78e9d7438d676739c741f7b1
2019-07-23 13:38:28 +02:00
Corey Bryant 9d59e2087e 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: I8c3460f3f0b7759a6fa1f05424a8a499c0cd9957
Story: #2005924
Task: #34205
2019-06-24 09:13:29 -04:00
Andreas Jaeger 74429f77c3 Drop py35 testing
All the integration testing has been moved to Bionic now[1] and py3.5
is not tested runtime for Train or stable/stein[2].

As per below ML thread, we are good to drop the py35 testing now:
  http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2] https://governance.openstack.org/tc/reference/runtimes/stein.html
    https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I0aa0fd95fd882ab0989eed81d535b963c821c162
2019-04-28 16:56:03 +02:00
jacky06 ffa50302f2 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I1fa55fdb52f2a74e01c28268dd3973e3151ef7e3
Closes-Bug: #1825923
2019-04-23 03:16:36 +00:00
OpenDev Sysadmins 344a8ea1f3 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:34:21 +00:00
Zuul c197ad0f65 Merge "Remove support for py34" 2019-01-23 01:57:27 +00:00
98k 9794458694 Update home-page
Change-Id: Icf83f920a7678e35e90cce8623fea943ac411a89
2019-01-11 18:27:31 +00:00
jacky06 528d97a9e9 Remove support for py34
Change-Id: I2db09c9b010b03a1906060b40de0bea9b89a130c
2018-12-19 11:21:59 -05:00
Andreas Jaeger 0ebc4cc42e Update hacking
Update hacking requirement to current 1.1.0 release.

Change-Id: Ieddf10f6876dc8a85bf3c92c321fa0a610f685b7
2018-12-11 08:19:26 +01:00
jacky06 24a17f7bb0 Change openstack-dev to openstack-discuss
Change-Id: Idce55241adffc3ab254856e82b8d7e67b6631241
2018-11-25 16:35:58 -05:00
zhouxinyong e1cd64caef Advancing the protocal of the website to HTTPS in README.rst.
Change-Id: I42c644e1e76c161ef0bd7473bf3996cb485f03e4
2018-11-14 01:11:46 +08:00