Skip to content

Commit c70b3ff

Browse files
authored
Merge pull request #1148 from LourensVeen/version-archives-for-release
Version archives for release
2 parents 9171ddf + fd8b300 commit c70b3ff

64 files changed

Lines changed: 235 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.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VERSION export-subst

VERSION

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file is used to record the version of AMUSE in a .tar.gz archive made using git
2+
# archive. The build system will pick it up from here if it is not building from a git
3+
# repository but from that tar.gz file.
4+
5+
$Format:%(describe:match=v*)$
6+

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

0 commit comments

Comments
 (0)