From 79cdf3d934ad53220efa66a7723f6d9eba09ae2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7oise=20Conil?= <francoise.conil@insa-lyon.fr> Date: Thu, 3 Nov 2022 19:34:31 +0100 Subject: [PATCH] Remove dash from project name and directory --- pyproject.toml | 2 +- .../__init__.py | 0 .../data/__init__.py | 0 .../get_oms_data.py | 2 +- .../get_population_info.py | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename src/{import-resources-example => import_resources_example}/__init__.py (100%) rename src/{import-resources-example => import_resources_example}/data/__init__.py (100%) rename src/{import-resources-example => import_resources_example}/get_oms_data.py (94%) rename src/{import-resources-example => import_resources_example}/get_population_info.py (84%) diff --git a/pyproject.toml b/pyproject.toml index 15581fd..acbc24c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["flit_core>=3.2"] build-backend = "flit_core.buildapi" [project] -name = "import-resources-example" +name = "import_resources_example" version = "0.0.1" authors = [ { name="Françoise CONIL", email="francoise.conil@cnrs.fr" }, diff --git a/src/import-resources-example/__init__.py b/src/import_resources_example/__init__.py similarity index 100% rename from src/import-resources-example/__init__.py rename to src/import_resources_example/__init__.py diff --git a/src/import-resources-example/data/__init__.py b/src/import_resources_example/data/__init__.py similarity index 100% rename from src/import-resources-example/data/__init__.py rename to src/import_resources_example/data/__init__.py diff --git a/src/import-resources-example/get_oms_data.py b/src/import_resources_example/get_oms_data.py similarity index 94% rename from src/import-resources-example/get_oms_data.py rename to src/import_resources_example/get_oms_data.py index c46e0e7..babc80f 100644 --- a/src/import-resources-example/get_oms_data.py +++ b/src/import_resources_example/get_oms_data.py @@ -47,7 +47,7 @@ def get_oms_data(): """ studies = [] - with resources.open_text("example_package_import.data", "COVID19-web.27-07-2022.csv") as f: + with resources.open_text("import_resources_example.data", "COVID19-web.27-07-2022.csv") as f: rows = csv.DictReader(f) for row in rows: diff --git a/src/import-resources-example/get_population_info.py b/src/import_resources_example/get_population_info.py similarity index 84% rename from src/import-resources-example/get_population_info.py rename to src/import_resources_example/get_population_info.py index cf2d057..c1e6bdb 100644 --- a/src/import-resources-example/get_population_info.py +++ b/src/import_resources_example/get_population_info.py @@ -7,7 +7,7 @@ def extract_population_general_info(): locations = set() - with resources.open_text("example_package_import.data", "WPP2022_TotalPopulationBySex.csv") as f: + with resources.open_text("import_resources_example.data", "WPP2022_TotalPopulationBySex.csv") as f: rows = csv.DictReader(f) for row in rows: -- GitLab