Skip to content

Commit 13fe5d5

Browse files
authored
Patch cycle - 2024 / Cycle 5 (#455)
1 parent 0a3e221 commit 13fe5d5

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
matrix:
3333
python-version:
3434
- '3.12'
35+
- '3.13'
3536
steps:
3637
- uses: actions/checkout@v4
3738
- name: Set up Python

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
*.egg-info
77

88
/poetry.lock
9+
10+
.tool-versions

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/).
77
- NEW: Added `alias_email` and `destination_email` to `EmailForward`
88
- CHANGED: Deprecated `email_from` and `email_to` fields in `EmailForward`
99
- CHANGED: Aligned `EmailForwardInput` constructor param names with current endpoint definition
10+
- CHANGED: `DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature.
11+
- NEW: Add support for python 3.13
1012

1113
## 3.0.0
1214

LICENSE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 DNSimple Corporation
3+
Copyright (c) 2024 DNSimple Corporation
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A Python client for the [DNSimple API v2](https://developer.dnsimple.com/v2/).
1313

1414
## Requirements
1515

16-
- Python 3.12 - Note later versions of Python may be supported, but we make no guarantees as they are not tracked in our CI.
16+
- Python 3.12+ - Note later versions of Python may be supported, but we make no guarantees as they are not tracked in our CI.
1717

1818
## Installation
1919

@@ -143,4 +143,4 @@ Contibutions are welcomed. Please open an issue to discuss the changes before op
143143

144144
## License
145145

146-
Copyright (c) 2022 DNSimple Corporation. This is Free Software distributed under the MIT license.
146+
Copyright (c) 2024 DNSimple Corporation. This is Free Software distributed under the MIT license.

dnsimple/service/domains.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import warnings
23

34
from dnsimple.response import Response
45
from dnsimple.struct import Domain, Dnssec, Collaborator, DelegationSignerRecord, EmailForward, DomainPush
@@ -111,6 +112,7 @@ def list_collaborators(self, account_id, domain):
111112
:return: dnsimple.Response
112113
A list of collaborators for the domain in the account
113114
"""
115+
warnings.warn("DEPRECATION WARNING: `DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature.")
114116
response = self.client.get(f'/{account_id}/domains/{domain}/collaborators')
115117
return Response(response, Collaborator)
116118

@@ -138,6 +140,7 @@ def add_collaborator(self, account_id, domain, email):
138140
:return: dnsimple.Response
139141
The collaborator added to the domain in the account
140142
"""
143+
warnings.warn("DEPRECATION WARNING: `DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature.")
141144
response = self.client.post(f'/{account_id}/domains/{domain}/collaborators', data=json.dumps({'email': email}))
142145
return Response(response, Collaborator)
143146

@@ -157,6 +160,7 @@ def remove_collaborator(self, account_id, domain, collaborator):
157160
:return: dnsimple.Response
158161
An empty response
159162
"""
163+
warnings.warn("DEPRECATION WARNING: `DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature.")
160164
response = self.client.delete(f'/{account_id}/domains/{domain}/collaborators/{collaborator}')
161165
return Response(response)
162166

0 commit comments

Comments
 (0)