Commit Graph

35 Commits

Author SHA1 Message Date
Ghanshyam Mann 83dc573004 Retire os-win: remove repo content
Winstackers project has been retired
- https://review.opendev.org/c/openstack/governance/+/886880

this commit remove the content of os-win
deliverables of this project

Depends-On: https://review.opendev.org/c/openstack/project-config/+/894407/1
Change-Id: Ia157731a558dc66e7fc944d8e42938b2eff8afa7
2023-09-09 12:25:13 -07:00
Ghanshyam Mann 3abe14fa93 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: Ib5364b375daba592af39118131670c5d234ec0cb
2022-05-01 13:03:32 -05:00
yangyawei 50d0797b79 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: I948a123f71b0e19afaff2086a30566c9d8bcee5d
2021-05-27 02:56:27 +08:00
zhangboye 80315f7658 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: Ic3feedde768d18d6751bf278af36779558a8d0a8
2020-12-24 16:10:21 +08:00
Lucian Petrut 954693f5ff Use a separate doc requirements file
As per the OpenStack TC decision [1], the doc requirements should
be listed separately.

This also simplifies the requirements handling. At them moment,
we're facing some issues due to conflicting doc related lower
constraints.

While at it, we're bumping the lower constraints based on Nova's
requirements, dropping indirect dependencies which are very difficult
to maintain.

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ifffbb94c069d58df1dbaa1c5a1681312e8455ae2
2020-12-09 13:56:18 +02:00
Sean McGinnis 74b64c20b3
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: Ic4a081c389df1bb3a0fce130b0ad4d782066e033
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:53 -05:00
Zuul e486ee0faf Merge "Cleanup py27 support" 2020-04-13 10:37:57 +00:00
Andreas Jaeger bb4934a240 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
- 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
- Remove old python compatiblity test code

Change-Id: If7296703fc4848a16dd10d904ba3f49f19054546
2020-04-13 10:12:53 +00:00
Andreas Jaeger d3ad80a436 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.

Change-Id: I7c6896dd25d76dc02145f4d09a4d09de35a4afb1
2020-04-13 13:04:48 +03:00
Ghanshyam Mann 9c9fd20fce Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

os-win 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://review.opendev.org/#/c/691178/

Change-Id: I9fe9bc0335624f25d5cfb22b53e5af54a9117d29
2019-10-30 03:55:14 +00:00
Corey Bryant 16bf0eb8c9 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: I465f0e055d70ca4c458f803c7f77eaca4477d52f
Story: #2005924
Task: #34257
2019-07-05 17:03:33 -04:00
Zuul 75ac0ac15a Merge "Dropping the py35 testing" 2019-04-24 09:58:51 +00:00
caoyuan f9bed1a6be Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I0c89984d1a8fd766231a4059c046a0481ac47b6a
2019-04-24 14:23:55 +08:00
Ghanshyam Mann af911ebefc 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: I0df77203a507944b1b6bb5a18032d3b40bcd3a22
2019-04-15 18:20:23 +00:00
Zuul 944504610d Merge "Replace testrepository with stestr" 2019-03-25 09:07:04 +00:00
Sahid Orentino Ferdjaoui 19a4ab5e5a add python 3.7 unit test job
See ML discussion here [1] for context.

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

Change-Id: I92affa334ae90246be430677ee6d0d246a60dfb7
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-03-14 12:04:55 +00:00
Thomas Bechtold b07ba3d6bd Replace testrepository with stestr
Move to stestr. That's what most of the OpenStack projects have done
given that testrepository seems to be unmaintained (last release in
2014[1]).

[1] https://pypi.org/project/testrepository/

Change-Id: I83c2ceb74eb291266b3afa33f49d17db84ee9cde
2019-02-27 19:46:29 +01:00
Doug Hellmann 89833d36e1 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: Ieb432c391d3dcc798a30516ed96528a15f526d48
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:01 -04:00
Doug Hellmann 90b359d103 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: Ia95aa8f003151cbce870acc54f2053cbcfc6effb
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-05 07:21:46 -04:00
Hoang Trung Hieu c9285bdc0a Removing pypy
Pypy is not checked at gate.

