diff --git a/justfile b/justfile index 77844db..df6326c 100644 --- a/justfile +++ b/justfile @@ -5,16 +5,16 @@ clean: files kernels unique packages test: files: - python code/files.py input output + python src/files.py input output kernels: - python code/kernels.py input output + python src/kernels.py input output unique: - python code/unique.py input output + python src/unique.py input output packages: - python code/packages.py input output + python src/packages.py input output versioned: #!/usr/bin/env bash @@ -26,7 +26,7 @@ versioned: -o "input/*.json" -o "output/*.csv" \ just getraw clean validate if [ "$lastcommit" != $(git log -1 --format=%H) ]; then - printf "\n## %s\n\n- auto generated\n" ${date} | sed -i '/CHANGELOG/r /dev/stdin' CHANGELOG.md + printf "\n## %s\n\n- auto generated\n" ${date} +%F) | sed -i '/CHANGELOG/r /dev/stdin' CHANGELOG.md git add CHANGELOG.md && git commit -v --no-edit --amend git tag -a "${date}" -m "Release ${date}" fi @@ -40,4 +40,4 @@ validate: # 2018-05-09 is the first date of recording available getraw: uv sync --locked - uv run python code/get_raw.py --dir input --delay 1 2018-05-09 + uv run python src/get_raw.py --dir input --delay 1 2018-05-09 diff --git a/pyproject.toml b/pyproject.toml index 6736d61..23a2a93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,13 +10,6 @@ dependencies = [ "yarl>=1.22.0", ] -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.build.targets.wheel] -packages = ["code"] - [dependency-groups] dev = [ "dataframely>=1.13.0", diff --git a/code/.gitattributes b/src/.gitattributes similarity index 100% rename from code/.gitattributes rename to src/.gitattributes diff --git a/code/README.md b/src/README.md similarity index 100% rename from code/README.md rename to src/README.md diff --git a/code/files.py b/src/files.py similarity index 100% rename from code/files.py rename to src/files.py diff --git a/code/get_raw.py b/src/get_raw.py similarity index 100% rename from code/get_raw.py rename to src/get_raw.py diff --git a/code/kernels.py b/src/kernels.py similarity index 100% rename from code/kernels.py rename to src/kernels.py diff --git a/code/packages.py b/src/packages.py similarity index 100% rename from code/packages.py rename to src/packages.py diff --git a/code/tests/__init__.py b/src/tests/__init__.py similarity index 100% rename from code/tests/__init__.py rename to src/tests/__init__.py diff --git a/code/tests/test_validate_date_col.py b/src/tests/test_validate_date_col.py similarity index 100% rename from code/tests/test_validate_date_col.py rename to src/tests/test_validate_date_col.py diff --git a/code/tests/test_validate_files.py b/src/tests/test_validate_files.py similarity index 100% rename from code/tests/test_validate_files.py rename to src/tests/test_validate_files.py diff --git a/code/tests/test_validate_kernels.py b/src/tests/test_validate_kernels.py similarity index 100% rename from code/tests/test_validate_kernels.py rename to src/tests/test_validate_kernels.py diff --git a/code/tests/test_validate_packages.py b/src/tests/test_validate_packages.py similarity index 100% rename from code/tests/test_validate_packages.py rename to src/tests/test_validate_packages.py diff --git a/code/tests/test_validate_unique_installs.py b/src/tests/test_validate_unique_installs.py similarity index 100% rename from code/tests/test_validate_unique_installs.py rename to src/tests/test_validate_unique_installs.py diff --git a/code/unique.py b/src/unique.py similarity index 100% rename from code/unique.py rename to src/unique.py diff --git a/uv.lock b/uv.lock index 95f738a..c1c3b76 100644 --- a/uv.lock +++ b/uv.lock @@ -456,7 +456,7 @@ wheels = [ [[package]] name = "popcorn-dataset" version = "0.1.0" -source = { editable = "." } +source = { virtual = "." } dependencies = [ { name = "aiofiles" }, { name = "aiohttp" },