pythonanywhere-core 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythonanywhere-core
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: API wrapper for programmatic management of PythonAnywhere services.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -17,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Programming Language :: Python :: 3.15
20
21
  Classifier: Topic :: Software Development :: Libraries
21
22
  Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
22
23
  Requires-Dist: requests (>=2.30.0,<3.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pythonanywhere-core"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "API wrapper for programmatic management of PythonAnywhere services."
5
5
  authors = ["PythonAnywhere <developers@pythonanywhere.com>"]
6
6
  license = "MIT"
@@ -0,0 +1 @@
1
+ __version__ = "0.3.1"
@@ -90,6 +90,10 @@ class Website:
90
90
  "post",
91
91
  json={"cert_type": "letsencrypt-auto-renew"}
92
92
  )
93
+ if not response.ok:
94
+ raise PythonAnywhereApiException(
95
+ f"POST to set Let's Encrypt SSL certificate via API failed, got {response}:{response.text}"
96
+ )
93
97
  return response.json()
94
98
 
95
99
  def get_ssl_info(self, domain_name) -> dict:
@@ -1 +0,0 @@
1
- __version__ = "0.3.0"