Skip to content

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel committed Nov 9, 2023
1 parent 24b2819 commit 6dad969
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def create_new_patch_release():
except subprocess.CalledProcessError as err:
if err.stderr.decode("utf8").startswith("HTTP 404:"):
# The project doesn't have any releases yet.
new_version_number = "1.0.4"
new_version_number = "1.0.5"
else:
raise
else:
Expand Down
10 changes: 6 additions & 4 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Change Log / journal des changements

# 22/08/2023
## IMPLEMENTATION OF CHORUS API

# 09/11/2023
## Fix base64 encoding method, Allow user can pass enconding

# 23/08/2023
## Add Etat courant du flux pour la methode consulter CR
## Reformat code and documentation
## Reformat code and documentation

# 22/08/2023
## IMPLEMENTATION OF CHORUS API
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Chorus API Package [https://piste.gouv.fr](https://piste.gouv.fr)
pip install chorus-api
```

## 1.0.5
#### CHANGES
* Fix **_base_64_encode_file_** method in utils
* Allow pass encoding

## 1.0.4

#### CHANGES
Expand Down
4 changes: 2 additions & 2 deletions chorusapi/utils/chorus_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def base_64_encode(data: str):
return base64.b64encode(data.encode()).decode()


def base_64_encode_file(filepath):
return base_64_encode(open(filepath).read())
def base_64_encode_file(filepath, encoding="ISO-8859-1"):
return base_64_encode(open(filepath, encoding=encoding).read())


def base_64_decode(data: str):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = chorus-api
version = 1.0.4
version = 1.0.5
author = Joel ONIPOH
author_email = technique@cinego.net
description = Chorus API Package https://piste.gouv.fr
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="chorus-api",
version="1.0.4",
version="1.0.5",
author="Joel ONIPOH",
author_email="technique@cinego.net",
description="Chorus API Package https://piste.gouv.fr",
Expand Down

0 comments on commit 6dad969

Please sign in to comment.