Skip to content

Commit fd8b300

Browse files
committed
Augment package building to pick up VERSION
1 parent 0b3865a commit fd8b300

62 files changed

Lines changed: 228 additions & 1 deletion

File tree

Some content is hidden

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

src/amuse/rfi/tools/dir_templates/pyproject-base.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ distance = "{{next_version}}.dev{{distance}}+{{vcs}}{{rev}}"
2424
dirty = "{{base_version}}+d{{build_date:%Y%m%d}}"
2525
distance-dirty = "{{next_version}}.dev{{distance}}+{{vcs}}{{rev}}.d{{build_date:%Y%m%d}}"
2626

27+
[tool.versioningit.vcs]
28+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_{code}/support/shared" }
29+
2730
[tool.hatch.build]
2831
skip-excluded-dirs = true
2932

@@ -38,7 +41,7 @@ exclude = [
3841
artifacts = ["amuse_{code}/{code}_worker"]
3942

4043
[tool.pytest.ini_options]
41-
pythonpath = ["amuse_{code}/tests/", "../../../../../tests"]
44+
pythonpath = ["amuse_{code}/tests/"]
4245

4346
testpaths = ["amuse_{code}/tests"]
4447

src/amuse/rfi/tools/dir_templates/pyproject-extra.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ distance = "{{next_version}}.dev{{distance}}+{{vcs}}{{rev}}"
2222
dirty = "{{base_version}}+d{{build_date:%Y%m%d}}"
2323
distance-dirty = "{{next_version}}.dev{{distance}}+{{vcs}}{{rev}}.d{{build_date:%Y%m%d}}"
2424

25+
[tool.versioningit.vcs]
26+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_{code}/support/shared" }
27+
2528
[tool.hatch.build]
2629
skip-excluded-dirs = true
2730

src/amuse_aarsethzare/packages/amuse-aarsethzare/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_aarsethzare/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

src/amuse_adaptb/packages/amuse-adaptb/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_adaptb/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

src/amuse_athena/packages/amuse-athena/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_athena/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

src/amuse_bhtree/packages/amuse-bhtree/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_bhtree/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

src/amuse_brutus/packages/amuse-brutus/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_brutus/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

src/amuse_bse/packages/amuse-bse/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_bse/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

src/amuse_capreole/packages/amuse-capreole/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_capreole/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

src/amuse_etics/packages/amuse-etics-cuda/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ distance = "{next_version}.dev{distance}+{vcs}{rev}"
2121
dirty = "{base_version}+d{build_date:%Y%m%d}"
2222
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
2323

24+
[tool.versioningit.vcs]
25+
method = { module = "version_helper", value = "get_amuse_version", module-dir = "amuse_etics/support/shared" }
26+
2427
[tool.hatch.build]
2528
skip-excluded-dirs = true
2629

0 commit comments

Comments
 (0)