Skip to content

Commit

Permalink
Automatically use Git version
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Apr 25, 2022
1 parent 45853bd commit 8c9357c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ir_axioms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from logging import basicConfig, Logger, getLogger

from class_registry import SortedClassRegistry
from importlib_metadata import version

__version__ = "0.1.1"
__version__ = version("ir_axioms")

basicConfig()
logger: Logger = getLogger(__name__)
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[build-system]
requires = ["setuptools>=50", "wheel"]
requires = ["setuptools>=50", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
log_cli = "True"
filterwarnings = [
'ignore::DeprecationWarning',
]
]

[tool.setuptools_scm]
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ install_requires =
typing-extensions>=4.0,==4.*
cached-property>=1.5,==1.*
annoy>=1.17,==1.*
importlib-metadata>=4.0,==4.*

[options.extras_require]
test =
Expand Down

0 comments on commit 8c9357c

Please sign in to comment.