Commit Graph

72 Commits

Author SHA1 Message Date
Ghanshyam Mann 940019d96e Test python 3.11
As per the current release tested runtime, we
need to test till python 3.11 so adding the test
and updating the same in python classifier in setup.cfg

Change-Id: Ib3ceb518a7953e192c33dd2dc48d84bbaf5e4395
2024-01-03 19:13:54 -08:00
Martin Kopec e438689b8f Switch testing to Antelope testing runtime
Updating the testing template to Antelope testing runtime:
https://governance.openstack.org/tc/reference/runtimes/2023.1.html

Change-Id: Id5fc8fdcbaaa6b417953389ddbecaabc65992ab4
2023-01-19 11:00:49 +01:00
Martin Kopec 325d17522d Drop py3.6 and py3.7 from devstack-tools
In zed cycle, OpenStack projects and oslo lib have dropped
the py3.6 and py3.7 support:

- https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Iaa3a96e20dc8aeb89d237f267612d5a3397b3dd1
2022-06-16 12:08:30 +02:00
tushargite96 08720178cd Add non-voting Python 3.10 jobs for Zed cycle
The template which is used to test runtime for the Zed cycle added
python 3.10 as a non-voting job [1]. So this patch follows the same
thing here.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/831633

Change-Id: I6d96cf6e3702aaadb22d17c23306156d23baaa0d
2022-03-20 14:38:05 +05:30
Ghanshyam Mann 2225eade02 Test python3.9 as voting job
In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.

Also, as devstack-tools is branchless and needs to support older
supported stable branches, let's test it with all the
python version supported in those supported stable branches.
For that, we need to explicitly dd the py jobs instead of using
the template. This way, we will explicitly know that we are testing
all supported python versions when the new release template bumps the
min python version in the template.

Change-Id: I21ecaf1d3f627ae27a217d7fa2326f7dd69242c9
2021-11-03 21:09:41 +00:00
tushargite96 a13d1be9dd Switch testing to Yoga testing runtime
Upating the tetsing template to Yoga testing runtime:
https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I5776862839f7b5ffe351bdfcd4b88b09c607854f
2021-09-28 09:44:21 +05:30
liyou01 006384cb37 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

Change-Id: I3d433b146f699e005aeef74cd763d95dc8a1b4bd
2021-05-18 11:21:44 +08:00
Martin Kopec 60dc28c787 Update links in the README
The README contained old links, some of them were giving 404, this
patch fixes that.

Change-Id: I8719d19d23adb46bc73b99193413bfcef9a88bc4
2021-05-17 18:22:10 +00:00
Zuul b99b70d651 Merge "Migrate from testr to stestr" 2021-05-17 18:18:50 +00:00
Zuul f0c8bbfe0e Merge "remove unicode from code" 2021-05-17 18:09:21 +00:00
HeroicHitesh 896d04e842 Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore and test-requirements.txt file accordingly
* Use py3 as the default runtime for tox
* Add a new job, openstack-cover-jobs, to run the coverage in Zuul

Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com>
Change-Id: I72eebd8adfa2086b7d3a11eedbfe2e69cfd65bcc
2021-04-30 08:05:00 +05:30
Martin Kopec e894b6620a Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: Iea244adb47907b688e52afbdfa301c4cfa602a5b
2021-04-29 14:54:30 +00:00
Goutham Pacha Ravi de912aef55 Add console_scripts entry point
dsconf is a CLI utility, and it needs
to be exposed as a console_script during
installation.

Change-Id: I46af013b85753bfdb3a0a3c4cedf261a8f53ecb2
2021-04-08 12:27:31 -07:00
tushargite96 60fc831b64 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python 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: I1229f065abfcbbd7a8724c12c0597d6765be9bcd
2021-02-25 23:01:07 +05:30
liyou01 a56702807d remove unicode from code
Change-Id: I354c9c624ac807203cb69c882c83e1a5f84b435e
2021-01-07 11:05:56 +08:00
Lukas Piwowarski 2381d9112d Create tox environment to build pdf documentation
This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.

Story: 2006070
Task: 35460

Change-Id: I1f0ca39747e8ef95d2b93cd00214911d4a7408a9
2020-09-24 10:37:45 +02:00
Zuul cf43bcb7b4 Merge "Cleanup py27 support" 2020-06-10 06:53:05 +00:00
Zuul 1f3f9dd6c1 Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-04 14:49:29 +00:00
Andreas Jaeger fb7843ec5a 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
- Remove obsolete sections from setup.cfg
- Update classifiers
- Remove install_command from tox.ini, the default is fine
- Remove babel.cfg, it's not needed anymore.
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete

Change-Id: I235cf10f6a619fa6c41e688a17337385a1034aa2
2020-05-31 16:46:56 +02:00
Andreas Jaeger 5cd82ebdad Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_auto_name to use 'project' as name.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: If718e3d21c682dd3a3d297cfa9cebb333d59aef3
2020-05-22 17:26:10 +00:00
Ghanshyam Mann 51d9b2a996 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I7c9c0dc296ac374881c03fcaa6c886e38f3d5d14
2020-05-12 21:55:12 -05:00
Zuul a6317821c9 Merge "Add publish-openstack-docs-pti to .zuul.yaml" 2020-04-22 02:35:46 +00:00
Zuul 2adf0112ec Merge "[ussuri][goal] Update contributor documentation" 2020-04-22 02:29:34 +00:00
Ghanshyam Mann cc13a9b5f3 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38554

Change-Id: Iddf413a72e4937662b5382f41b557a992af4c5a1
2020-04-22 02:20:09 +00:00
Masayuki Igawa 920ac73fcc
Add publish-openstack-docs-pti to .zuul.yaml
This commit adds publish-openstack-docs-pti job to .zuul.yaml to verify
the rst files. To build the document, this commit also updates doc
related things such as requirements.txt, conf.py and the docs task in
tox.ini.

