Commit Graph

39 Commits

Author SHA1 Message Date
Elod Illes 1af685b7d9 Fix tox 4 compatibility
Change-Id: I30e5455d5f0fb019c2522777d33461a48ca7ba03
2023-03-01 17:50:13 +01:00
Ghanshyam Mann eff24e0861 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: Ic80a50009e77e8c99f189e4ea1ecee5d1aad4d82
2022-04-30 19:11:22 -05:00
Sean McGinnis 6ff522af54
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: I59e88e69cf72e6bfc516ab77e19b3072fd08ccf2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:44 -05:00
Andreas Jaeger 7d8894441a Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: Ifa4b61c66561c114f6e35355de51f0e2d525b5d5
2020-03-30 08:24:41 +02:00
Ghanshyam Mann 2b2cc45bce [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

murano-agent 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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I343c7e7bde76f086e00756be63de48204dcdb0a9
2019-11-25 08:11:31 +00:00
zhurong a026aa2e2f 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: I98fd786e292e1da946181f15dd3fe91ff3338508
Story: #2005924
Task: #34214
2019-07-03 17:20:47 +08:00
zhurong 0161875574 Update contraints url
Change-Id: I698d48349b94ccf8fb87e97e9681a5412336eb78
2019-06-18 14:39:22 +08:00
zhulingjie abd90aca47 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I3664320061126e98bd9655d0ecc1fac565f00e40
2019-04-28 17:10:09 +08:00
Ghanshyam Mann 2c43d9f994 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: I5780969379a1819b7e7ef2c87bc0e7256e937819
2019-04-15 00:33:40 +00:00
zhurong 0d0e9faa45 Add py36 to classifier and update tox version
Change-Id: Ia84a072fc2804e77367ee09ed3097e088feb4f6c
2019-01-05 12:16:09 +08:00
zhurong d0875aece5 Remove the unused tools scripts
Now using 'tox -evenv' to generate virtual venv.
Don't need those scripts.

Change-Id: I2a06f03aa588ef92fee8c1ca152c8e14b2835aaa
2018-07-30 14:07:45 +08:00
zhurong f69ddf31e3 murano-aget PTI docs build
Change-Id: I1959abc012d9d3bb55cd79adc8fee7976fc48041
2018-07-30 10:40:13 +08:00
zhurong 47559e98c5 Fix murano agent docs generate error
Change-Id: I54f547dcb9b8083296e6d7c035ab4ae37103a97e
Closes-Bug: #1781860
2018-07-27 12:01:45 +08:00
Vu Cong Tuan 08fda6ea42 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: I532dc11528dfa1e9f566e3a2c860fd62a56418b3
2018-07-10 17:24:23 +07:00
huang.zhiping d8cd0ceee7 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: Icb9a9fdc11393042cf1c96a7cc1a523cfb531f32
2018-06-09 11:29:19 +08:00
Doug Hellmann d1dba36f7c 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: Id6d7569c25e053ec36051341f223e95ec63d11f1
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 15:55:34 -04:00
Cao Xuan Hoang a3704609aa Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Ibee4ecb67eaba930a03ea6476b914e13e6640b1e
2017-02-15 10:41:57 +07:00
zhurong b96e207b5a Add debug to tox enviroment
We can simply run `tox -e debug <test_name>` to debug test.

Change-Id: I1f9f66651384923f5ad81165e26e4d41e3e5ca40
2017-01-17 11:20:39 +08:00
Yushiro FURUKAWA c7b989d318 Fix coverage option and execution
--coverage-package-name option was no longer supported by 'testr'[1].
This commit replaces from 'testr' to 'test' as coverage option.

[1] https://review.openstack.org/#/c/217847/

Change-Id: Iedb3ae3171733e129de6180094022df2c8b85ea3
2016-09-30 22:43:11 +09:00
AvnishPal abf724a8ee Update tox.ini for upper constraints
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.

Change-Id: I9e2ed1f3d29878e3389f31647bc391ba05df18c1
Closes-Bug: #1614361
2016-08-23 17:05:33 +05:30
Jenkins 611340468f Merge "Add Python 3.5 classifier and venv" 2016-08-05 12:15:38 +00:00
LiuNanke a6abdcf00b Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.Besides,add py2.7 and py3.4 identifiers in setup.cfg.

Change-Id: Iaac5bad67e12852807c68f27c629e592f5b05503
2016-08-04 23:11:28 +08:00
LiuNanke e2e4c72982 Drop *openstack/common* in flake8 exclude list
There is not this directory in debtcollector,so we should drop it
for improving searching efficiency.

Change-Id: Id06c62a9a421a0578bf31bfdc9fa9936b2d7de8b
2016-08-03 13:47:08 +08:00
zhurong e17011c67e Use upper-constraints in tox test environments
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.

The releasenotes job has no constraints file, so override the install
command there.

Change-Id: I5c2d878c79dcf1ce1715218950c07a39314b16ff
Partial-bug: #1598906
2016-07-06 21:26:10 -04:00
Victor Stinner 52ee5f7f6e Python 3: add py34 test environment to tox.ini
Add py34 to tox.ini.

Implements Blueprint: murano-python-3-support
Change-Id: I641b927e05002aebfa519a18d7358861c3672da7
2016-06-21 23:02:25 +00:00
ting.wang c1663a265c Enable pep8 to check files in directory tools
The directory tools is exculed for runing pep8 test now.
Enable pep8 to check files in toos/ since there will be more python files.
The same in murano:
https://review.openstack.org/#/c/281766/3

Change-Id: I7b6ed11d60c35408e7ce5d7386e8486897e7e673
2016-02-20 16:07:57 +08:00
ting.wang 0aa6ab0c9b Clean flake8 ignore
There is no bad code violating PEP-8 and no need to ignore rules
H404. So clean the ignore list to do a more strict check.


Change-Id: I9acea84f0d789985aa9d6fd94120f8c9dd207e8e
2016-01-18 15:13:20 +00:00
janonymous 438ca415e8 py26 is no longer supported by Infra's CI
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.

Change-Id: Id957d858759acd95fea711469c6b0b71d52a1581
2015-12-26 14:06:40 +05:30
hparekh d645a9daca Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.

This patch fixes this problem.

Change-Id: I60b149809335555d8375f0f128d5bd9b11dc86ea
Closes-bug: #1524824
2015-12-10 13:00:26 +00:00
Kirill Zaitsev 7008fbe743 Add reno for RElease NOtes
Change-Id: Ib718adfbb576aabe28138e7c0bd577a149987086
2015-11-26 00:31:22 +03:00
THOMAS J. COCOZZELLO bed3d86b42 Activate pep8 check that _ is imported
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.

Activating this check did not flag any violations.

Change-Id: Ib68a69ffd64e6a8290339458179cf57c8fb1cc76
2015-09-11 23:20:43 -05:00
Dmytro Dovbii 3ae8b6274e Fix use of the oslo-config-generator
Change-Id: I325667478349c5d825650a3f299d79a6545a58e4
2014-11-25 17:53:41 +02:00
Dmitrii Dovbii a8f7d9b06d Remove generate_samlple.sh tool from the project
Change-Id: I59a57ced5db3b81a24c11c89c91da866818f17ff
Partial-Bug: #1369844
2014-10-01 14:12:30 +00:00
Dmitrii Dovbii ce6142557b Use oslo.config generator
Change-Id: I33a75acadf95cbe0cac9f5e79244b39a5841f6d1
Partial-Bug: #1369844
2014-10-01 14:07:02 +00:00
Ekaterina Fedorova 218a51ece1 Enable H301, H302, H304, H306, H231, H233
Fix the following issues:
* Python 3.x compatibility
* Module imports

Change-Id: Ie6bfa1c3eb1494da3b9222b162a40a1181e41188
2014-08-29 13:32:56 +00:00
Ekaterina Fedorova dbe4eb5fa8 Run tests with testrepository
* Use testr
* Exclude extra dependencies
Change-Id: Ib89aade871ee922eab2a690b43eec1cdaa1775ca
2014-08-29 11:39:34 +00:00
Ekaterina Fedorova 334106047c Add sample config and it's checker
* Add scripts for generation sample configs
* Fix name in setup.cfg, otherwise module is not recognized
* Add check to pep8 to follow new config parameters

Change-Id: I42918abc7fdcf9c6779c4e97ba7f2b605b9057e8
2014-08-25 18:49:01 +04:00
Ruslan Kamaldinov a13ee11cd0 Setup doc build and test infrastructure
This patch adds empty test case to pass the gates of jenkins :)

Change-Id: Ie7be61819229ebfd091fdf578b193bb10a0290ea
2014-06-27 19:04:24 +04:00
Ruslan Kamaldinov 79c7da668a Extract main python client to the top
C and Windows clients were moved to directory 'contrib'.

Change-Id: I2a31a965d38f4f750abf9c8dfa90b249dbe1aeba
2014-05-29 20:02:50 +04:00