Commit Graph

391 Commits

Author SHA1 Message Date
Zuul c5d73f5926 Merge "Display coverage report" 2024-02-07 05:43:42 +00:00
Takashi Kajinami dd24451902 Display coverage report
... for easy reference. Also make sure old data is purged.

Change-Id: I1420e5cc1bc12a92596b497795e895c90d0f4d41
2024-02-07 14:18:52 +09:00
Takashi Kajinami 249b795c8c Drop direct execution of collect.py
Now we generate the console script using setuptools, and we don't
expect users may directly execute the *.py file.

Change-Id: Ida036f138d8e7ef64ea0f8f7c83deeeb71dc4f5b
2024-01-29 23:56:44 +09:00
Takashi Kajinami bf3ec9d363 Bump hacking
hacking 4.0.x is too old.

Change-Id: Ic496ae755b6450af6179593d44b0f287a61933b3
2024-01-17 01:40:13 +09:00
Zuul 60d692ddfd Merge "Remove unnecessary setup_hook" 2023-12-20 08:57:50 +00:00
Takashi Kajinami 7d8f9e8432 Remove unnecessary setup_hook
This is no longer needed.

Also, the options in egg_info section are not necessary and can be
removed. Especially, tag_svn_revision was already removed[1].

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

Change-Id: Iad15ae3f3004dce4570798097ea9bd95a1799060
2023-12-20 14:09:36 +09:00
Zuul 664012b741 Merge "Ignore .eggs directory" 2023-12-19 12:22:05 +00:00
Takashi Kajinami a5c0f79548 Ignore .eggs directory
Recent pbr creates the ".eggs" directory, which should not be managed
by git.

Change-Id: Ifd4591ce7927297640fb5755a0048da1c5abd226
2023-12-19 21:02:44 +09:00
Takashi Kajinami c988ae481c coveragerc: Remove non-existent path
The os_collect_config/openstack directory does not exist.

Change-Id: Idf7aee6afd36fffd448aa420e30441d1aa47bb9b
2023-12-19 21:00:58 +09:00
Zuul 9eaef6a60b Merge "secret_access_key should be secret" 2023-11-29 01:35:39 +00:00
Takashi Kajinami 14ec232280 secret_access_key should be secret
Apparently the option takes a secret credential.

Change-Id: I8802720223c92683e46c5f5f2a8abb76978a176f
2023-11-28 23:09:26 +09:00
Takashi Kajinami 33e6f86e13 Remove old directory from exclude
The openstack directory no longer exists, after refactoring.

Change-Id: I991319689a6221b2f376a244ee14c90c91f3787d
2023-11-28 23:05:35 +09:00
Zuul 721a607299 Merge "Remove workaround for Python 2" 2023-11-27 16:08:49 +00:00
Zuul e9c02c09e2 Merge "Remove unused MANIFEST.in" 2023-11-27 15:33:14 +00:00
Takashi Kajinami 6f867437eb 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: I2260a08a0bada42300ca4058b8085ecf98d770fb
2023-11-28 00:23:17 +09:00
Takashi Kajinami 4efacd1497 Remove unused MANIFEST.in
The file is not used because PRB is used.

Change-Id: I81c28d4c79c59d652edf073869b7d5183bfb5c60
2023-11-27 23:08:36 +09:00
Takashi Kajinami b09730422e Remove support for Python < 3.8
... to be aligned with the global tested runtimes.

Change-Id: I367a59ad11c3d912fc522841e9e3e8e881333de3
2023-11-27 21:12:22 +09:00
Takashi Kajinami 76173d84d6 Update python job template
... and supported python runtime versions.

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

Change-Id: Icc6d7ced31b2e8bd80c6dd52ca54437e5aa35940
2023-10-18 15:00:13 +09:00
Alex Schultz 3a7d05a9e8 Drop six
With python2 not being supported anymore, let's drop six.

Change-Id: I22f3d28e22ad209806b78ad78f46671a74179157
2021-09-24 10:27:29 -06:00
Alex Schultz d1add682f3 Drop unused requirements
anyjson, eventlet, iso8601 are not actually used. Let's drop them.

Change-Id: Ia16a6f7a659f102a68f23c87980f7c5a61b9cbbf
2021-09-24 10:22:31 -06:00
Zuul 5ea6a4778c Merge "setup.cfg: Replace dashes with underscores" 2021-09-10 03:04:46 +00:00
yangyawei a309852c46 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: Id230197b1fcb09d16c7a9a66bfaa7c878d67e4ba
2021-05-27 02:37:56 +08:00
yangyawei 537440c66a 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: I7c495db4a467a07c648c052da4cb657e83c92e46
2021-05-14 16:10:54 +08:00
Alex Schultz 224af052af Bump hacking
This change bumps hacking to 4.x and adds W503, W504, and W605 to the
ignore list for now.

Change-Id: I2b5c7c671b1cd7c0f378992895434f86b02ed95e
2021-03-09 09:23:32 -07:00
Hervé Beraud cc519a7d48 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: I53bc3db1ce7a150869fb7c113bf1b34769c1f2fa
2020-11-09 15:39:00 +00:00
Alex Schultz 271a5434ce Bump pyflakes
We need a python 3.9 compatible version.

