Commit Graph

272 Commits

Author SHA1 Message Date
Zuul 14dfe905bd Merge "Update the shebang to python3" 2024-03-08 15:01:24 +00:00
Takashi Kajinami 1e7cb3fd68 Display coverage report
... for easy reference. Also make sure old data is purged.

Change-Id: Ibd4a33081a31cebaf8908666cebc2d11510682e2
2024-02-07 14:17:57 +09:00
Zuul 3943dba842 Merge "Drop direct execution of apply_config.py" 2024-01-29 16:00:20 +00:00
Zuul 37cfe2a2ea Merge "Drop unnecessary install_command" 2024-01-29 15:08:26 +00:00
Takashi Kajinami cfa427c2c6 Drop direct execution of apply_config.py
Now we generate the console script using setuptools, and we don't
expect users may directly execute the *.py file.

Change-Id: I6ddeb659c641cf3af33518bb7bf4c24b101f87be
2024-01-29 23:52:20 +09:00
Takashi Kajinami ebc5218803 Drop unnecessary install_command
Change-Id: Id9850853ec9682444e99233abca1cadda2181452
2024-01-29 23:46:55 +09:00
Takashi Kajinami 4df56c6586 Bump hacking
hacking 4.0.x is too old.

Change-Id: Ic4d2e9731ddcaae4a63283805fd9425573a80050
2024-01-17 01:37:23 +09:00
Takashi Kajinami 436cc14867 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: Ic4ab72b8526f8804c046189a443d73f1cfa441c9
2023-12-20 14:08:38 +09:00
Zuul a06949bfbf Merge "Ignore .eggs directory" 2023-12-19 14:05:24 +00:00
Zuul 4eb9bcb83e Merge "coveragerc: Remove non-existent path" 2023-12-19 12:20:30 +00:00
Takashi Kajinami 43faba6438 Ignore .eggs directory
Recent pbr creates the ".eggs" directory, which should not be managed
by git.

Change-Id: I5f571c704ea7317fe41fa69325692e6be2d8b632
2023-12-19 21:04:48 +09:00
Takashi Kajinami e7f765ec3f coveragerc: Remove non-existent path
The os_apply_config/openstack directory does not exist.

Change-Id: I13c509bc7fe0f16b6a5cf34dd33ad9034cf23e9d
2023-12-19 21:00:16 +09:00
Zuul 3e910cc94d Merge "Remove workaround for Python 2" 2023-11-27 15:39:24 +00:00
Zuul bb6807c635 Merge "Remove unused MANIFEST.in" 2023-11-27 15:24:45 +00:00
Takashi Kajinami 996ae5cb6b Remove workaround for Python 2
... because Python 2 is no longer supported. Also remove a few old
comments which are no longer valid.

Change-Id: I34401721537d671ae71110fb22de9b1d5b908f0c
2023-11-28 00:22:45 +09:00
Takashi Kajinami 4938703ae5 Remove unused MANIFEST.in
The file is not used because PRB is used.

Change-Id: Idc93463cbff8c793361ed220ddcb1da57cb11183
2023-11-27 23:06:43 +09:00
Takashi Kajinami a76aef7f73 Remove support for Python < 3.8
... to be aligned with the global tested runtimes.

Change-Id: I20e0a9cf7756d231a9fbb9fd95c3cd9324030ee2
2023-11-27 21:13:12 +09:00
Takashi Kajinami 3c7f9b9b61 Update python job template
... and supported python runtime versions.

This also makes some changes in tox.ini to adapt to tox 4.

Change-Id: I765665685fe7f56b89b9dcdcd2e412aeacb5d224
2023-10-18 14:58:16 +09:00
Joel Capitao f06ac135d3 Update the shebang to python3
It's needed downstream when packaging. In RDO and Fedora,
we are hitting the issue "ERROR: ambiguous python shebang" during
the build.

Change-Id: I19d99f96d9687c27e04e8cc2ecbf61b42a4dcdf3
2023-07-26 17:47:52 +02:00
Alex Schultz 474068e487 Drop six
python2 is no longer supported so let's drop six as well.

Change-Id: I2fef470423765a9c432d33e56edf93d08254b5c9
2021-09-24 10:15:42 -06:00
Alex Schultz 52fab1e297 Drop anyjson
anyjson is not actually used so lets remove it from the requirements.

Change-Id: Idbcff33d34637cda97a711ea880e7f1461e581c6
2021-09-24 10:14:25 -06:00
Zuul c1e364a6cc Merge "setup.cfg: Replace dashes with underscores" 2021-09-10 03:04:48 +00:00
yangyawei c1165f20b8 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: I6e55865aa34bb82256bbc51754fba88690bbba34
2021-05-27 02:34:13 +08:00
yangyawei 671b7d6365 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: I6139243267f745fdefeb652f8958703b442a5528
2021-05-14 16:05:37 +08:00
Marios Andreou 891e996920 Remove tripleo-multinode-container-minimal from zuul layout
The tripleo-multinode-container-minimal is being deprecated [1]
as part of wider tripleo CI optimization at [2].

