Commit Graph

44 Commits

Author SHA1 Message Date
Ghanshyam Mann d313d6d65a Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I2a368b66bf8bc82326f6a147cb6c73343e7726e5
2024-01-11 16:18:23 -08:00
Ghanshyam 44725fa7ac Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 32d554906c.

Keeping Python 3.10 in setup.cfg classifier and zuul.yaml changes.

Reason for revert:

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: I9becb9a67b07f260741c5fcc8bdb6c96cbbbe1d7
2023-05-05 18:51:22 +00:00
Hervé Beraud 32d554906c Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232

Change-Id: Ibd9c332ea54bc225887ceb60e77622432793726f
2023-04-10 13:03:19 +09:00
Hervé Beraud 9eaae04453 Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Change-Id: I18f643d5a7b6283b72c0cd3caeadf0d14f6ed713
2022-05-05 15:53:00 +02:00
dengzhaosen 64c82a0829 Update python testing classifier
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.html

Change-Id: Ia1cd4536ecf6a0b0e86796dffb5ca04197bd5abe
2021-12-21 16:38:08 +08:00
likui 0c0b7456e9 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

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Iceaa69d80eef75db5bac67463a59fd615ae0e895
2021-09-02 19:58:19 +08:00
songwenping ab8a8dd7a9 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

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Icc9b9a3af1c8cf58b3a2b9626065cb2fcd074a42
2021-04-29 19:59:51 +08:00
Stephen Finucane 78698b5c99 Convert rst to plaintext for oslo.config output
This lets us use powerful rST roles and directives in our help text
without these being emitted to the configuration file, where they don't
read quite as well. It also fixes our formatting somewhat, which is
nice.

Note that we're doing something funky where we disable line wrapping. We
can't totally disable this due to how rst2txt works, so instead we set
the line length to an arbitrarily long line length, which is taken from
RFC5322 (Internet Message Format) for want of something better. I
personally question whether anyone is configuring this, but that's a
fight for another day.

Also note that this might caught issues for people who are using invalid
rST in their docstrings or use roles/directives in their config options
that aren't part of the standard Sphinx set or oslo.config set. They
will already be seeing the former issues if they are using the
'sphinxext' extension though, and the latter sounds like it would be
fairly rare.

Change-Id: I6c7208f0facfb4f334d7440cb6a9562901543dd3
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-07-23 11:47:05 +02:00
zhangboye 3019eed100 Add py38 package metadata
Change-Id: Ife181dce8ed8520852501f394f3b1d3975c619fa
2020-05-22 15:06:57 +08:00
Stephen Finucane 5a5cf72c64 mypy: Add boilerplate configuration
Add the requirement, tox job, and basic configuration.

Change-Id: I3a865255ee731a27a00e7653557099fb99096486
2020-02-12 09:56:58 +00:00
Ben Nemec d9b8f2eaa4 Remove universal wheel configuration
Now that we've dropped py2 support we shouldn't be setting this
anymore.

Change-Id: I9a5e096e528ccf47f50b0ea67463cbe0cd359cd9
2020-02-06 17:33:51 +00:00
Stephen Finucane 4e071eb034 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

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: I13ce8e8264679a19c7b108381ccb969573ea9ac6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Sem-Ver: api-break
2020-02-03 15:12:02 +00:00
Corey Bryant 2488c1e1ce 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: Ia547c6f2e27c12ef58eb955286b5f2ab5359c2e2
Story: #2005924
Task: #34234
2019-07-05 14:43:07 -04:00
Ghanshyam Mann a73e55d1bd 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: I915a7c690e127aaf271b3862bbbd63fca582ae2b
2019-04-15 18:58:28 +00:00
ZhongShengping d32126b84f Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: Id75bf454ebb3f3f396f0b64f3a0b94cf9cd7c8e1
2018-12-05 09:39:24 +08:00
Zuul 7f45e34c85 Merge "Always build universal wheels" 2018-10-08 12:02:42 +00:00
Zuul f8e20de73e Merge "Simple config validator" 2018-10-08 11:33:04 +00:00
Hervé Beraud 3ed560af13 Always build universal wheels
All of our projects are pure python, so we can build
universal wheels by default.

Change-Id: Ic5e5089a8ff62660392a92cfc9c0aa29d4d32e0a
2018-10-05 13:52:20 +02:00
Ben Nemec 9362ccfa1a Simple config validator
This is a very basic config validator that just reads the provided
config file and compares it with the machine readable sample config
data from the config generator to find any options that are not
defined in the project. It will also warn about deprecated options
in use in the provided file.

