Commit Graph

8 Commits

Author SHA1 Message Date
Luciano Lo Giudice 45fe9ad44e Properly account for charms.ceph dependencies
The setup.py file needs to be specify the dependencies of this
library, to avoid depending on them being manually installed.

Change-Id: I3ff2338f967aff5613bde777b224cd96ea81c1fd
Closes-Bug: #1987547
2022-08-24 20:19:33 +00:00
Alex Kavanagh d0d002cacf Replace ostestr with stestr in comment in setup.py
charms.ceph actually uses stestr to perform unit testing.

Change-Id: I07c53fdea4e79ba92d0a3c2535020f9cf723d86d
2021-02-10 11:33:42 +00:00
Hervé Beraud cc871e3833 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I1cbefc9caad2664de843be23e54bb9800650d371
2020-06-02 20:06:20 +02:00
Ghanshyam Mann a290b14e3b [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

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

Needed-By: https://review.opendev.org/#/c/714728/

Change-Id: I2bcf1208d75d8cdda4e3892b3e48c85eaf5db8d1
2020-03-25 06:14:19 +00:00
zhulingjie 161e0ca24a Change openstack-dev to openstack-discuss
Change-Id: If77681ab037481e0a7fd2988716d807f9476ae06
2018-11-18 03:08:57 -05:00
Alex Kavanagh 407d98b96a Make charms.ceph fully py2/py3 compatible
These changes make the charms.ceph library suitable for both the
old-stable Python 2 charms and the (to be) updates Python 3 only charms.
Avoided use of six by using str() with the decode('UTF-8') function to
allow the library to be used with both Py2 and Py3.  The str(...)
coercions can be removed at a later date when the library no longer
needs to be synced to Py2 versions of the ceph-* charms.

Change-Id: I416053439444bf4cf8945d1fe96643f9ed0f05f4
2017-10-30 12:02:58 +00:00
Billy Olsen fd3fad022d Fix pep8 for setup.py
Commit 195d002ab added a setup.py to the charms.ceph library for
inclusion in the pypi repositories. The setup.py file included was
not lint checked and introduces pep8 violations which are checked
in dependent projects (charm-ceph-osd, charm-ceph-mon, etc).

This change fixes the pep8 linting and also adds the setup.py file
to the tox configuration file to prevent future issues.

Change-Id: Ic84d3348023e8fa968638be935af9b5d31806ef1
2017-03-13 16:22:14 -07:00
James Page 195d002ab1 Add setup.py for use as python module
charms.ceph is not currently installable using pip; add required
setup.py file to ensure it can be consumed in this way.

Change-Id: Ife1828213d01eed541153089eef0b93efb941a57
2017-03-10 11:35:41 +00:00