[1] Ie6473759383bd4b903cbe56fba9fee75a24154c4
[2] https://review.opendev.org/q/topic:tripleo-ci-reduce

Change-Id: Ie28dd59a6bec79802d149f030f10a2ea12e454de
2021-02-25 11:39:43 +02:00
Hervé Beraud 96ff0a9997 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: I1a0b69de5aa79fd919752a161e32c13ce27fcaa3
2021-01-14 21:01:48 +00:00
Alex Schultz 44cef7984d Clean up CI
Bump hacking to resolve dependency problems and drop the lower
constraints job. Includes pep8 fixes.

Change-Id: If5473a753e774767abf60b9fcf9f57a9aa31b580
2021-01-14 07:47:23 -07:00
Alex Schultz 2bf86c4c82 Bump pyflakes and fixup sphinx
We need a python 3.9 compatible version.

Related PyCQA/pyflakes #367

Change-Id: Ie29d04b53d9e18337bca374617754f55126af4bc
2020-11-11 06:55:50 -07:00
Hervé Beraud 71a69b899e Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I919ea4dcf0e61d16a10c68cecb341e108d76c4aa
2020-06-02 20:35:10 +02:00
OpenStack Release Bot a75ecf9152 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: I4709a1d1904fb5f674a4947cdd8d2443f3c8b7f1
2020-05-26 17:12:58 +00:00
Sean McGinnis 852795d245
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: Ia5a6219d6c4cc2cb10ddaeee22b957ca85064ab9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-03 17:14:01 -05:00
pengyuesheng 733daffc31 Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I53daab51cc782e878658566b9ac91d134173ce21
2019-12-27 16:03:22 +08:00
pengyuesheng 7ced221ab1 Switch to Ussuri jobs
Change-Id: I588ba6b22f49e899286250dabc681d95da726679
2019-10-24 14:17:49 +08:00
pengyuesheng 45d9995088 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: If8ed272e08a24fb72b62159f22c1fa35900c7621
2019-10-10 14:14:04 +08:00
pengyuesheng 12e712d196 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I8049aac0e1dca8c39c737345d4e66b819889e0b6
2019-09-25 14:47:41 +08:00
Corey Bryant d9df1dbd36 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: I4379a60f3e6a511b714a4df1502d068bc1aaf6a3
Story: #2005924
Task: #34253
2019-07-12 16:40:51 -04:00
jacky06 7234780bae Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest
3. Remove unncessary "=="

Change-Id: I5fe3be557f9bc3cc1f8faae198df93ed4ed2bc97
2019-06-20 10:35:21 +08:00
Zane Bitter 75d527ab8f Don't render None as "null"
In a config file you never want the string "null" in place of a null
value. Just render an empty string instead.

Change-Id: Ibe145c4929d4944cd8d51c07a64aee6fd5f831f2
Closes-Bug: #1830967
Story: 2005797
2019-05-29 15:59:51 -04:00
caoyuan cacef4df98 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I5b938ce1199fe8e15624aa62a55b825c4af87ca6
2019-04-29 13:33:05 +08:00
OpenDev Sysadmins 3a4633d2a7 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:32:01 +00:00
Ian Wienand 9a50e081cb Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I6d5e48e7c8e3d19f6f5c78931ce8d884f1317b0b
2019-03-24 20:35:16 +00:00
Zuul b7a2d9e46c Merge "Change openstack-dev to openstack-discuss" 2019-01-18 01:37:44 +00:00
Alex Schultz 6543fc7498 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: I1b0b813b50e9394e61914f749fa0f348dc6afbf5
2018-12-13 13:50:33 -07:00
malei 29839793bb Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I2e6afb1b15e9fcab0e1ebf0dce6afaf254127a69
2018-12-04 23:56:53 +08:00
Vieri 84a37b1beb 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: I55af786294e812d8942ac934f947f04cd3d459d9
Closes-Bug:  #1801451
2018-11-03 02:43:59 +00:00
Zuul cfe56e4949 Merge "fix tox python3 overrides" 2018-10-08 01:10:31 +00:00
Doug Hellmann 68818cece6 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: I1853dafac8f854812744acf50706cdef15a87936
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 19:03:55 -04:00
Andreas Jaeger 21be52c835 Use templates for cover and lower-constraints
Small cleanups:

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

Change-Id: I94ff4e58ab35a4cb2231851aec1e9e7a01cc33ce
2018-09-22 17:53:26 +02:00
qingszhao a731e25e00 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: Ia83410630aecc90adb0af414520a9f276eca85fe
Story: #2002586
Task: #24341
2018-08-24 05:01:12 +00:00
qingszhao 1b4124a8ed 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: I195e22dd9b825be50c33f164d75bd52ab0c27229
Story: #2002586
Task: #24341
2018-08-24 04:57:34 +00:00