Skip to content

Commit

Permalink
chore: use _version.py for version numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjholland committed Jan 1, 2025
1 parent d3eef79 commit b621de0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
3 changes: 2 additions & 1 deletion pyprobe/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""The PyProBE package."""
from .cell import Cell, __version__, load_archive, make_cell_list # noqa: F401
from ._version import __version__ # noqa: F401
from .cell import Cell, load_archive, make_cell_list # noqa: F401
from .dashboard import launch_dashboard # noqa: F401
from .logger import configure_logging # noqa: F401
from .plot import Plot # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions pyprobe/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.1.4"
3 changes: 1 addition & 2 deletions pyprobe/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
import polars as pl
from pydantic import BaseModel, Field, field_validator, validate_call

from pyprobe._version import __version__
from pyprobe.cyclers import arbin, basecycler, basytec, biologic, maccor, neware
from pyprobe.filters import Procedure
from pyprobe.readme_processor import process_readme
from pyprobe.utils import PyBaMMSolution

logger = logging.getLogger(__name__)

__version__ = "1.1.0"


class Cell(BaseModel):
"""A class for a cell in a battery experiment."""
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "PyProBE-Data"
authors = [
{name = "Thomas Holland"},
]
version = "1.1.0"
dynamic = ["version"]
requires-python = ">=3.11,<3.13"
license = { file = "LICENSE" }
dependencies = [
Expand Down Expand Up @@ -71,6 +71,9 @@ exclude = [
"examples/*"
]

[tool.hatch.version]
path = "pyprobe/_version.py"

[tool.mypy]
disallow_any_explicit = false
disallow_any_generics = true
Expand Down
10 changes: 0 additions & 10 deletions tests/test_package.py

This file was deleted.

2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b621de0

Please sign in to comment.