12 Commits

Author SHA1 Message Date
Erik Olof Gunnar Andersson
b6e78fefdd pyupgrade changes for Python3.8+
Result of running

$ pyupgrade --py38-plus $(git ls-files | grep ".py$")

This was inspired by Nova [1] and Octavia [2]

Fixed PEP8 errors introduced by pyupgrade by running:

$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
  --in-place designate

and manual updates.

[1]: https://review.opendev.org/c/openstack/nova/+/896986
[2]: https://review.opendev.org/c/openstack/octavia/+/899263

Change-Id: I27d09edb7e75081379002615f4ecdb1aa007dbcf
2023-11-17 09:42:13 -08:00
Michael Johnson
820f1e9af9 Remove six and update lower-constraints appdirs
This patch removes the use of "six" as the package declares only
python3 support.
It also updates the appdirs lower-constraint to 1.4.0 to support
pip. This version is available on both centos8 and focal.
It also removes the linter related packages from lower-constraints.

Change-Id: I9337f1998749bc40737f2f0e2dcc406b6f3a0ddf
2021-03-26 18:22:44 +00:00
cao.yuan
e288539298 Update json module to jsonutils
oslo project provide jsonutils, and the others use it in many place,
this PS to update the json moudule to oslo jsonutils for consistency.

Change-Id: I8cbf78b0735572f550ece31611258c3da9ae1d35
2019-02-28 10:30:22 +08:00
Jenkins
a9385ac8f5 Merge "Implement zone import" 2016-04-06 16:58:09 +00:00
Paul Glass
a5e8206ed6 Show responses on zone and recordset deletes
Change-Id: I1b15c64bac1bc495fe7aecbcf08c28b8ea41b5a7
2016-03-30 17:07:48 +00:00
Rahman Syed
d2b88c88c5 Implement zone import
Zone import commands (create, list, show, delete)
are missing from the python-designateclient.

This change includes implementation, as well as unit tests
and functionaltests.

Change-Id: I635431b5ef11989247e8d185ad692e4fee9bebba
Closes-Bug: #1550532
2016-03-30 11:23:27 -05:00
Swapnil Kulkarni (coolsvap)
454533538a Update typos
Change-Id: I55a39f985fe51452ee8b892fff10787dddc7c837
2016-01-13 11:31:31 +05:30
Jenkins
c9d36d9d29 Merge "Solve some py3 compatibilty issues" 2015-07-27 13:48:07 +00:00
Pradeep Kumar Singh
28715147df Solve some py3 compatibilty issues
1. replaced dict.keys() with six.iterkeys(dict)
2. replaced map with six.moves.map

Change-Id: I4b80e12a4686fd6f5857c2322de13b1245e72083
2015-07-24 02:35:55 +00:00
Pradeep Kumar Singh
a0eafcb093 Fix py3 compatibilty issues
1. replace urllib with six.moves.urllib
2. replace basestring with six.string_types

Change-Id: I92dbbdb149ed35e1623184eb7a93162b5cc0bfb6
2015-07-23 14:02:48 +09:00
Endre Karlson
2a2c85ce21 V2 Bindings
This provides bindings for:

- zones
- recordsets
- tlds
- blacklists
- limits
- nameservers

With associated unit tests.

Change-Id: Ie9b79340bd327b78916fd038633842da3ace881b
2015-05-07 17:23:09 +02:00
Endre Karlson
6e174c5128 Move some useful code outside v1
Change-Id: I5cdb4e0b57e00743cb1a4409a1fc8b519ae38ddb
2014-11-17 17:03:32 +01:00