From 520f31a3973a6baf5cb2c2059c6cda9f877e77b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Garc=C3=ADa=20Garz=C3=B3n?= Date: Tue, 10 Oct 2023 05:36:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20pyproject:=20version=20in=20pack?= =?UTF-8?q?age,=20properly=20find=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 3 +++ wavefile/__init__.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0ffc883..1b55237 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,9 @@ Documentation = "https://readthedocs.org" Repository = "https://github.com/vokimon/python-wavefile" Changelog = "https://github.com/vokimon/python-wavefile/blob/master/CHANGELOG.md" +[tool.setuptools.packages] +find = {} + [tool.coverage.run] relative_files = true branch = true diff --git a/wavefile/__init__.py b/wavefile/__init__.py index e0f884e..4594971 100644 --- a/wavefile/__init__.py +++ b/wavefile/__init__.py @@ -1 +1,4 @@ from .wavefile import * +import importlib.metadata +__version__ = importlib.metadata.version('wavefile') +