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

Replace _version_generated.py for _version.py #80

Merged
merged 2 commits into from
Mar 22, 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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MANIFEST
dask-worker-space
build/
dist/
choclo/_version_generated.py
choclo/_version.py
doc/_build
doc/api/generated
doc/tutorials
3 changes: 3 additions & 0 deletions choclo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
# Import functions/classes to make the public API
from . import dipole, point, prism
from ._version import __version__

# Append a leading "v" to the generated version by setuptools_scm
__version__ = f"v{__version__}"
16 changes: 0 additions & 16 deletions choclo/_version.py

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"
write_to = "choclo/_version_generated.py"
write_to = "choclo/_version.py"

# Make sure isort and Black are compatible
[tool.isort]
Expand Down
Loading