Skip to content

Commit

Permalink
Merge pull request #95 from lpoaura/fix_94_importlib_TypeError
Browse files Browse the repository at this point in the history
fix #94, change __name__ to __package__
  • Loading branch information
lpofredc authored Oct 8, 2024
2 parents 0cd63cb + ce14c6b commit b7eebc1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this

<!-- ## Unreleased [{version_tag}](https://github.com/opengisch/qgis-plugin-ci/releases/tag/{version_tag}) - YYYY-MM-DD -->


## 1.6.8 - 2024-10-08

### Fixes

- TypeError while using new importlib resources, fix #94


## 1.6.7 - 2024-10-07

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion gn2pg/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def init(file: str) -> None:
"""

# Get the path to the template file
toml_src = importlib.resources.files(__name__).joinpath("data", "gn2pgconfig.toml")
toml_src = importlib.resources.files(__package__).joinpath("data", "gn2pgconfig.toml")

toml_dst = str(ENVDIR / file)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "gn2pg_client"
packages = [{ include = "gn2pg" }]
version = "1.6.7"
version = "1.6.8"
description = "Import tool from GeoNature to a PostgreSQL database through Export module API (client side)"
authors = ["lpofredc <frederic.cloitre@lpo.fr>"]
maintainers = ["lpofredc <frederic.cloitre@lpo.fr>"]
Expand Down

0 comments on commit b7eebc1

Please sign in to comment.