Skip to content

Commit

Permalink
Resolve packaging error (#491)
Browse files Browse the repository at this point in the history
* Resolve missing top-level scico package

* Improve version number construction function
  • Loading branch information
bwohlberg authored Dec 22, 2023
1 parent 6fe11c7 commit 85c1a1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scico/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def package_version(split: bool = False) -> Union[str, Tuple[str, str]]: # prag
Package version string or tuple of strings.
"""
version = init_variable_assign_value("__version_")
if re.match(r"^[0-9\.]+$", version): # don't extend purely numeric version numbers
# don't extend purely numeric version numbers, possibly ending with post<n>
if re.match(r"^[0-9\.]+(post[0-9]+)?$", version):
git_hash = None
else:
git_hash = current_git_hash()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
version = package_version()
# Add argument exclude=["test", "test.*"] to exclude test subpackage
packages = find_namespace_packages(where="scico")
packages = [f"scico.{m}" for m in packages]
packages = ["scico"] + [f"scico.{m}" for m in packages]


longdesc = """
Expand Down

0 comments on commit 85c1a1c

Please sign in to comment.