Compare commits

..

2 Commits

Author SHA1 Message Date
af58391164 Prepare 0.2.0
All checks were successful
continuous-integration/drone/tag Build is passing
2023-12-10 11:41:34 +01:00
3110840017 Fix use of API token, without login 2023-12-10 11:40:44 +01:00
3 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,9 @@ class HappyDomain:
self.baseurl = scheme + "://" + host + ":" + str(port) + baseurl self.baseurl = scheme + "://" + host + ":" + str(port) + baseurl
self.token = token self.token = token
if self.token is not None:
self.session.headers.update({'Authorization': 'Bearer ' + self.token})
def login(self, username, password): def login(self, username, password):
r = self.session.post( r = self.session.post(
self.baseurl + "/api/auth", self.baseurl + "/api/auth",

View File

@ -1,6 +1,6 @@
[project] [project]
name = "happydomain" name = "happydomain"
version = "0.1.1" version = "0.2.0"
authors = [ authors = [
{ name="happyDomain's team", email="contact+pypi@happydomain.org" }, { name="happyDomain's team", email="contact+pypi@happydomain.org" },
] ]

View File

@ -8,7 +8,7 @@ try:
except ImportError: except ImportError:
from distutils.core import setup from distutils.core import setup
version = "0.1.0" version = "0.2.0"
setup( setup(
name = "happydomain", name = "happydomain",