Change-Id: I4d1378a1972cad6f965d5cac6567d56828f75fb7
2020-04-22 10:49:23 +09:00
Andreas Jaeger 22a7d65de8 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: Ia1bbe6bd173435674075bee595001a7e8aa0d4ec
2020-03-31 02:57:23 +00:00
Ghanshyam Mann 58e562be3a [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

devstack-tools 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: Ib520e3e3b4c9eecd9a97112fabe455edb1ad1054
2020-02-03 12:41:30 -06:00
ZhongShengping ae6fb0ab2c Update python 3 unit test job
This is a mechanically generated patch to update unit test job running
under Python 3.

See ML discussion here [1] for context.

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

Change-Id: I67c3ee446195455e588e72aeebc54d54d8556d28
Story: #2004073
Task: #27445
2019-07-01 07:02:14 +00:00
Zuul 64e4b6893f Merge "Update home-page" 2019-06-28 19:39:14 +00:00
huang.zhiping 7f1d7155a3 Update home-page
Change-Id: Ief10c73009cc715a4bd9c92abde829ac54a75b61
2019-06-28 19:24:54 +00:00
Ghanshyam Mann 873311cd1c 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: I25b69bcc166dc72cb25508d9dbb7e2e0af644b66
2019-04-22 03:37:04 +00:00
OpenDev Sysadmins 5b86caee29 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:32:58 +00:00
Zuul 270cf481df Merge "Optimizing the safety of the http link site in HACKING.rst" 2018-12-14 09:04:02 +00:00
Zuul 495b141509 Merge "Change openstack-dev to openstack-discuss" 2018-12-14 08:52:39 +00:00
Zuul 020317e3ae Merge "fix tox python3 overrides" 2018-12-14 08:52:39 +00:00
Zuul 98340ac64e Merge "Removed older version of python3.4" 2018-12-14 08:51:27 +00:00
98k cee269b2b4 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I3ae0d8837a1c21285a35015c2c0a2463311b9803
2018-12-07 01:25:02 +00:00
zhouxinyong b1b60b6d55 Optimizing the safety of the http link site in HACKING.rst
Change-Id: I31c62536f48134e4ffc93abc6831b76c4b18ae93
2018-11-16 08:48:23 +08:00
98k 52855b5c23 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: I15eb789db64c58865fc3dae99a7e83f90c971a60
Closes-Bug:  #1801657
2018-11-06 05:23:28 +00:00
qingszhao 682411410b Removed older version of python3.4
Change-Id: I7f0c246b893b44d7334df26e9dbd5eba80fc4c84
2018-09-29 15:46:20 +08:00
Doug Hellmann 4f1ca7601f 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: I6faa7c3e39f02d765d7ceed4a69490b2092c6fee
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:47:51 -04:00
Doug Hellmann bcc62124e8 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id81512ccba8da3215c503e8b04cd04f4a71dcc34
Story: #2002586
Task: #24327
2018-09-08 22:54:16 -04:00
Doug Hellmann c1368cd4fa import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I2f0d88f88d36347bcc9702be74ab9812dc78842c
Story: #2002586
Task: #24327
2018-09-08 22:51:30 -04:00
Sean Dague 8a9057a4e2 Insert the right content at end of files
Previously the logic around hitting the end of the file without having
found the insertion point didn't account for the fact that you might
be in roughly the right area, and would not need to duplicate the meta
section or section headers.

This takes that into account during the else phase. It will help with
the neutron functional jobs that merge a lot of snippets together.

Change-Id: Ifaa1176e9fdfbc4fdb43192ed2f85e7306823848
2017-02-28 10:25:17 -05:00
Sean Dague c5626f3b4b support local.conf files with no [[local]] section yet
Previously if we tried to added content to a local.conf file without a
local section, we actually inserted that content in the wrong place at
the end of the file. This fixes that, with unit tests.

Change-Id: Ib886d78ce5f3718def784db59ba9abf41bdb0e7b
2017-02-27 10:08:48 -05:00
Mikhail S Medvedev ae73f278a1 add set_local_raw_multiline test
setlc_raw can be used to set several lines at once. The test checks that
it works as expected. See I565f5420743fbd95e9d744010c488953c54dd8a4
for some context of why that is useful.

Change-Id: I21bd78fa6169002a70fa9074d56d985bfc0b833f
2017-02-22 14:46:24 -06:00
Monty Taylor 375e772a6e
Match version entry in __init__ with setup.cfg
The name listed in setup.cfg is the key and needs to match what's in
__init__.py.

Change-Id: Icf0cfed5ed79bf5e96c94e81cf70f7769ff5b498
2017-02-15 13:43:55 -06:00
Sean Dague cf9093ec58 rename set_local_raw to set_local
set_local_raw is the new set_local, adjust the code to use the better
name.

Change-Id: I0f16ca647ada37049bdaf570b4695a73b60007ec
2017-02-10 17:01:42 -05:00
Sean Dague de46354ed3 new localrc set strategy
the localrc is really just executable shell, which means there are
tons of edgecases where you can't treat it the same as simple
assignment a=b.

Instead of trying to be smart about things and reduce duplication in
the localrc files, just do the naive thing and stack up all the shell
declarations in order. When evaluated in shell they will end up
stacking up as expected.

Change-Id: I231d130b24b02cdd79618f85472cee21905884e0
2017-02-10 16:57:34 -05:00
Sean Dague e0098fc212 update help for dsconf
Change-Id: I4b749816a52c0206e9f546b64b9ed80f766323b8
2017-01-19 16:25:51 -05:00