Commit Graph

11 Commits

Author SHA1 Message Date
Cyril Roelandt 86d0efcd78 Add a script to prepare the next cycle
Running tox -eprepare-next-cycle will apply all necessary changes, only
requiring that the user review and commit the changes.

Change-Id: I5f10d901e47a8062c87506fbc3e68f2536a47480
2023-04-05 15:20:52 +02:00
Rajat Dhasmana 87ff6571bf Replace whitelist_externals with allowlist_externals
whitelist_externals option is deprecated in tox 3.27[1] and removed
in tox 4[2]. Also we're seeing a gate failure due to this.

2022-12-29 16:48:15.280775 | ubuntu-jammy | docs: 275 W commands[0]> rm -rf doc/build [tox/tox_env/api.py:421]
2022-12-29 16:48:15.282518 | ubuntu-jammy | docs: 277 E failed with rm is not allowed, use allowlist_externals to allow it [tox/session/cmd/run/single.py:54]
2022-12-29 16:48:15.283367 | ubuntu-jammy |   docs: FAIL code 1 (0.08 seconds)

This patch replaces whitelist_externals with allowlist_externals.

[1] https://tox.wiki/en/3.27.1/config.html#conf-allowlist_externals
[2] https://tox.wiki/en/latest/config.html#allowlist_externals

Change-Id: I3380ddfda752b03e0171d6d7a77f500da5b00169
2022-12-30 13:49:14 +00:00
Abhishek Kekane 2638ada23d Remove setup.py and setup.cfg
Theses used to be used for building docs in the past.

A recent release of setuptools 61.0.0 introduced a breaking change [1]
which caused our openstack-tox-docs and openstack-tox-pep8 jobs to fail
with:

  error: Multiple top-level packages discovered in a flat-layout:
    ['specs', 'priorities'].

This removes setup.py and setup.cfg from use in tox.ini to resolve the
issue and they are not needed anyway.

Related-Bug: #1966382
Change-Id: Ia653b3e13302db5bf2adc006aea5436a9c65616e
2022-04-04 15:29:44 +00:00
Andreas Jaeger 80c60a7bd6 Cleanup py27 support and docs
Make a few cleanups:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine

Change-Id: I3287169563c44d05cfab0329af9756f6de4f885c
2020-04-10 10:45:10 +02:00
Ghanshyam Mann 90d26b2ac4 [ussuri][goal] Drop python 2.7 support
OpenStack is dropping the py2.7 support in ussuri cycle.

specs repo either has py27 job or requirement or tox env.

Add bindep.txt file so that wheels can be build.

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I51c3bcf161b363e4b188175b75097d19a0d10a74
2020-02-02 11:45:52 +01:00
Zuul a3a5deccf1 Merge "Switch to stestr" 2018-11-27 16:07:10 +00:00
Vu Cong Tuan abe1509c6f 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: I7dd587134d0047f8e18f1218d162dd5301fc732b
2018-07-11 09:51:46 +07:00
Nguyen Hung Phuong 79b27e6502 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: I225b740cd85207e2785ab60ba7e626a773617b0c
2018-07-03 11:52:06 +07:00
Doug Hellmann daaba42170 add whereto for testing redirects
Set up whereto so that any redirect rules added to the .htaccess file
can be tested.

Change-Id: I2238a2163c26b7df9c6a3dfaf0f8701631ff2cc5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-12-02 17:13:38 +00:00
Brian Rosmaita 46fa54dd05 Update glance-specs to use openstackdocstheme
Maintenance on oslosphinx ended with the Pike release.  This
patch includes the following changes:
* switch to openstackdocstheme
* set context options for openstackdocstheme
  - glance-specs doesn't have its own bug tracker, so config
    to create bugs in the glance bug tracker with tag 'glance-specs'
* update requirements file
* update setup.cfg to use warning-is-error
* update four specs whose warnings were previously ignored
* add an '_extra' directory with stub .htaccess file
* configure docs build to include '_extra'
* update build command in tox.ini

Change-Id: I4da477fd39685a22fb4ef9d702af9b9a79bda0c2
2017-11-28 14:19:44 -05:00
Arnaud Legendre 0a12603132 Add base glance-specs framework
Build the base framework for the glance-specs repository.

Change-Id: I6d7c1c644798a8d461927f459397a8cb905644e7
2014-05-28 17:20:37 -07:00