Commit Graph

36 Commits

Author SHA1 Message Date
Akihiro Motoki ee80782504 Drop py36 and py37 support
Python runtimes for Zed are 3.8, 3.9 and optionally 3.10 [1][2],
so tox envs in tox.ini are updated accordingly.

Declare python_requires >=3.8 in setup.cfg
python_requires are declared in many projects during dropping
python 2.7 support. It is good to follow the convention and
it also clarifies our python interpreter requirement.

This commit also cleans up python2.7 related stuffs in setup.py.
Both are related to the supported versions of python,
so I made both changes in a single commit.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html
[2] b740b42fb1/zuul.d/project-templates.yaml (L542)

Change-Id: I4161816fd1fec19a3834cc7d994b3f761e1ab2ce
Closes-Bug: #1960887
2022-06-06 17:59:13 +09:00
Zuul d4b5646fb3 Merge "Add Python 3 only classifier" 2022-03-08 16:12:28 +00:00
Takashi Kajinami 569caf0b7f Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.

Change-Id: I51552cadaed82b29dcd10043ba23a0682e549156
2022-02-08 23:27:26 +09:00
manchandavishal 7249e7c1dc Updating python testing as per Yoga testing runtime
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 makes other required changes in ``.zuul.d/cross-jobs.yaml``,
tox.ini and update the classifier in setup.cfg file.

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

Change-Id: Ie66460c19e5e670e9be3b1262d5f06e821078be9
2021-12-15 13:06:16 +05:30
YuehuiLei 00c5825ca7 setup.cfg: Replace dashes with underscores
Resolves warnings like the following:

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

Change-Id: I6c40c36603b3d173adcc5c941b5654102778a058
2021-04-27 14:10:15 +08:00
Sean McGinnis fa96933f6c
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I9e0c6fa404093a9165b981c3a59006eb22e1b9a2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:35 -05:00
Akihiro Motoki 4ef9ba94c0 Avoid duplicated maintenance of integration test config
Configurations of the integration tests are maintained both
in horizon.conf and in-code configuration. It is redundant.

Configurations of the integration tests are defined by oslo.config.
We can use default values from them and generate a sample config file
using oslo-config-generator.

This commit drops horizon.conf and generates the sample config.
We no longer have horizon.conf, so the logic to load the config files
is updated accordingly.

Also makes the usage of single and double quotes in config.py consistent.

Change-Id: Id16c9fd4114316ade63c74097e486623d0c5be9f
2020-01-10 00:55:43 +09:00
Akihiro Motoki 155bf22788 Drop babel extractor definitions from babel config
Babel allows us to register babel extractors via entry points.
This means we no longer need to have extractor definitions in
each babel config files. All horizon plugins have copies of
babel-django.cfg and babel-djangojs.cfg now. By dropping the
extractor defintiions from babel config files, we can make
a potential migration from django-babel to enmerkar (and
we can also avoid more modifications of babel config files
even if more transition is required).

django-babel and enmerkar both define 'django' extractor
in the entry point, so we can drop it from babel-django.cfg.
This commit also registers 'angular' extractor, so we can drop
the extractor for AngularJS from babel-djangojs.cfg.

Change-Id: Icf93d4551bd3db1baa84c110f06dcc1c36e18b7e
2019-12-23 17:25:38 +09:00
Ivan Kolodyazhny 7f17dcb4dd Remove Python 2.7 jobs
Ussuri release won't support Python 2.7 officially [1] so we can
drop CI jobs to test with Python 2.7.

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

Depends-On: https://review.opendev.org/688997
Change-Id: I650ca71c5a7c922a73f20cdf5ceb02caae464d02
2019-10-24 21:44:39 +00:00
manchandavishal 3b6c944ff5 Update python3 version info
In Train, we will use python 3.6 and 3.7 for python3 runtime
in our gate jobs [1]. This commit drops python 3.5 info
and adds python 3.6 and 3.7 info.

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

Change-Id: I8f024505ed9b37c9f2b480f49b5000d75da42cc0
2019-03-29 10:32:52 +00:00
Akihiro Motoki 72eff9c4fd Migrate horizon-dsvm-tempest-plugin job to python3
Python 3 and python 3.6 classifiers are added
so that DevStack recognizes horizon works with python3.

Change-Id: I2ab0a1a9df9292090f8f14b1591b98d691e16bc4
2018-12-30 07:36:21 +00:00
ZhongShengping 49d9a5722e 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: Ibae62f0fd43a4fb8a67c560c72e02f86683dff09
2018-12-05 09:44:38 +08:00
Ivan Kolodyazhny 770afab1bf Remove nose references from Horizon
Commit I7fb2fd7dd40f301ea822154b9809a9a07610c507 changed test runner to
not use nose. So it's safe to remove all references now.

