Skip to content

Commit

Permalink
set version dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
billbrod committed Jan 21, 2025
1 parent ec5b381 commit b0849ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@ docs/data/
# rst generated files
docs/stubs


# created automatically by setuptools.scm, don't track
src/nemos/version.py
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "nemos"
version = "0.2.0"
dynamic = ["version"]
authors = [{name = "nemos authors"}]
description = "NEural MOdelS, a statistical modeling framework for neuroscience."
readme = "README.md"
Expand Down Expand Up @@ -37,6 +37,10 @@ dependencies = [
where = ["src"] # The directory where package modules are located
include = ["nemos"] # The specific package(s) to include in the distribution

[tool.setuptools_scm]
write_to = "src/nemos/version.py"
version_scheme = 'python-simplified-semver'
local_scheme = 'no-local-version'

# Define optional dependencies for the project
[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/nemos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
__version__ = "0.2.0"
from .version import version as __version__

from . import (
basis,
Expand Down

0 comments on commit b0849ac

Please sign in to comment.