Commit Graph

12 Commits

Author SHA1 Message Date
Ghanshyam Mann d99799bb85 [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: I6cb655295287c367e128194f1264910a2d761e79
2021-12-14 13:01:26 +00:00
Alex Kavanagh 976dd86b83 Change ostestr to stestr in comment in setup.py
charms.openstack now uses stestr rather that os-testr.

Change-Id: I436c75d8cb17abdcfbdc97cd31ced7a7165a48b5
2021-02-10 11:39:53 +00:00
Hervé Beraud f72403ad3c 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: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
2020-06-02 20:06:38 +02:00
Alex Kavanagh d83205fcf0 Remove .git from built package
Clean-up some of the files that get added with setup.py is run.
This is some prep work for when it makes it to PyPi.

Change-Id: I70c7d284ac0f3ec03d02a945f7162e063b023688
2018-05-10 13:14:18 +01:00
James Page d40bf346f6 Merge pull request #1 from javacruft/rename-module
Fixup internal naming of module to _ -> .
2016-05-24 15:45:44 +01:00
Alex Kavanagh a349582d80 Change setup.py url to repo url 2016-05-24 14:43:12 +00:00
James Page 46ff510de0 Fixup internal naming of module to _ -> . 2016-05-24 15:34:02 +01:00
Alex Kavanagh b82302808a Start of renaming charmers.openstack to charms_openstack
This is probably 1 of 3 commits to rename the module to charms_openstack
which will enable it to live happily alongside charms.reactive without
conflicting with it's namespace - and also taking over the charmers
namespace.
2016-05-20 17:06:31 +00:00
Alex Kavanagh fdeaeac763 Rename charms to charmers as the charms.reactive is locked down
This package can't share the namespace with charms.reactive, hence the
change to charmers.openstack.
2016-05-19 20:17:33 +00:00
Alex Kavanagh 18a11c913d Add publish and tag to Makefile and setup.py
This adds the ability to publish the module to PyPi and to tag the version in
setup.py to the git repository.
2016-05-18 10:54:16 +00:00
Alex Kavanagh f4539b5be0 Fix setup.py so that it can run tox for test 2016-05-17 19:48:05 +00:00
Alex Kavanagh ffb9996696 Initial commit of OpenStackCharm for layer-openstack 2016-05-17 18:06:03 +00:00