Change-Id: I410b16ffcfb069140bd51dffaba7d56eada1a7e9
2018-09-26 19:49:14 +00:00
Doug Hellmann e233fc58da Add config_source option
Define a config_source option that can be used to specify the
alternative sources that require drivers to load configuration
settings.

Co-Authored-By: Moises Guimaraes de Medeiros <moguimar@redhat.com>
Change-Id: Ibd5a6d306bb98d30d973dfe3604dcc0691d2e369
Blueprint: oslo-config-drivers
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-25 10:17:12 +02:00
Sean McGinnis 7d250abe04 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:

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

For more detials information, please refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I46a861f88166b3b2de0a532cc88beef1ef91ab89
2018-03-21 15:59:01 -05:00
ChangBo Guo(gcb) 608a15ea61 Update URLs in documents according to document migration
Change-Id: I197694efd17966a32548643368983efe66041197
2017-07-12 22:32:03 +08:00
Stephen Finucane 32d23459dc Use Sphinx 1.5 warning-is-error
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Migrate
the setting from the old warnerrors one.

There are a number of issues that need to resolved to make this work.
Most of these trivial enough but unfortunately the history document
contains issue due to its inclusion of ChangeLog, which is based on
commit message summary lines and contains some invalid rST.  There
doesn't appear to be anyway to edit there retroactively nor disable
warnings on a specific files, thus the removal.

Change-Id: Ied79fc95d3711f8f3880e3e07e20f2c69b9a36ab
2017-03-16 15:38:35 +00:00
Eric Brown 08eff4f4d6 Remove references to Python 3.4
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.

Change-Id: Iacd8ea7388a8e7c0c28b184a4b823a95aa04b987
2017-01-09 10:05:36 -08:00
avnish ae9663aab3 modify the home-page info with the developer documentation
Change-Id: I424238bf258fe68db243f8909f9abda45c881a5a
2016-09-20 12:35:07 +05:30
Eric Brown 335b1845b7 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: I688d8d5ded43878cc3330d67c7749c208d821767
2016-07-09 22:39:20 -07:00
Ronald Bradford ed2da1ffed Update Beta development status from classifiers
Update the Beta trove classifier to be Production/Stable status.
See list of used classifiers at

https://pypi.python.org/pypi?%3Aaction=list_classifiers

Change-Id: I3689c6faf60be49ce2bf19f45e977dd64798954b
2016-05-04 12:05:29 -04:00
Doug Hellmann d5f877ed0e register the built-in options for the config generator to find
Change-Id: Ic570fece888a1a115bec976b368d0efb9b1b4686
2016-01-15 20:41:03 +00:00
ChangBo Guo(gcb) 6a62fa0952 Remove python 2.6 classifier
Change-Id: I28ffc76c776eecb3ce8a3606cbef8dbd82353517
2015-11-17 13:59:18 +08:00
Jenkins 8881f66f9e Merge "Fix home-page value in setup.cfg with Oslo wiki" 2015-09-25 23:02:38 +00:00
venkatamahesh 85f1fad531 Fix home-page value in setup.cfg with Oslo wiki
Change-Id: I84508e9643b289ee3264d7986127480698f57d7b
2015-09-25 14:49:27 +05:30
Davanum Srinivas 4c73762f76 docs - Set pbr 'warnerrors' option for doc build
By setting this pbr option in setup.cfg, the doc build will fail in case
of any warnings or errors occur during the build process.

Change-Id: I508d93249c5243b0068fe71ccb1726441a64d145
2015-09-24 21:46:10 -04:00
Doug Hellmann 59fd48b3f0 Remove oslo namespace package
Blueprint remove-namespace-packages

Depends-on: I77e50f2f14345321d1b5319343c5872a92977936
for openstack/murano-agent
Depends-on: If51059c31c82d5235e2ae21143911b5561783ca6
for openstack/os-collect-config
Depends-on: I324ca86a21c27ce43cebf255b3c075b8fe110820
for openstack/sahara-dashboard
Depends-on: Icfc882db41883410f7b40fc5a22bfaae1a65dedc
for openstack/tempest
Depends-on: I396a64aa7610b5fcc0bab05bff442ae6b43c6164
for openstack/congress
Depends-on: I749f43bd6dc15717154475cc1a776ffd6164b7fa
for openstack/octavia
Depends-on: I892c0b64ff6bab666f1f23f5e7aeb2da088ea087
for stackforge/python-solumclient
Depends-on: I09b3bec4c68c7fe9379b3d5fefbceaa86ffe994e
for openstack/congress

