-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from GEOUNED-org/dev
Merge dev to main
- Loading branch information
Showing
12 changed files
with
162 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
[build-system] | ||
requires = ["setuptools >= 69.5.1", "setuptools_scm[toml]>=8.1.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "geouned" | ||
version = "1.0.1" | ||
license = {file = "LICENSE.txt"} | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name="Juan-Pablo Catalan", email="[email protected]" }, | ||
{ name="Patrick Sauvan", email="[email protected]" }, | ||
|
@@ -12,9 +17,10 @@ maintainers = [ | |
{ name="Francisco Ogando", email="[email protected]" }, | ||
{ name="Javier Alguacil", email="[email protected]" }, | ||
] | ||
description = "Conversion tool from CAD to CGS/CGS to CAD for Monte Carlo particle transport codes (MCNP & OpenMC)" | ||
description = "Conversion tool from CAD to CGS/CGS to CAD for Monte Carlo particle transport codes (OpenMC, Phits, Serpent, MCNP)" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
keywords = ["csg", "cad", "openmc", "serpent", "phits", "mcnp", "geometry"] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)", | ||
|
@@ -28,7 +34,7 @@ dependencies = [ | |
[project.urls] | ||
Homepage = "https://github.com/GEOUNED-org" | ||
Repository = "https://github.com/GEOUNED-org/GEOUNED" | ||
Documentation = "https://github.com/GEOUNED-org/GEOUNED/docs" | ||
Documentation = "https://geouned-org.github.io/GEOUNED/index.html" | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
|
@@ -47,3 +53,9 @@ geouned_cadtocsg = "geouned.GEOUNED.scripts.geouned_cadtocsg:main" | |
|
||
[tool.black] | ||
line-length = 128 | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/_version.py" | ||
|
||
[tool.setuptools] | ||
package-dir = {"" = "src"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import geouned | ||
|
||
|
||
def test_version(): | ||
"""Check that __version__ exists and is correctly formatted""" | ||
version = geouned.__version__ | ||
# Ensure it is given as a string | ||
assert isinstance(version, str) | ||
|
||
# develop is used as the default version name in the dockerfile | ||
if version != "develop": | ||
version_bits = version.split(".") | ||
assert len(version_bits) >= 2, f"Version number is {version}" | ||
# Ensure both of the first two parts is convertable to int | ||
# (The third/fourth part, if it exists, may be a development version) | ||
for bit in version_bits[:2]: | ||
assert bit.isdigit(), f"Version number is {version}" |