Skip to content

Commit

Permalink
Merge pull request #280 from ajhynes7/fix_version
Browse files Browse the repository at this point in the history
Fix __version__ attribute
  • Loading branch information
ajhynes7 committed Sep 19, 2021
2 parents e0802b3 + 9da302a commit 720ec27
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
8 changes: 8 additions & 0 deletions HISTORY.rst
Expand Up @@ -3,6 +3,14 @@ History
=======


6.1.1 (2021-09-11)
------------------

Fixes
~~~~~
- Add code to `skspatial.__init__.py` to keep the __version__ attribute in sync with the version in `pyproject.toml`.


6.1.0 (2021-07-25)
------------------

Expand Down
11 changes: 7 additions & 4 deletions pyproject.toml
@@ -1,7 +1,7 @@
[tool.poetry]

name = "scikit-spatial"
version = "6.1.0"
version = "6.1.1"
description = "Spatial objects and computations based on NumPy arrays."
license = "BSD-3-Clause"

Expand Down Expand Up @@ -35,6 +35,9 @@ python = "^3.7"
numpy = "^1.20"
matplotlib = "^3"

# To keep __version__ in sync with the version in this file.
importlib-metadata = { version = "^1.0", python = "<3.8" }

# Pre-commit
pre-commit = { version = "2.11.1", optional = true }

Expand All @@ -44,10 +47,10 @@ pytest-cov = { version = "2.11.1", optional = true }
hypothesis = { version = "6.8.1", optional = true }

# Docs
Sphinx = { version = "3.5.2", optional = true }
Sphinx = { version = "4.2.0", optional = true }
numpydoc = { version = "1.1.0", optional = true }
sphinx-bootstrap-theme = { version = "0.7.1", optional = true }
sphinx-gallery = { version = "0.8.2", optional = true }
sphinx-bootstrap-theme = { version = "0.8.0", optional = true }
sphinx-gallery = { version = "0.9.0", optional = true }


[build-system]
Expand Down
11 changes: 9 additions & 2 deletions src/skspatial/__init__.py
@@ -1,5 +1,12 @@
"""Top-level package for scikit-spatial."""

__author__ = "Andrew Hynes"
__email__ = 'andrewjhynes@gmail.com'
__version__ = '6.0.1'
__email__ = "andrewjhynes@gmail.com"

try:
import importlib.metadata as importlib_metadata # type: ignore

except ModuleNotFoundError:
import importlib_metadata # type: ignore

__version__ = importlib_metadata.version("scikit-spatial")

0 comments on commit 720ec27

Please sign in to comment.