Change-Id: I8856e4e91b25f059645eb5e0356d207f6fc119f2
2018-09-22 20:11:30 +03:00
Akihiro Motoki eac3eae35a Follow the new PTI for document build
The detail is described in the following links:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

doc8 command is dropped from docs and releasenotes tox envs.
We run doc8 in pep8 tox env, so this hurts nothing.

Change-Id: I24271b527258b1de4cf26ca7efd625954eb834de
2018-03-25 02:14:40 +09:00
Monty Taylor 835a4bb7ba
Update upper-constraints consumption
In order to deal with horizon going into the upper-constraints file so
that horizon plugins can consume it normally, we need to align the
constraints invocation in horizon's tox.ini. This means putting the -C
argument into the dependencies list rather than the pip install line so
that it doesn't get appended to tox installing horizon itself.

While we're in here, move nosehtmloutput into test-requirements so that
we don't need to do .[test] which also doesn't work with constraints.

Needed-By: https://review.openstack.org/550475
Change-Id: I736f79010c2d34e25d41d967a38128c2263ed13f
2018-03-08 07:22:54 -06:00
Radomir Dopieralski 9b0c511ca6 Use oslo.config for Horizon configuration
This patch adds the infrastructure needed to move the configuration
of Horizon into oslo.config-compatible configuration file, instead of
the Django's Python-based configuration. It doesn't actually define
any configuration options, just the mechanism for loading them and the
additional types necessary to handle Horizon's complex configuration,
and the integration with oslo-config-generator.

Subsequent patches will add groups of options, making it possible to use
them in the local_settings.conf file instead of the local_settings.py
file. Note, that the options specified in the local_settings.py file
will continue to work.

Partially-Implements: blueprint ini-based-configuration
Change-Id: I2ed79ef0c6ac6d3816bba13346b7d001c46a7e80
2017-11-27 17:03:56 +09:00
Rob Cresswell e3e5812b19 Add Django OpenStack Auth to Horizon
Moves Django OpenStack Auth content to Horizon, since they are so
tightly coupled. This cleans up the development workflow and should
make keystone / auth related contributions easier.

Implements: blueprint merge-openstack-auth
Change-Id: Ia1cdc47bad1ca6e633073a9f9445b0c7f70d05bc
2017-09-27 12:06:57 +01:00
OpenStack Proposal Bot c5b33ec6d6 Updated from global requirements
Change-Id: I9c8d93da24b5e13ca704ccfc761d73e2eb66eeff
2017-08-23 12:10:56 +00:00
Thomas Bechtold 8d7b2ce3c0 Make nosehtmloutput an optional test requirement
It is not strictly needed.

Change-Id: I37b2623ec834533a7ecae63084e2c2c04ecc1751
2017-08-21 15:25:44 +02:00
Luong Anh Tuan 0243c5d27a Update URL home-page in documents according to document migration
Change-Id: I559e59e3f08a911d3382ab47531d5bb6e8cc1a72
2017-07-14 15:29:40 +07:00
Akihiro Motoki cc04439da4 Enable warning-on-error in Sphinx 1.5
warning-on-error option is avaialble in sphinx setup command integration
since Sphinx 1.5 [0]. This is useful to prevent future warnings.
Note that there is no sphinx error or warning in the current
horizon code base :)

Also renames 'all_files' to 'all-files' in [build_sphinx] section
as this is the actual option name defined in sphinx [0].
The underscore version 'all_files' also works as pbr
handles it properly, but we use hyphen version for sphinx options,
so the consistent usage is less confusing.

[0] https://github.com/sphinx-doc/sphinx/blob/1.5.3/sphinx/setup_command.py#L69

Change-Id: Ic9d1b0e4db30891c694537d43d7f7a51ff92be49
2017-03-27 05:34:52 +09:00
shizhihui 76833ddb29 Add Python 3.5 classifier
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.

Horizon passes the py35 tests, make it voting at:
https://review.openstack.org/#/c/359123/

Change-Id: Ib098cf6dd3208a3e9fac93929ac2d40dba20cd4d
2016-09-06 04:41:48 +00:00
gengchc2 15909be101 modify the home-page info with the developer documentation
update home-page info
Closes-Bug: #1612505

Change-Id: I3934c263ba257ccc3978f8afa9ac6b69c11897ec
2016-08-12 14:40:29 +08:00
Itxaka a67d75fa58 Enhances tox to not rely on run_tests
Several changes:
 - Dont rely on run_tests.sh and run the commands directly
 - Move the coverage options to the setup.cfg
 - Set py27 envs under the same umbrella
 - Split horizon and openstack_dashboard tests into 2
different envs
 - Remove usedevelop from most envs as its not needed
 - Set basepython to 27 on the default env
 - Allow adding posargs to py34 env
 - Add npm environment which defaults to npm run test
 - Add runserver as a new env
 - Move pep8 to be the first tests so we fail fast
 - Provide an env to tests against system packages, useful
