diff --git a/src/.gitattributes b/code/.gitattributes similarity index 100% rename from src/.gitattributes rename to code/.gitattributes diff --git a/src/README.md b/code/README.md similarity index 100% rename from src/README.md rename to code/README.md diff --git a/src/files.py b/code/files.py similarity index 100% rename from src/files.py rename to code/files.py diff --git a/src/get_raw.py b/code/get_raw.py similarity index 100% rename from src/get_raw.py rename to code/get_raw.py diff --git a/src/kernels.py b/code/kernels.py similarity index 100% rename from src/kernels.py rename to code/kernels.py diff --git a/src/packages.py b/code/packages.py similarity index 100% rename from src/packages.py rename to code/packages.py diff --git a/src/tests/__init__.py b/code/tests/__init__.py similarity index 100% rename from src/tests/__init__.py rename to code/tests/__init__.py diff --git a/src/tests/test_validate_date_col.py b/code/tests/test_validate_date_col.py similarity index 100% rename from src/tests/test_validate_date_col.py rename to code/tests/test_validate_date_col.py diff --git a/src/tests/test_validate_files.py b/code/tests/test_validate_files.py similarity index 100% rename from src/tests/test_validate_files.py rename to code/tests/test_validate_files.py diff --git a/src/tests/test_validate_kernels.py b/code/tests/test_validate_kernels.py similarity index 100% rename from src/tests/test_validate_kernels.py rename to code/tests/test_validate_kernels.py diff --git a/src/tests/test_validate_packages.py b/code/tests/test_validate_packages.py similarity index 100% rename from src/tests/test_validate_packages.py rename to code/tests/test_validate_packages.py diff --git a/src/tests/test_validate_unique_installs.py b/code/tests/test_validate_unique_installs.py similarity index 100% rename from src/tests/test_validate_unique_installs.py rename to code/tests/test_validate_unique_installs.py diff --git a/src/unique.py b/code/unique.py similarity index 100% rename from src/unique.py rename to code/unique.py diff --git a/justfile b/justfile index df6326c..77844db 100644 --- a/justfile +++ b/justfile @@ -5,16 +5,16 @@ clean: files kernels unique packages test: files: - python src/files.py input output + python code/files.py input output kernels: - python src/kernels.py input output + python code/kernels.py input output unique: - python src/unique.py input output + python code/unique.py input output packages: - python src/packages.py input output + python code/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} +%F) | sed -i '/CHANGELOG/r /dev/stdin' CHANGELOG.md + printf "\n## %s\n\n- auto generated\n" ${date} | 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 src/get_raw.py --dir input --delay 1 2018-05-09 + uv run python code/get_raw.py --dir input --delay 1 2018-05-09 diff --git a/pyproject.toml b/pyproject.toml index 23a2a93..6736d61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,13 @@ 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/uv.lock b/uv.lock index c1c3b76..95f738a 100644 --- a/uv.lock +++ b/uv.lock @@ -456,7 +456,7 @@ wheels = [ [[package]] name = "popcorn-dataset" version = "0.1.0" -source = { virtual = "." } +source = { editable = "." } dependencies = [ { name = "aiofiles" }, { name = "aiohttp" },