Related fixes for projects that can't build for other reasons:
I7d35c85926c8f098e2e47051ff44b714478df1b7 for stackforge/magnetodb

needed for the gate:
Depends-On: I0f07858e96ea3baf46f8a453e253b9ed29c7f7e2
Depends-On: I33bd2d9dff9cb7dc1a50177db7286b7317966784

Change-Id: Ibe16f8d7f73234845cab94c8e351f41954eecb0a
2015-07-13 22:23:36 +00:00
Davanum Srinivas 1c03572172 Advertise support for Python3.4 / Remove support for 3.3
Change-Id: Icdc1059b94e6f7c27e7d9760cacaa58b87ebc598
2015-05-10 19:14:49 -04:00
Doug Hellmann 70c5b67df3 Move files out of the namespace package
Move the public API out of oslo.config to oslo_config. Retain the ability
to import from the old namespace package for backwards compatibility
for this release cycle.

bp/drop-namespace-packages

Change-Id: I56274336802036de050efc62eb2ee6b5d4ede77b
2014-12-12 16:13:29 -05:00
Mark McLoughlin 97c6352008 Add oslo-config-generator
Add a sample config file generator utility. This is a dramatically
different approach from the generator in oslo-incubator, whereby we move
away from magic towards much more explicit control over the generator.

blueprint: oslo-config-generator
Closes-Bug: #1300546
Change-Id: I15686708fc9460948a58cfea3d18dae40ba1fda9
2014-06-26 14:20:22 +01:00
Alex Gaynor b3475191a3 Include the 'meta' trove classifiers for python versions
Change-Id: I76caa576d9490dfbc9f405d4fb1e9ec0ded762af
2014-03-06 16:01:55 -08:00
Jenkins 53873a262c Merge "Add py33 trove classifier" 2014-02-25 16:51:47 +00:00
Sascha Peilicke 8b990f36b3 Add py33 trove classifier
Change-Id: I85bec5e36e60d249788155f9fa8a880d31c3b309
2014-02-07 14:26:58 +01:00
Sascha Peilicke 215a027d32 Support building wheels (PEP-427)
Universal is used to identify pure-Python module(by bdist_wheel). For
these, it is sufficient to build a wheel with _any_ Python ABI version
and publish that to PyPI (by whatever means).

Change-Id: Ieabefc1fc8c8fbcd8749c07ccabb1ff88e1a761e
2014-02-07 12:03:01 +01:00
Mark McLoughlin 662cfb09c0 Remove explicit version from setup.cfg
With the explicit "pre version" in setup.cfg, PBR generates our
version as 1.2.0.a1.g2748574 and, without it, it generates
1.2.0a4.1.g2748574.

which in turn causes nova to complain about:

 VersionConflict: (oslo.config 1.2.0.a1.g2748574
 (/opt/stack/new/oslo.config),
 Requirement.parse('oslo.config>=1.2.0a3'))

when trying to load extensions with stevedore.

I'm not sure why this is suddenly an issue after 1.2.0a4 has been
tagged, but removing this version is the right thing to do anyway
since we want to rely on tags for all versioning info.

Change-Id: I9090b8401a43befd73a82f9bb78e0b6165619c7c
2013-08-25 12:51:31 +01:00
Monty Taylor 08203f69e6 Ensure namespace package is installed.
This is a workaround for bug 1194742. There is actually a bug in
upstream d2to1 that has a PR up:

https://github.com/iguananaut/d2to1/pull/32

But until that is released, this should fix the immediate problem.

Change-Id: I136b8493c8d8d48a0116facf5f23c2a1479c070f
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-27 07:42:50 -04:00
Monty Taylor ffbdc2acb6 Update build to use pbr.
Change-Id: If27004df4c756ebc0b00784cb0445ab46ea43d97
2013-05-03 12:38:15 -04:00
Mark McLoughlin 9805067bcf Add sphinx documentation
Add basic sphinx config and copy the theming from oslo-incubator which
was originally copied from keystone.

Change-Id: Ibb3b679ce6e160c157ff63f0943807bd82aa1a67
2013-02-09 17:32:02 -05:00