Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Sep 12, 2023
2 parents 368fc1f + 3b5c02d commit 4855eec
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -93,4 +93,4 @@ ENV TAXHUB_STATIC_FOLDER=/dist/static

EXPOSE 5000

CMD ["gunicorn", "apptax.app:create_app()", "--bind=0.0.0.0:5000", "--access-logfile=-", "--error-logfile=-"]
CMD ["gunicorn", "apptax.app:create_app()", "--bind=0.0.0.0:5000", "--access-logfile=-", "--error-logfile=-", "--reload", "--reload-extra-file=config/config.py"]
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
1.12.0
1.12.1
4 changes: 1 addition & 3 deletions apptax/taxonomie/commands/migrate_taxref/commands_v16.py
Expand Up @@ -159,9 +159,7 @@ def import_data_taxref_v16():
db.session.execute(query)
db.session.commit()

with open_remote_file(
base_url, "TAXREF_v16_2022.zip", open_fct=ZipFile, data_dir="tmp"
) as archive:
with open_remote_file(base_url, "TAXREF_v16_2022.zip", open_fct=ZipFile) as archive:
with archive.open("TAXREFv16.txt") as f:
logger.info("Insert TAXREFv16 into taxonomie.import_taxref table…")
copy_from_csv(
Expand Down
14 changes: 14 additions & 0 deletions docs/changelog.md
@@ -1,3 +1,17 @@
1.12.1 (2023-09-12)
===================

**🐛 Corrections**

* [Migration Taxref] Ajout de scripts SQL manquants dans le fichier `setup.py` (#430)
* [Migration Taxref] Ne pas spécifier de répertoire de fichier de données dans la fonction `open_remote_file(...,"TAXREF_v16_2022.zip", ...)`, afin de pouvoir utiliser la variable d'environnement `DATA_PATH` (#430)


**💻 Développement**

* Docker : redémarage de flask suite à modification de config.py


1.12.0 (2023-07-11)
===================

Expand Down
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -20,9 +20,11 @@
version=version,
packages=setuptools.find_packages(where=".", include=["apptax*"]),
package_data={
"apptax": ["templates/*.html"],
"apptax": [
"templates/*.html",
],
"apptax.migrations": ["alembic.ini", "script.py.mako", "data/*.sql"],
"apptax.taxonomie.commands.migrate_taxref": ["data/*.sql"],
"apptax.taxonomie.commands.migrate_taxref": ["data/*.sql", "data/*/*.sql"],
},
install_requires=(
list(open("requirements-common.in", "r")) + list(open("requirements-dependencies.in", "r"))
Expand Down

0 comments on commit 4855eec

Please sign in to comment.