Commit Graph

45 Commits

Author SHA1 Message Date
Elod Illes 27c479ab0c Update tox.ini for tox4
basepython as python3 is not needed anymore since py27 support was
dropped since many OpenStack cycles ago.

py38 and py310 jobs are failing because the requirements are not
installed. This patch adds explicit install of the requirements.

Change-Id: I095f10b97529fb794db135621d74a16e6554dd5f
2023-03-01 12:26:46 +01:00
Ghanshyam Mann a4a603a8ca Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Id32dd2ffe030ce58c9f0861310b5f08f7a02eb94
2022-04-30 15:46:49 -05:00
wu.shiming 994d02b0dc Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ied7fec3d6bbb37b42be353f5e4b9aad8c5921d0a
2021-11-08 15:01:25 +08:00
Zuul 8b8d4bdda3 Merge "Use TOX_CONSTRAINTS_FILE" 2021-09-29 13:17:33 +00:00
Zuul 079eb51799 Merge "Use py3 as the default runtime for tox" 2021-09-29 12:34:12 +00:00
liyou01 aa0256783f 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.8

During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported.

Change-Id: I71bd094393176225e81df13dd4ed7e35c559f355
2021-09-29 09:41:52 +00:00
zhangboye 38464931ac 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>.

Change-Id: If49cb308a440a4cd18cc1688845b480f54dc6abd
2021-09-29 09:41:36 +00:00
zhoulinhui a83177ad58 Dep's should be restricted by upper-constraints
Tox trying to install latest versions for building docs which may
not be supported by stable and lower branches, so should be
restricted by respective version's upper-constraints.txt

Change-Id: I2cb297069e203bb6f4bc49576e86ae5e12cae33a
2020-10-29 05:03:51 +00:00
Sean McGinnis 71ca61a8f7
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I72ac32ea4796529213bc9b58b893183992bc7d66
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:37 -05:00
Andreas Jaeger 80bd123e50 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, it's not needed
there.

Change-Id: I48fcd2521d99d0b77b976e87cc638fe5ac051315
2020-03-31 17:02:37 +02:00
Andreas Jaeger 2bf5e4c0b3 Cleanup docs building
* Switch to newer openstackdocstheme version and remove values that are
  set now by openstackdocstheme.
* Remove py2 requirments for docs, we only build with python3.
* Update deps for docs building, we don't need the default.
* Remove modindex, this is not build, see
  https://docs.openstack.org/ec2-api/latest/py-modindex.html

Change-Id: I6958cbed944de0a1eea02de10c5a4916b6a7293d
2020-02-23 14:18:20 +01:00
xuanyandong bd411b7272 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Masakari is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

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

Co-authored-by: Ghanshyam <gmann@ghanshyammann.com>
Change-Id: If7ba4697a2e5e7f6390187e094a1e7f3c1996078
2020-01-21 20:27:25 -06:00
caoyuan 9ccf7cf414 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: I96e52fe2f0b14d359f37964c3bd51b1ba985dac0
2019-10-24 21:07:06 +08:00
Stephen Finucane 8ec74422a0 docs: Add separate 'doc/requirements.txt' file
Just to help us separate the documentation-focused requirements from
everything else.

Change-Id: I69e9290addd4424fd8360bffcabc118824a24e20
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-10-02 09:47:15 +01:00
Stephen Finucane f35ffb70b5 tox: Misc fixes
- Use 'ignore_basepython_conflict' so we can simply define 'basepython'
  on the base testenv
- Add an '.stestr.conf' file, allowing us to stop specifying the
  '--test-path' argument manually
- Call 'sphinx-build' directly instead of using the 'build_sphinx'
  distutils extension, which pbr is deprecating. This requires a fix to
  the docs but allows us to remove some noise from 'setup.cfg'
- Fix some indentation and remove some unnecessary configuration

Change-Id: Icc16ed943d8c0b9df01734da5642bf51e83314b8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-10-02 09:47:12 +01:00
Stephen Finucane dacb35cae2 Fix lower-constraints
The 'install_command' section was being overridden in 'tox.ini', meaning
we were never using the constraints 'lower-constraints.txt'. Fix this
and update the few requirements necessary.

- oslo.db so we get Ifb2c59c2cfbd615b04570b31fcfe868f4ffea3c6 which is
  necessary for Python 3.7 support
- python-glanceclient so we get the HTTP error messages expected in unit
  tests since I1608f82eeaa6ff4c5ac55f57989bb1cfe17dbdc7. This also
  necessitates updating keystoneauth1.