Change-Id: I00706a22109c3c5b03ad1696b2cdad78b8e78f73
2018-02-23 13:09:33 +07:00
Andreas Jaeger 4aa86b8749 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Icb8bcec5166dd151336455c69db8e4c4067ac8c5
2017-12-02 17:06:38 +00:00
Jenkins aced6a97f9 Merge "Update log translation hacking rule" 2017-07-21 11:35:57 +00:00
Claudiu Belu 2fc52c6143 Adds releasenotes configuration
Adds the necessary bits for the reno support.

Change-Id: I1017ff4a10da2279f2c49f9563f537e664121fe2
2017-07-14 03:04:52 -07:00
Ngo Quoc Cuong 7b30162965 Update log translation hacking rule
Starting with the Pike series, OpenStack no longer supports log
translation.
Update hacking rule to prevent log translation in all log level instead
of only debug level.

Since all log translations are invalidated, check_explicit_underscore_import
can be simplified.

Change-Id: I5bd3a155c685821cfddf17f741083a267a8f7114
2017-07-05 00:39:00 -04:00
rajat29 1eb9cc77ae 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: I7bede2ca96cc4ca0b36460b8aeac3e5540d91751
2017-04-25 10:28:58 +05:30
D G Lee 64c2518a7a Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Icf0c6173e81bddc42f33796e89607e8dab985f52
2017-04-11 16:02:14 +08:00
Luong Anh Tuan 66a0da64a8 Indicating the location tests directory in oslo_debug_helper
According to [1], we can passing a "-t" argument to
oslo_debug_helper to indicate the directory where tests
are located. This will solves ImportError exception.

[1] https://docs.openstack.org/developer/oslotest/features.html

Change-Id: I908bab196ae9a29e8c789db1dcd4668a7f855f87
Closes-Bug: #1666560
2017-03-09 23:00:18 +07:00
Cao Xuan Hoang 61a79adbf5 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

Change-Id: I90fb6546cc069c52ea9cfc90c233db64c973697f
2017-01-20 11:27:47 +07:00
Tony Breeds 5c41e503f9 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 os-win.

Change-Id: Idd9640825566eae61aa5776550c12f52c15a0ad1
2016-12-21 12:42:13 +11:00
Claudiu Belu af94c265f1 Removes all references to openstack.common
openstack.common code is no longer supporter.
Although os-win does not have any openstack.common
modules, there are still a few unneeded references to it.

Change-Id: I645458daaaabe330bf9bec4627e4ca2f12b024b8
2016-11-17 08:16:46 +02:00
mcapsali 38244f1797 Resolves flake8 errors
Removed flake8 errors from the ignore list from
tox.ini file and solved all PEP8 issues.

Change-Id: I14de168ea391b7a7407829f979c64421d97f1f39
2016-08-17 17:30:57 +03:00
Claudiu Belu ca59942bd3 Rename project to os-win
os_win will be the official name of the project. Updates the
name accordingly.

Change-Id: Ia284925cf9d940ac2f4ad9124f8b881af186091f
2015-09-17 05:21:49 -07:00
Claudiu Belu 7b1a61de3c Fixes project for Jenkins runs
Fixes the project for Jenkins runs by adding hacking and hacking
rules, fixing pep8 issues, adding eventlet dependency.

Fixes test_jobutils, mocks wmi module.

Includes bugfix:

Hyper-V: Fix missing WMI namespace issue on Windows 2008 R2

The Hyper-V driver uses the Microsoft\Windows\SMB WMI namespace
in order to handle SMB shares. The issue is that this namespace is
not available on Windows versions prior to Windows Server 2012.

For this reason, the Hyper-V driver fails to initialize on Windows
Server 2008 R2.

This patch fixes the issue by properly handling the PathUtils
initialization.

Closes-Bug: #1463044
Change-Id: Ia99576589af6049ee07337c631ed7d5d6cf602d9

Change-Id: Ide670f759822b2af8fe92a3a1ea0542618f13370
2015-09-17 05:21:41 -07:00
Claudiu Belu 8dd9a41499 Renames project to os-windows 2015-08-25 13:35:09 +03:00
Claudiu Belu 2dd79e9e22 Adds oslo cookiecutter template 2015-08-05 19:48:23 +03:00