for package builders that DONT want to test against pip
install but their local packages installation.
 - Allow to pass TOX_EXTRA_DEPS to the system_packages
tests in case some extra pip packages are needed
 - Add a manage env to pass commands to manage.py
 - Add an environment to createmessages
 - Add an environment to check only if we can create
messages
 - pep8 environment also runs the check for messages
 - All python commands use {envpython} so no escape
from the venv is possible
 - Uses {toxinidir} for a clear indication of where
the files to be executed are
 - Moves all keywords for pybabel to the setup.cfg
 - Removes not needed whitelist_external for all envs
and uses only git for one specific env

Change-Id: Ia1be8f60265d9dab2639a05912b4b7c51f1d4033
Implements: blueprint enhance-tox
2016-04-20 12:56:53 +02:00
David Lyle 85a6f931f7 Removing version line from setup.cfg
This is part of the new release instructions.
http://lists.openstack.org/pipermail/openstack-dev/2015-November/080692.html

Depends-On: I9adf91048acae17d523aab7b92f19d8643a3e19d
Change-Id: Ie4fd1f0396ca936c1c6a7f96190ca834b9a8f6d8
2015-12-03 11:55:21 -07:00
Thierry Carrez 29313efb27 Open Mitaka development
Bump preversion to mark the start of the Mitaka development branch.
The liberty release branch will be cut from the previous commit.

Change-Id: I8da5a8c2938ba1c5268118f2a78ced65b0a2be10
2015-09-24 16:13:50 +02:00
Doug Hellmann dd081d2848 Update version for Liberty
Update the version for Liberty, switching from date-based versioning
to pre-versioning using SemVer. See
http://lists.openstack.org/pipermail/openstack-dev/2015-May/065211.html
and
http://lists.openstack.org/pipermail/openstack-dev/2015-June/067082.html
for details.

Change-Id: I6a35fa0dda798fad93b804d00a46af80f08d475c
2015-06-17 21:51:51 +00:00
Thierry Carrez 42612820c3 Open Liberty development
Bump pre-version in setup.cfg to formally open Liberty development.
Kilo release branch will be cut from the previous commit.

Change-Id: I8bb60f38956c44ae961e1da69f51e7f37c6beece
2015-04-07 16:55:54 +02:00
Julien Danjou b7f40060ba Remove Python 2.6 classifier
Horizon does not support Python 2.6 anymore starting with Kilo and might
not work correctly with it, so remove the classifier.

Change-Id: Idb2a044968bf35c1fbe4ab42188c6f7df096d442
2014-11-26 10:14:57 +01:00
Thierry Carrez 1a87865c2d Open Kilo development
Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: I2ff0fb19a894cb6018807d667e233f4fa6dfa83c
2014-09-30 16:56:21 +02:00
Thierry Carrez 814e2705cb Open Juno development
Bump preversion to 2014.2 to formally open Juno development.
The Icehouse release branch (milestone-proposed) will be cut
from the last commit before this one.

Change-Id: I098875288a7090de75110166b72cc00181ff278c
2014-03-31 10:32:44 +02:00
Gabriel Hurley f314e12835 Open Icehouse development
This bumps the target version to 2014.1, opening the master
branch for Icehouse development and ending the feature freeze.

The Havana release branch is cut from the commit preceding this.

Change-Id: I59e298f38bb18acfc42aea7f1de075a212befa51
2013-10-02 12:08:56 -07:00
Monty Taylor dc266f44e7 Updated from global requirements
Change-Id: Ibf423f14a5c37aa298b2115bfd4936f660c6f530
2013-08-08 13:16:35 -03:00
Monty Taylor 91e4715c14 Migrate to PBR for build tooling.
pbr is the library-ified version of the code that was in
openstack.common.setup and version. It builds on top of d2to1 to
provide declarative build configuration.

Change-Id: Ic264fa33e17fe5fdc71d8c53412495b069ab74a4
2013-04-27 11:56:07 -04:00
Clark Boylan f1a8e0c54f Move docs to doc.
To better facilitate the building and publishing of sphinx
documentation by Jenkins we are moving all openstack projects with
sphinx documentation to a common doc tree structure. Documentation
goes in project/doc and build results go in project/doc/build.

Change-Id: Ic523a716e4113198b777d6dc3db8bb8a729e7696
2012-06-12 11:41:04 -07:00
Monty Taylor c93e7c06fd Add ProjectTestingInterface to horizon.
Horizon is the last project that doesn't have support for the common
Project Testing Interface. This gets horizon up to speed with the
other bits, but shouldn't break any of the existing interfaces.

Change-Id: I464c3b10d9708a0b7b5ffd42c88cd3cf515ef6a7
2012-05-26 14:36:19 -07:00