Skip to content

Commit

Permalink
automated versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkraemer committed Feb 7, 2022
1 parent 6d1c770 commit cf87339
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

src/probfindiff/_version.py
.idea

# Byte-compiled / optimized / DLL files
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
requires = [
"setuptools>=42",
"wheel",
"setuptools_scm[toml]",
]
build-backend = "setuptools.build_meta"


[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/probfindiff/_version.py"
write_to_template = """
# pylint: skip-file
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version = \"{version}\"
"""

# Configuration of the black code style checker
# For more information about Black's usage of this file, see
# https://github.com/psf/black#pyprojecttoml
Expand Down
2 changes: 2 additions & 0 deletions src/probfindiff/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Probabilistic numerical finite difference methods."""


from ._toplevel_api import (
FiniteDifferenceScheme,
backward,
Expand All @@ -9,6 +10,7 @@
forward,
from_grid,
)
from ._version import version as __version__

__all__ = [
"differentiate",
Expand Down

0 comments on commit cf87339

Please sign in to comment.