Commit Graph

135 Commits

Author SHA1 Message Date
Takashi Kajinami 4b510162e5 Vendor dib-run-parts
The dib-utils repository was retired as part of retirement of TripleO.
This imports the tiny dib-run-parts script because it's used by
os-refresh-config now.

This also removes direct execution of os_refresh_config.py, which is
required only for testing.

Change-Id: Ia516e604bafdc59dbcfa81796348191b03cbe0b7
2024-02-29 17:49:13 +09:00
Takashi Kajinami 72929598e7 Drop unnecessary install_command
Change-Id: Ie2a2a286bac409f32d83b8148567d5d525023d69
2024-01-30 01:31:34 +09:00
Takashi Kajinami e3dab50e44 Revert "Drop direct execution of os_refresh_config.py"
This reverts commit d262d5e60e.

Reason for revert:
This breaks unit tests execution during packaging process in  RDO.
Until we find out the root cause, let's revert the change.

Change-Id: I061b388c7df67422ded99dbf1bfe4c6fb2719f9c
2024-01-30 01:31:11 +09:00
Takashi Kajinami d262d5e60e Drop direct execution of os_refresh_config.py
Now we generate the console script using setuptools, and we don't
expect users may directly execute the *.py file.

Change-Id: I6fb802d0dee7e47f9fd619afba2f379f881914af
2024-01-29 23:50:35 +09:00
Takashi Kajinami d01c391c51 Bump hacking
hacking 3.0.x is too old.

Change-Id: Ic8ce2a882b083d50eb2dbb1a1c02fb5b23c365a2
2024-01-17 01:43:00 +09:00
Zuul bfe15e95e3 Merge "Remove unnecessary egg_info options" 2023-12-20 08:57:49 +00:00
Takashi Kajinami 76c6c0f2e6 Remove unnecessary egg_info options
The tag_svn_revision option was already removed[1]. The values set to
the other two options are effectively same as their defaults.

[1] https://github.com/pypa/setuptools/issues/619

Change-Id: If69a8a10e8bc410974ea2d31be21fab7ec103477
2023-12-20 14:10:03 +09:00
Zuul 75a0d5283e Merge "Ignore .eggs directory" 2023-12-19 14:05:22 +00:00
Takashi Kajinami e80984b449 Ignore .eggs directory
Recent pbr creates the ".eggs" directory, which should not be managed
by git.

Change-Id: I38996024e7b60e27212c21193cc3dfa3c506360f
2023-12-19 21:05:28 +09:00
Zuul b3b189c3ae Merge "Fix python shebang" 2023-12-14 06:57:08 +00:00
Zuul f3c941cc22 Merge "Remove logic for psutil < 2.0" 2023-11-28 01:24:33 +00:00
Zuul 7c7fee5e8c Merge "Remove comment about old pip's behavior" 2023-11-27 16:08:48 +00:00
Takashi Kajinami 6cd51c6f79 Remove logic for psutil < 2.0
... because the minimum version is now 3.2.2.

Also the children method returns a list so we don't have to cast it
to a list explicitly.

Change-Id: I59c1a7847c5b4cc8471884671e57f3e49e4573d8
2023-11-28 00:49:31 +09:00
Takashi Kajinami 6be34db4ee Remove comment about old pip's behavior
... because it is no longer applied to recent versions.

Change-Id: I047c1f5174064c113c5610472f3ef5391a2cac47
2023-11-28 00:22:03 +09:00
Takashi Kajinami 1ec9943720 Remove support for Python < 3.8
... to be aligned with the global tested runtimes.

Change-Id: I0e82b1d3699960b42bb5b146963f1892566e9179
2023-11-27 21:13:39 +09:00
Takashi Kajinami 13c189b236 Fix python shebang
The current shebang requires /usr/bin/python which is not available in
Ubuntu Jammy by default.

Change-Id: I13b782ef761c7cd310fca62ab11c7b50023f94f5
2023-10-18 10:40:35 +00:00
Takashi Kajinami 812905b54b Update python job template
... and supported python runtime versions.

Change-Id: Ib78158e63021ae09b1fb2801b0e9486fefd30831
2023-10-18 14:38:01 +09:00
yangyawei 5bb536c13b 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.

Change-Id: I42b735072db71f861eb71de5b468e4957ba33f3f
2021-05-27 02:59:16 +08:00
OpenStack Release Bot 197972b692 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: I8127e92439d2393ec7a4797a5ee7776ecc29c2d1
2021-03-11 18:08:38 +00:00
Marios Andreou a0322979f9 Remove tripleo-multinode-container-minimal from layout + fix test
The tripleo-multinode-container-minimal is being deprecated [1]
as part of wider tripleo CI optimization at [2].

This updates test-requirements to fix issue seen in [3] and also
fixes a failing pep8 test seen after test-requirements was fixed.

[1] Ie6473759383bd4b903cbe56fba9fee75a24154c4
[2] https://review.opendev.org/q/topic:tripleo-ci-reduce
[3] https://a28720641abd1053931d-69746c322fe5e3cf8e2976f654b96d92.ssl.cf5.rackcdn.com/777098/1/check/openstack-tox-py38/9e6a3c0/tox/py38-1.log

Change-Id: I6df7ef9eacc25435e797005ad8f764c3e0913d46
2021-02-25 18:41:49 +02:00
Hervé Beraud 754bb751e6 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

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

Change-Id: Ifbc34a7ed715a058489afa54aa78572e5f56028f
2020-11-09 19:15:48 +00:00
Alex Schultz 8a747975c3 Bump pyflakes
We need a python 3.9 compatible version.

