As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg
Change-Id: I8109360770f3dd69bbc90aedf52be985cd87fb56
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: I430301474e2294eb6f2d71fc521c73d23c6f8a55
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
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Update lower-constraints for osprofiler as required by
other dependencies.
Change-Id: I84ec7cae5b051bb9c69969d8ccaa28b053914840
In order to make manila-ui python3 compatible,
this patch set:
- replace dict.iteritems() with six.iteritems(dict)
- replace print msg with print(msg)
- replace dict.viewkeys() with error.keys()
- python 3 getting the keys() of a dict returns
a dict_keys object instead of a list and hence
sort() fails
- in python 2.x calling keys makes a copy of the key
that you can iterate over while modifying the dict.
This doesn't work in python 3.x because keys
returns an iterator instead of a list.
Another way is to use list to force a copy of the keys
to be made.
- use getattr instead of relying on overriden __getattr__
in the client to get params that not neccesarily need to
be available (share_group_id and supports_share_migration)
- refactor ShareGroupTypeTests
Plus, enable py35 and py35dj20 jobs in tox and drop
old oslo-incubator files (install_venv.py)
Also add openstack-tox-py35 job to check python3 env.
openstack-tox-py35 should be defined in project-config later
but it is added to check python3 UT status.
Change-Id: I30582184904dc19e9cb4ca171b1fd2d161e09c48
OpenStack projects are no longer being tested under Python 3.3,
so remove the trove classifier implying that this project supports 3.3.
Change-Id: I1aceffbb01f4208de7f0761dd1a6f835edf42ab1
OpenStack projects are no longer being tested under Python 2.6, so
remove the trove classifier implying that this project supports 2.6.
Change-Id: I843d274a003b82f5b8bf02d8249635ac2ce5fcab
Remove the version setting from setup.cfg to rely on git tags to produce
the version information. pbr will update the package metadata properly
based on the tag and the current commit, so there is no need to be
explicit about post-versioning versions in setup.cfg.
Change-Id: I007a6206951aff09d2358ac97cf1b060c42bb7ad