- The minimum of Sphinx is bumped to 1.7.0 to avoid the need to
  blacklist multiple 1.6.x versions

In addition, these minimums are reflected in test-requirements.txt and
requirements.txt. This is expected by the 'requirements-check' job in
the gate.

Change-Id: Ib96387c1e295a2c92debf761893708d110e544c5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-10-02 09:47:03 +01:00
caoyuan b1f4ce5593 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I1289490d8adb6910eb03d152fa4c88bd4682e4af
2019-09-13 02:03:40 +00:00
Corey Bryant f90d3b8532 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: Ide4de6aa418aa9ee66fca41378677b73312a847d
Story: #2005924
Task: #34206
2019-09-05 16:39:30 +00:00
Andreas Jaeger b0361c0438 Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Ib3f8664195986bae45123061cd2afc816c6403d8
2019-07-22 18:38:32 +02:00
Ghanshyam Mann e9eae25e6d Dropping the 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: I1fd0241e2c03567df7a9087f995244944fff296f
2019-04-14 21:09:58 +00:00
Doug Hellmann 96756ff916 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: Id2964291cd5e56af09f84d1aeab8138c10f9758f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-12 11:02:34 +03:00
Vu Cong Tuan faa6d7fdc1 Add py36 testenv
Python 3.6 is installed by default in Ubuntu 18.04 LTS.
Therefore, according to Transition Plan [1],
it'll be handy to have py36 testenv.

For more details, please check Python2 Deprecation Timeline [2]
and Python3-first Goal - Completion Criteria [3].

[1] https://wiki.ubuntu.com/Python/Python36Transition
[2] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[3] https://review.openstack.org/#/c/575933/8/goals/stein/python3-first.rst@42

Change-Id: Ie47d63619ab599c6fac63a33b6cdf60336a3e236
2018-06-27 11:15:53 +07:00
Doug Hellmann f3adc74c90 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I092758f7553860040990790a31651cd35affbc67
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 12:26:50 -04:00
ghanshyam f5983d7cdc Remove intree ec2-api tempest tests
ec2-api jobs have been switched to use
ec2api-tempest-plugin for ec2-api tests, so
we can remove the in-tree tempest tests now.

Change-Id: I82ace9ebd1ca5216c2e3fc3d75f07146417ebf94
2018-03-18 03:27:03 +00:00
tikitavi 0445156611 rework tox.ini
separate works for py27, py35
add docs test
some other changes to let tests pass

Change-Id: I94291a5e65fee1e266fbe4e2ec3e14f042654598
2017-10-20 12:16:30 +03:00
tikitavi aaf1fc94f8 Move install guides from install-guide/ to doc/source/install
Update documentation index page

Change-Id: I94b832638d9c1460fbefd1a61a850496b07124ab
2017-09-28 16:55:45 +03:00
Gage Hugo 17f137a8ec Add rm to whitelist_externals in tox.ini
When running tox tests, a warning pops up saying:

WARNING:test command found but not installed in testenv
  cmd: /usr/bin/rm
  env: /path/to/directory/ec2-api/.tox/py27
Maybe you forgot to specify a dependency? See also the
whitelist_externals envconfig setting.

Adding rm to the whitelist_externals causes this warning
to no longer appear.

Change-Id: I1894b69a9e459de874b95ee6ba1fb9d060cd426b
2017-09-13 16:05:13 -05:00
Jenkins f10c58d47d Merge "Delete log translation functions and add hacking rule" 2017-07-03 16:00:40 +00:00
Ngo Quoc Cuong 90ed02d682 Delete log translation functions and add hacking rule
The i18n team has decided not to translate the logs because it seems
like it not very useful; operators prefer to have them in English so
that they can search for those strings on the internet.

Since we have removed log translations completely, we should add hacking
rule to prevent future mistakes.

Change-Id: Ia7524308ef2675f8d41ac80b37dfc7e3787efd90
2017-07-03 04:14:44 -04:00
kavithahr be20e8f24b Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None

Change-Id: I3854538ff6e144f88d4f0e8894573298da53869d
2017-06-30 15:16:10 +05:30
rajat29 a7faec0215 Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.

Change-Id: Ide2e6f2fe9d5b3c7b33e2fefdd3d306284684ba1
2017-04-25 10:22:06 +05:30
M V P Nitesh 61d3ef9ab2 Removing py34 from tox
Now gate job for Python 3.5 exists and not 3.4,
we should remove those references to the 3.4 that is untested