Related PyCQA/pyflakes #367

Change-Id: I679bc50bdb7bf0f686b5d2dd4ca63c9c6e53424a
2020-11-09 12:15:33 -07:00
Andreas Jaeger 2d6a97498e Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: Ibcee6e71253fceb4c46442646a99f3b58e9df26d
2020-04-05 10:16:09 +02:00
Sean McGinnis b324bcece1 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: I7a6bea2e6e6fffcc262dd4241a7d6b75913d87aa
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-13 19:48:55 +00:00
xuanyandong cc543ed5af
Stop testing python2.7
Train was the last release supporting python2. Let's rip the bandaid
off.

Change-Id: I842cf731fbad0dae72cf902366655eb7b4f8ca1b
2020-03-13 14:47:47 -05:00
pengyuesheng 84d84645d1 Switch to Ussuri jobs
Change-Id: I01c8b66665434397115f59012e325e710567085b
2019-10-24 14:43:57 +08:00
pengyuesheng 2ea1ccaa79 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: I2acb582646d5e878062e245bc17ec6dc79adf655
2019-10-10 14:38:04 +08:00
pengyuesheng 6b65f9a224 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I141431e9796ce77b3b204bf600834608271ccf67
2019-09-26 10:23:44 +08:00
Corey Bryant 4306cf9ee7 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: I9ed1a88e2d67267b026ebad2f45327e9ad03d381
Story: #2005924
Task: #34253
2019-07-12 16:22:53 -04:00
caoyuan 3c2edd5f64 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Iad2f439694e35d5bc7926d4b478335ac62e7ec0a
2019-04-24 15:24:37 +08:00
OpenDev Sysadmins 39c1df6651 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:36:18 +00:00
Zuul d0277ff948 Merge "Change openstack-dev to openstack-discuss" 2019-02-05 00:54:39 +00:00
Alex Schultz 4e9ce62c04 Drop baremetal job template
https://review.openstack.org/#/c/619337/ switched the jobs to a noop for
master and since this file is branched we no longer need to keep this
template definition in this project.

Change-Id: I5c2d30babfbd2c425dc489aa8e47f5420c2f64b8
2018-12-13 13:52:19 -07:00
melissaml f1042d5e6e Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Ib3c02f679fbb4d823f1ff41f0c798cf0cc6f8677
2018-12-05 00:31:32 +08:00
Vieri 71eca9794d Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I83986c645b21b3994c199c68419847d1507511de
Closes-Bug:  #1801454
2018-11-03 03:04:15 +00:00
Zuul d3e2b83e44 Merge "fix tox python3 overrides" 2018-10-08 04:06:55 +00:00
Doug Hellmann 33096222a6 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I4e3c8a76cee08a327c1e648605e70f5e58eb9490
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 19:04:00 -04:00
Andreas Jaeger 2cdebc64e0 Use templates for cover
Small cleanups:

* Use openstack-tox-cover template, this runs the cover job
  in the check queue only. Remove individual cover jobs.
* Sort list of templates

Change-Id: I44d8af661e24f777ecc4362ba8c0c3c332049c7a
2018-09-22 17:57:54 +02:00
qingszhao fcc9849828 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If549a8209d542eed3c16e55135098d7c32310995
Story: #2002586
Task: #24341
2018-08-24 05:01:13 +00:00
qingszhao 4c0df54d2f import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ie03638009ae5184d1204e78c1a63ba976765d7f1
Story: #2002586
Task: #24341
2018-08-24 04:57:58 +00:00
Vu Cong Tuan a2091f9c65 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I99bef7040974e193bc5a57f6f5a7dd7fe293519d
2018-07-10 18:41:32 +07:00
Zuul 06740f9c6b Merge "Update links in README" 2018-06-19 05:21:24 +00:00
OpenStack Proposal Bot cf2d98460d Updated from global requirements
Change-Id: I36109698606561c548cf674d86f2359708b201d5
2018-03-15 07:44:32 +00:00
OpenStack Proposal Bot 798133a91b Updated from global requirements
Change-Id: Ie43ba8ef6a3154da8b4e01f9fdc97d44156eddc3
2018-03-13 07:19:43 +00:00
OpenStack Proposal Bot 8f5ee630e3 Updated from global requirements
Change-Id: Ie21c1e8103cdc7cd2da56c612d57c3fc63a37aea
2018-03-10 13:40:30 +00:00
melissaml cefd1ee4de Update links in README
Change the outdated links to the latest links in README

Change-Id: I20a21bb519923858494d5084a6ffa42e087e3202
2018-03-02 18:05:11 +08:00
James E. Blair 7ca7b19e74 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I2867cf9a5894bb6d2814f12e64b535b9e0dc1334
2018-02-01 15:21:54 -08:00
Sagi Shnaidman 663a24638d Remove RH1 OVB jobs from configuration
Remove OVB RH1 jobs from configuration for this repo
Related-Bug: #1744763

Change-Id: I13cf81815879fa108cb1dcae8dd04e538b705204
2018-01-22 19:37:45 +00:00
OpenStack Proposal Bot 759bab350e Updated from global requirements
Change-Id: I1ac86177e274c1260553625218c34915cc1ee989
2018-01-18 03:21:27 +00:00
Andreas Jaeger e6f3b30ed5 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: Ia27e31299490771dcf3460bf5581ef50dfea7b34
2017-12-02 19:20:06 +01:00