Skip to content

Commit

Permalink
Add version for packaging
Browse files Browse the repository at this point in the history
Added the version of package in the pyproject.toml file

Signed-off-by: Sorin Birchi <[email protected]>
  • Loading branch information
Sorin Birchi committed Jun 11, 2024
1 parent b6de52a commit 3afd222
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions brian2units/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '1.1.dev3+g6e2142b.d20240611'
__version_tuple__ = version_tuple = (1, 1, 'dev3', 'g6e2142b.d20240611')
__version__ = version = '1.0.post0'
__version_tuple__ = version_tuple = (1, 0)
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ include = ["brian2units*"]
[tool.setuptools.dynamic]
readme = {file = 'README.md', content-type = "text/markdown"}

#[tool.setuptools_scm]
#version_scheme = 'pre-release'
#local_scheme = 'no-local-version'
#write_to = 'brian2units/_version.py'
[tool.setuptools_scm]
version_scheme = 'post-release'
local_scheme = 'no-local-version'
write_to = 'brian2units/_version.py'
#tag_regex = '^(?P<version>\d+(?:\.\d+){0,2}[^\+]*(?:\+.*)?)$'
#fallback_version = 'unknown'
fallback_version = 'unknown'

[tool.black]
target-version = ['py310']
Expand Down

0 comments on commit 3afd222

Please sign in to comment.