From 7d04c9da7cef8314c5568d1eca14cd358a6e9a1d Mon Sep 17 00:00:00 2001 From: ilan-gold Date: Wed, 4 Dec 2024 16:33:35 +0100 Subject: [PATCH] (fix): use `src` packaging (properly) --- .gitignore | 2 +- pyproject.toml | 4 ++-- .../generate_tiff_offsets}/__init__.py | 0 {generate_tiff_offsets => src/generate_tiff_offsets}/cli.py | 0 .../generate_tiff_offsets}/generate_tiff_offsets.py | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename {generate_tiff_offsets => src/generate_tiff_offsets}/__init__.py (100%) rename {generate_tiff_offsets => src/generate_tiff_offsets}/cli.py (100%) rename {generate_tiff_offsets => src/generate_tiff_offsets}/generate_tiff_offsets.py (100%) diff --git a/.gitignore b/.gitignore index 175e455..07f99cf 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ wheels/ *.egg-info/ .installed.cfg *.egg -/generate_tiff_offsets/_version.py +/src/generate_tiff_offsets/_version.py # PyInstaller # Usually these files are written by a python script from a template diff --git a/pyproject.toml b/pyproject.toml index 009c948..fa09332 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,6 @@ test = ["pytest"] [tool.hatch.version] source = "vcs" [tool.hatch.build.hooks.vcs] -version-file = "generate_tiff_offsets/_version.py" +version-file = "src/generate_tiff_offsets/_version.py" [tool.hatch.build.targets.wheel] -packages = ["src/anndata", "src/testing"] \ No newline at end of file +packages = ["src/generate_tiff_offsets"] \ No newline at end of file diff --git a/generate_tiff_offsets/__init__.py b/src/generate_tiff_offsets/__init__.py similarity index 100% rename from generate_tiff_offsets/__init__.py rename to src/generate_tiff_offsets/__init__.py diff --git a/generate_tiff_offsets/cli.py b/src/generate_tiff_offsets/cli.py similarity index 100% rename from generate_tiff_offsets/cli.py rename to src/generate_tiff_offsets/cli.py diff --git a/generate_tiff_offsets/generate_tiff_offsets.py b/src/generate_tiff_offsets/generate_tiff_offsets.py similarity index 100% rename from generate_tiff_offsets/generate_tiff_offsets.py rename to src/generate_tiff_offsets/generate_tiff_offsets.py