Commit Graph

24 Commits

Author SHA1 Message Date
Zuul ba060b277d Merge "Updating python testing classifier as per Yoga testing runtime" 2022-05-08 09:20:04 +00:00
Cai Hui 7a7a97dd0c 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: Iaa74763ad7fa80ad5b47cc820a04b8e3a7ad25d9
2022-05-08 16:38:19 +08:00
Ghanshyam Mann a7ce6d2052 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.htmlml

Change-Id: I38be26a1f850275a26f54aeba40e8a809221f722
2021-12-14 02:41:24 +00:00
caihui fa5c866245 update py37 to py38
Change-Id: Ibe6b223cd17603977981a044eece3981fcbbbcdf
2020-12-21 22:45:17 -08:00
Caihui 3d327a66c5 Remove mock from lower-constraints
This packages is only needed  for python2.x.

Change-Id: I729d9c6482ab604d31f74ecdae0c33eaa16efb34
2020-06-24 03:46:14 -07:00
Andreas Jaeger 72de51b01c Cleanup py27 support
This repo is now testing only with Python 3, so let's 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
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build with warnings enabled, fix
  warnings found with autodoc
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version, switch to using apidoc
- Remove install_command from tox.ini, the default is fine
- Change some imports to use python3 changed names

Change-Id: Ibb2e614c7db8a01e41caed8314c1d46479c78295
2020-04-12 20:58:22 +02:00
caihui 8361e3fdd2 Add py36 in envlist
Change-Id: Ice16a1da334e7e6925239d0372f8f00ffb7c9ac7
2020-02-02 21:21:59 -08:00
Ghanshyam Mann d682c3a615 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

freezer-dr 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

Change-Id: I8c2e92f459c6a0fda26b44039837bd95db55873e
2019-11-22 01:53:02 +00:00
Corey Bryant 5649914504 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: Ia643f9d691215d06cdd81fd111460fb42d6b1e7f
Story: #2005924
Task: #34207
2019-06-24 09:25:17 -04:00
Cai Hui e989a2ca51 Drop the py35 testing, add the py37 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: I0965666290c8e8f88d61d537ff58bbd1c63eeef6
2019-05-24 21:53:50 -04:00
Ghanshyam Mann 8f8142b03f 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: Ief9e9871f35721f697dec2b1efd284a7f9e135af
2019-04-14 21:17:19 +00:00
Cai Hui 1e687a4993 Add py36 for developers
1.Add Python 3.6 classifier to setup.cfg

2.We already run python3.6 unit tests in CI. Add the py36 environment to
the tox file so that developers with python3.6

Change-Id: I779236a8625a47064ba34e1b0cb865673a5d124f
2018-12-17 03:01:40 -05:00
Cai Hui a925017f86 Update tox minversion to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets

Change-Id: I97487d0fbe6999047be5ae487ccebea2bcf76def
2018-11-09 22:43:53 -05:00
Cai Hui b008ef902d Update tox.ini and fix pep8 errors
1.Add [testenv:lower-constraints]
2.Add lower-constraints.txt
3.Check env:UPPER_CONSTRAINTS_FILE
4.Remove  passenv parameters which are not required
5.Fix pep8 errors

Change-Id: I8ec8aac38e80a6e2b8ce9e9dc70f0cf187c0ce7c
2018-11-07 06:14:17 -05:00
98k 7b809f6158 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: I7a5fcd7ae9686cae1ab5f588b4c58ff3533b2e0f
2018-10-09 20:54:39 +00:00
Nguyen Hai 0db820b9cb Use openstackdocstheme
Change theme of docs by using openstackdocstheme

Change-Id: I26ea48e9862e1e8652aecd873b1298cdfa0bdafd
2018-08-31 06:32:16 +00:00
Doug Hellmann 926454d1af 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: If667445fbc389e971a0d471c5a9dd4893a0b0995
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-21 06:24:08 +00:00
Vu Cong Tuan 650bbc5755 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: Ie17b8fd07604e030e6ea6b9ded75e85794cb881a
2018-07-11 10:59:33 +07:00
Vu Cong Tuan d3e958d739 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: I77a6bccdfd90f1790994ddaef37c76ab76d41aa1
2018-06-27 11:13:53 +07:00
Vitaliy 172cf873ae Remove py34 from tox
py34 is unused anymore and needs to be removed from tox.

Change-Id: I4c0b82b4ee271f7f2806cca56fb1afa640e8a7fd
2017-04-05 15:25:27 +00:00
Vitaliy fe782efcc6 Add gencofig tox target
Change-Id: Ib39d8f44a19c88f4c0468a3fa024bcf3363d1213
2016-11-29 17:11:09 +00:00
Saad Zaher 783577fddc Added py35 environement configuration to tox.ini
Change-Id: I7fdf27e8f9263625e1fd1e2a34c015eaf4251792
2016-11-17 14:14:14 +00:00
Saad Zaher 7d7d189545 Added .gitreview
Change-Id: I42f5bbb4a6bc12445c3ea571134a614395b0fd34
2016-05-12 13:10:52 +00:00
Saad Zaher fdbb15848f Adding pep8, pylint, coverage, sphinx testing 2016-05-09 15:00:10 +00:00