Commit Graph

23 Commits

Author SHA1 Message Date
Ghanshyam Mann 15f1a04698 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I1e206c4e9611c90438de842bbc1cb9af6cbc21cc
2022-05-11 22:24:52 -05:00
Takashi Natsume b2e449e684 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

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: I216ef60919713cd397c8a46146339d144930e40b
2021-05-13 20:51:05 +09:00
gugug 0f8e76c7ab Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I6bcedbda2940dd76df8b6de4038ef0b3a40f16b7
2020-05-23 16:49:31 +08:00
zhanghao d9a0ce5d72 Stop testing Python 2
This change removes the requirement for python 2 and removes testing for
it, but tries to leave the code compatible with python2 where possible.

Co-Authored-By: Nate Johnston <nate.johnston@redhat.com>
Change-Id: I711ae939b5eaa1816af15b22527c38858507127f
2020-01-09 11:12:06 -05:00
ZhongShengping 57d7d3baa1 Update Python 3 test runtimes for Train
This goal is to implement the process set out in the 2018-10-24 Python
Update Process TC resolution[1], for the Train cycle to ensure unit
testing is in place for all of the Tested Runtimes for Train[2].
In practice, this generally means adding unit tests for Python 3.7 and
dropping unit tests for Python 3.5. Using the Zuul template for Train
will ensure that all projects that support Python3 will be tested
against the agreed runtime versions, and make it easier to update them
in future.

Specifically this patch:
- Uses the openstack-python3-train-jobs zuul template rather than
templates for python 36/37.
- Adds Python 3.7 to the setup.cfg classifier.
- Adds py37 to the envlist of tox.ini.

[1]https://governance.openstack.org/tc/resolutions/20181024-python-update-process.html
[2]https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I92e07412e06d5e0bcd4a3ef63643d140243f8205
Depends-On: https://review.opendev.org/#/c/641878/
2019-05-15 14:20:36 -06:00
ZhongShengping c104e82169 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: Iaef50bda2e67e114cec3fe6e147a61283c8c1003
2019-04-15 09:24:03 +08:00
ZhongShengping 029f3b43a6 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Idc145e07d15fc200d2a9f110a1884bd274750d59
2018-12-04 11:03:31 +08:00
Doug Hellmann fe62f2ec7f build universal wheels
By default setuptools produces a version-specific wheel file so
installation under other versions of Python require extra work at
install time. This change turns on "universal" wheel support, so that
the wheel file will be marked as supporting both Python 2 and 3.

Change-Id: I00bc3d736e87bcc3a122b688c5e10e82b1b03d84
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-02 18:23:56 -04:00
Akihiro Motoki bede782630 policy-in-code support in neutron-lib
policy-in-code will be supported by the main neutron repo
because the neutron API layer uses the policy code in the neutron repo.
However, neutron_lib.context refers to its own policy enforcer,
so we need a small code to support policy-in-code in neutron-lib side.

Part of blueprint get-policy-from-neutron-lib
Change-Id: I4923a069f4080dc53a8fb359f5a1518de06feb2f
2018-09-17 08:59:57 +00:00
melissaml bc16522329 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: I2f6d52e61fe9a036a6565883626673d37cd89070
2018-03-27 11:19:28 +08:00
Akihiro Motoki 90a8302231 Update the documentation link for doc migration
Change-Id: I7db258cc50373c5011b8f99b6f8971a08ca336f3
2017-07-20 15:46:41 +00:00
Akihiro Motoki f9b06e8937 Enable module reference
Also fixes sphinx warnings in existing docstrings.

Change-Id: Iccccd782ff8b80a3fd2764e7ef9cc3dde46e32ee
2017-07-05 12:09:10 +09:00
Akihiro Motoki 94d7e681ee Enable warning-is-error in doc build
The command to build docs is updated to match that run in the gate.
The previous command is to ensure no warning, but sphinx 1.5 or later
has warning-is-error option and there is no need to run a different
command in tox docs target.

Change-Id: Ieac8afd096a158aff6403326104ced31adcb77e1
2017-07-05 06:49:58 +09:00
Cao Xuan Hoang 12c3a82756 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: I9701f7ac1551dc60f0f75f64a322a6841108dfe2
2017-02-09 08:28:56 +07:00
Cao Xuan Hoang b36f34fffa Remove support for py33
Python 3.3 is not supported from Mitaka, as per Infra.
This patch removes the support for the same.

Change-Id: I4554f8f7510aea4e3bf66fa68f62d43140112d09
2017-01-19 09:16:37 +07:00
Henry Gessau 27cfad9210 Revert "Update hacking check consumption"
This reverts commit 4f318bc253.

Conflicts:
        neutron_lib/hacking/checks.py
        neutron_lib/tests/unit/hacking/test_checks.py
        test-requirements.txt

Change-Id: I383e2cfee3edac7201498f685e4c3b16f38af237
2016-08-09 21:52:45 -04:00
Jenkins 4f96e0e20e Merge "Add Python 3.5 classifier and venv" 2016-08-09 17:56:36 +00:00
lilintan ebee8016f4 Update the home-page in setup.cfg
Change-Id: Iefacbd7f5f3ee00d8d543b61f5cd55e6c900cdc1
2016-08-09 16:45:07 +08:00
lilintan b2ab133ff9 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 adds the
convenience py35 venv.

Change-Id: I78adc9d836059fe9a2e8d1010408dd440d9d620e
2016-08-08 21:02:28 +08:00
Boden R 4f318bc253 Update hacking check consumption
This patch updates our hacking checks as follows:
- Hacking checks are now registered via entry points so
they can be used via flake8 CLI. By default they are disabled.
Hacking check doc string is also updated to support pep8
parsing of check code.
- The existing hacking.checks.factory() is moved to a more
meaningful name; marking as deprecated.
- A private neutron-lib specific hacking check factory is provided
and used in tox.ini.
- A flake8 plugin is provided that supports the ability to use our
hacking check factory functions to enable a pre-existing check
by default.
- Our usage of hacking checks is updated to reflect our consumption
model for adopters.
- Unit tests are provided.

Change-Id: I88dad7f7cce4d4f5af679272f067c3bb4a73803a
2016-08-02 08:57:18 -06:00
Akihiro Motoki ef3bfed0ea Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

This basically renames
neutron-lib/locale/neutron-lib.pot to
neutron_lib/locale/neutron_lib.pot. For this we need to update
setup.cfg.

Update also domain name in _i18n.py.

The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.

Change-Id: I73db7b37f5a44ae45c01ca16abccb41a5fbfbfe8
2016-01-29 07:08:35 +09:00
Gary Kotton 47dfcb63a1 Setup for translation
To start translation, we need to initially import the translation
file - and place it at the proper place so that the usual CI
scripts can handle it. The proper place is for all python
projects $PROJECT/locale/$PROJECT.pot - see setup.cfg.

Further imports will be done by the OpenStack Proposal bot.

Change-Id: I4223ec5ffd3770ef90e23cd8f84341097c1fe84f
2015-12-15 01:46:27 -08:00
Doug Wiegley b0d12660ea Initial cookiecutter commit
Partially-Implements: bp neutron-lib
Change-Id: Ia6884f545efb56429bcb74246a74e95d1318376a
2015-11-20 17:24:43 -07:00