Skip to content

Commit

Permalink
Use build_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDuffield committed Apr 16, 2024
1 parent d7831c2 commit 1660457
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.3.7
hooks:
- id: ruff
args: ["--fix"]
Expand Down
4 changes: 4 additions & 0 deletions posteriors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@

del logging
del logger

from importlib.metadata import version

__version__ = version("posteriors")
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "posteriors"
version = "0.0.1"
version = "0.0.2"
description = "Uncertainty quantification with PyTorch"
readme = "README.md"
requires-python =">=3.9"
Expand All @@ -25,4 +25,8 @@ packages = ["posteriors"]

[tool.ruff]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F821", "E402"]
"__init__.py" = ["F401", "F821", "E402"]

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

0 comments on commit 1660457

Please sign in to comment.