Related PyCQA/pyflakes #367

Change-Id: Ia0011de7722311d17bfbc1192e08c134905edb29
2020-11-09 08:38:31 -07:00
Hervé Beraud 24245ce18e 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: Ib353cf9878334d91e551bf75121413c6fb2222ea
2020-06-09 19:28:11 +02:00
Hervé Beraud ab98550efd Drop python version constraints for sphinx
This project is now doesn't support py27 so we can remove sphinx
constraints related to python versions

Change-Id: I9bc105931a7e6772b88d04afd6cb7151f845e5c1
2020-06-09 19:28:11 +02:00
ricolin d1607f9f56 Add tls proxy support for Zaqar
Change-Id: I234a3d60333ee89a7c283b425e524d4624191577
2020-05-19 14:06:02 +00:00
Wes Hayutin 6dd0e536b9 Stop testing python2.7
Train was the last release supporting python2. Let's rip the bandaid
off.

Also includes remove tripleo jobs from os-collect-config master

Partial-Bug: #1879361
Co-Authored-By: xuanyandong <xuanyandong@inspur.com>
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: I46c79ce87f474a986f1983fa9164e6e4cbeaf8de
2020-05-19 08:05:35 -06:00
pengyuesheng 0558b20f5a Switch to Ussuri jobs
Change-Id: I378ffc96486327cb2f796a3fbda30b9ca08d369c
2019-10-24 14:22:31 +08:00
pengyuesheng 720165e737 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: I995ea245912d5eaa1470c7c5bdeb69bdce7cfcca
2019-10-10 14:19:22 +08:00
Zuul cecf934525 Merge "Fix config file documentation" 2019-10-01 03:41:51 +00:00
pengyuesheng b7e8c09315 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I619180004a27d6d96c7b83635891b966b9a9369e
2019-09-29 10:20:32 +08:00
Andreas Florath 461c30df29 Fix config file documentation
The documentation currently uses '[default]' (lower case).
This configuration is not picket up.
It needs to be upper case.

Change-Id: Icbc5e7ee5178be1054b045045245d384a3957a63
Signed-off-by: Andreas Florath <Andreas.Florath@telekom.de>
2019-09-12 13:09:55 +00:00
Corey Bryant 8cda3f6cc0 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: I46590ec9b1fb9054388e3359d1d02217f396fbf6
Story: #2005924
Task: #34253
2019-07-12 16:24:08 -04:00
caoyuan fb5393461f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I4e23b8ae531bf103a945e0e14610cde0c354a4ab
2019-04-26 18:02:45 +08:00
Zuul 4e27ed59f3 Merge "Change python3.5 job to python3.7 job on Stein+" 2019-04-23 02:18:31 +00:00
OpenDev Sysadmins 45d7c54730 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:42:57 +00:00
Ian Wienand 51cb5aa4ac 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: I8446d73326d833915374836c6ec1f5d6d46bc8de
2019-03-24 20:35:18 +00:00
Charles Short 48f03e53dc Change python3.5 job to python3.7 job on Stein+
python3.5 was the only supported python3 version on Xenial, now that we have
Bionic Beaver nodes that support python3.7, lets switch to testing with
python3.7 in addition with python3.6 in Stein and beyond.
See ML discussion here [1] for context. [

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135632.html

Change-Id: I43ee5f72cd20d8f95f6a258dc9e4da0c799c684b
Signed-off-by: Charles Short <chucks@redhat.com>
Story: #2004073
2019-02-14 15:39:03 +01:00
Zuul 6bdbc35fbc Merge "Change openstack-dev to openstack-discuss" 2019-01-18 01:37:44 +00:00
Alex Schultz 830e028c72 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: Ic3447b4c26b01a8f060ab495050602cf137ba396
2018-12-13 13:51:39 -07:00
malei 0bb4026275 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I9ed3f7573f66259ae0c24d52cb257c21faa1512b
2018-12-05 00:06:06 +08:00
Vieri 875bed48b0 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: I5e855bcb2503b9e4696566175b09b2947b86de1b
Closes-Bug:  #1801452
2018-11-03 03:01:19 +00:00
Zuul 5c924cc95e Merge "Use templates for cover" 2018-10-03 23:10:24 +00:00
Ben Nemec 4fa30ae5d7 Don't ignore SIGPIPE
By default Python configures SIGPIPE to be SIG_IGN, which means to
ignore the signal. We don't want that as it causes problems when
journald restarts and our log calls start triggering SIGPIPEs.
Instead, we want to allow the SIGPIPE to kill the process so it can
be restarted by systemd.

Change-Id: I512139b96b2de8b372efc91e8a3fc8d33553405a
Closes-Bug: 1795030
2018-09-28 16:33:11 +00:00
Andreas Jaeger a799e58508 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: I4def2320a34e6ab152edaccd59e01a1a5d502680
2018-09-22 17:55:07 +02:00
qingszhao baf2f0df9f 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: I33a6c580372de6a40f8d01fa4117415528bd5782
Story: #2002586
Task: #24341
2018-08-24 05:01:13 +00:00
qingszhao be0b8dc6cf 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: Icd037c89819618a976bef66cd3d6f3e3889cc5f4
Story: #2002586
Task: #24341
2018-08-24 04:57:42 +00:00