Skip to content

Commit

Permalink
1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Nov 10, 2023
1 parent 278e531 commit d68c453
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ jobs:
generate_release_notes: true
name: lucit-licensing-python
prerelease: false
tag_name: 1.5.0
tag_name: 1.5.1
token: ${{ secrets.RELEASE_TOKEN }}
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

[How to upgrade to the latest version!](https://lucit-licensing-python.docs.lucit.tech/readme.html#installation-and-upgrade)

## 1.5.0.dev (development stage/unreleased/unstable)
## 1.5.1.dev (development stage/unreleased/unstable)

## 1.5.1
### Changed
- Using `dict.get()` instead of `try`

## 1.5.0
## Added
Expand Down
2 changes: 1 addition & 1 deletion dev_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class LTC:
def __init__(self, api_secret=None, license_token=None):
self.api_secret = api_secret
self.license_token = license_token
self.llm = LucitLicensingManager(api_secret=api_secret, license_token=license_token, license_profile="LUCIT",
self.llm = LucitLicensingManager(api_secret=api_secret, license_token=license_token, license_profile="BAD",
program_used="unicorn-binance-websocket-api", start=False)
self.sigterm = False

Expand Down
8 changes: 5 additions & 3 deletions lucit_licensing_python/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, api_secret: str = None, license_token: str = None,
parent_shutdown_function: Callable[[bool], bool] = None,
needed_license_type: str = None):
super().__init__()
self.module_version: str = "1.5.0"
self.module_version: str = "1.5.1"
license_ini_search: bool = False
if license_ini is None:
license_ini = "lucit_license.ini"
Expand Down Expand Up @@ -303,7 +303,9 @@ def run(self):
too_many_requests_errors = 0
while self.sigterm is False:
license_result = self.verify()
try:
print(f"license_result.get('license') = {license_result.get('license')}")
print(f"license_result.get('error') = {license_result.get('error')}")
if license_result.get('license') is not None:
if license_result['license']['licensed_product'] != self.needed_license_type:
info = f"License not usable, its issued for product " \
f"'{license_result['license']['licensed_product']}'. Please contact our support: " \
Expand All @@ -328,7 +330,7 @@ def run(self):
logger.critical(info)
self.close(close_api_session=False, not_approved_message=info, raise_exception=True)
break
except KeyError:
else:
if "403 Forbidden" in license_result['error']:
if "Forbidden - Timestamp not valid" in license_result['error']:
logger.error(f"Timestamp not valid - Syncing time ...")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lucit-licensing-python"
version = "1.5.0"
version = "1.5.1"
description = "LUCIT Licensing Client Module"
authors = ["LUCIT Systems and Development <info@lucit.tech>"]
license = "LSOSL - LUCIT Synergetic Open Source License"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'lucit_licensing_python/manager.py'],
annotate=False),
name='lucit-licensing-python',
version="1.5.0",
version="1.5.1",
author="LUCIT Systems and Development",
author_email='info@lucit.tech',
url="https://github.com/LUCIT-Systems-and-Development/lucit-licensing-python",
Expand Down
2 changes: 1 addition & 1 deletion sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = '1.5.0'
release = '1.5.1'

html_last_updated_fmt = "%b %d %Y at %H:%M (CET)"

Expand Down

0 comments on commit d68c453

Please sign in to comment.