Skip to content

Commit deee390

Browse files
Move parcels code to src layout (#2311)
* Update config to src layout * Move files to src
1 parent 3a05d61 commit deee390

61 files changed

Lines changed: 4 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Profile.prof
2020
.eggs/*
2121
parcels.egg-info/*
2222
dist/parcels*.egg
23-
parcels/_version_setup.py
23+
src/parcels/_version_setup.py
2424
.pytest_cache
2525
.hypothesis
2626
.coverage

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ lxml = "*" # in CI
9393
types-tqdm = "*"
9494

9595
[feature.typing.tasks]
96-
typing = "mypy parcels --install-types"
96+
typing = "mypy src/parcels --install-types"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ Tracker = "https://github.com/OceanParcels/parcels/issues"
4242

4343

4444
[tool.setuptools]
45+
package-dir = { "" = "src" }
4546
packages = ["parcels"]
4647

4748
[tool.setuptools_scm]
48-
write_to = "parcels/_version_setup.py"
49+
write_to = "src/parcels/_version_setup.py"
4950
local_scheme = "no-local-version"
5051

5152
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)