Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version via Git tags only #66

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[build-system]
requires = ["setuptools>=61"]
requires = ["setuptools>=61", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"


[project]
name = "cloudcasting"
version = "0.3.0"
dynamic = ["version"]
authors = [
{ name = "cloudcasting Maintainers", email = "[email protected]" },
]
Expand Down Expand Up @@ -60,6 +60,9 @@ dev = [
[tool.setuptools.package-data]
"cloudcasting" = ["data/*.zip"]

[tool.setuptools_scm]
write_to = "src/cloudcasting/_version.py"

[project.scripts]
cloudcasting = "cloudcasting.cli:app"

Expand Down
5 changes: 2 additions & 3 deletions src/cloudcasting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from __future__ import annotations

from importlib.metadata import version

from jaxtyping import install_import_hook

# Any module imported inside this `with` block, whose
Expand All @@ -19,6 +17,8 @@

from cloudcasting import cli, dataset, download, metrics

from ._version import version as __version__

__all__ = (
"__version__",
"download",
Expand All @@ -28,4 +28,3 @@
"validation",
"metrics",
)
__version__ = version(__name__)
1 change: 1 addition & 0 deletions src/cloudcasting/_version.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: str
Loading