Change-Id: I7a32977ac01e1d2fc49cea750f37588debf17093
2017-03-31 12:36:11 +05:30
Tony Breeds 5284e02f44 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove ec2-api.

Change-Id: I820a62970a8f870804a580b8dded0624c50b8b0a
2016-12-21 10:24:41 +11:00
xhzhf 879dc4c81b H803 hacking have been deprecated
H803 hacking have been removed since hacking 0.10.
https://github.com/openstack-dev/hacking/blob/master/setup.cfg
test-requirements.txt require hacking hacking<0.12,>=0.11.0.
So remove H803 ignore statement
Closes-Bug: #1650847

Change-Id: I115c8d3236e857a6b5b54508d1b10cd93d6ee3b6
2016-12-18 09:08:41 +08:00
tikitavi 4bbd243f47 add API reference documentation
add documentation for further publishing to OpenStack API Documentation

Change-Id: I5052c101db4763f77f186ee39bc4167409b72aa1
2016-12-15 15:00:47 +03:00
tikitavi ea9a9d5b11 added install-guide documentation
Closes-Bug: #1606949
Change-Id: I293b65d7bf8dc78f164d0b118754f9a268fb498c
2016-12-09 11:51:17 +00:00
Ronald Bradford 94fde49f91 Graduate from Oslo Incubator to using oslo.service
Remove remaining Oslo Incubator stubs as only service remained.

Implements: graduate-oslo-service [1]
[1] http://specs.openstack.org/openstack/oslo-specs/specs/liberty/graduate-oslo-service.html

Change-Id: I7d52a1bdbaebb9f67a38939747224b6a631a743b
2016-03-25 17:00:26 -04:00
janonymous acedafed43 py33 are no longer supported by Infra's CI
Python 3.3 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it also.

Change-Id: Ic33bd3539fd05df80eff0c251999ac397e079468
2015-12-26 13:47:38 +05:30
Ondřej Nový d54297c545 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I54c35e61d889852dfcff34acc841da7efa556f1d
2015-12-18 16:05:07 +00:00
Andrey Pavlov 85a556f5c6 add old tests to temporary folder
Change-Id: I3acbe0375689f622eac1cccf7b164c7e2112cad7
2015-11-13 11:35:50 +03:00
Andrey Pavlov 2f967d5ed4 add code for config generation
Change-Id: Ib86b949bb43ca6b5c386b7032a255f06b0f2eab9
2015-08-28 20:15:50 +03:00
Andrey Pavlov 97e72e40d0 Performance: leverage dict comprehension in PEP-0274
merged from Ifb5cb05b9cc2b8758d5a8e34f7792470a73d7c40

PEP-0274 introduced dict comprehensions to replace dict constructor
with a sequence of length-2 sequences, these are benefits copied
from [1]:
  The dictionary constructor approach has two distinct disadvantages
  from the proposed syntax though.  First, it isn't as legible as a
  dict comprehension.  Second, it forces the programmer to create an
  in-core list object first, which could be expensive.
Nova dropped python 2.6 support, we can leverage this now.
There is deep dive about PEP-0274[2] and basic tests about
performance[3].
Note: This commit doesn't handle dict constructor with kwagrs.
This commit also adds a hacking rule.

[1]http://legacy.python.org/dev/peps/pep-0274/
[2]http://doughellmann.com/2012/11/12/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7-2.html
[3]http://paste.openstack.org/show/154798/

Change-Id: I1bc53e335b6c291da5c54f067f9fdfd5da6b2902
2015-04-02 16:07:58 +03:00
Andrey Pavlov 67eae1069d follow oslo
move to oslo.db and some other oslo libraries

Change-Id: I57e4f01bd46339cdfe3ed2e4748eb1e923cea584
2015-02-26 22:04:09 +03:00
Jeremy Stanley ba943e3567 Work toward Python 3.4 support and testing
Change-Id: I66182198f0eeb80cde2d1c5d375f903d672f4f14
2015-02-06 16:22:52 -05:00
Alexandre Levine 66826e9e5b Initial EC2-API service commit.
This code introduces standalone service which proxies its calls to
existing nova EC2-API.
All the code here except for the ec2api/api/proxy.py,
ec2api/api/ec2client.py and some util functions is taken from current
nova and unused functionality is cut of it.
The proxy.py and ec2client.py files implement the new code which
proxies incoming request (on port 8788) to original EC2 API in nova
on port 8773.
The result is transparently translated back to user.

Change-Id: I4cb84f833d7d4f0e379672710ed39562811d43e0
2014-07-18 19:33:55 -07:00