From c3c8ba2908d18ac5a14a4d59d2b155af14d7f718 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 23 Nov 2024 18:47:20 -0800 Subject: [PATCH] Updated pyproject.toml to poetry --- pyproject.toml | 50 +++++++++++++++++++-------------------------- wavinfo/__init__.py | 3 --- 2 files changed, 21 insertions(+), 32 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 500d65e..a566528 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,16 @@ -[build-system] -requires = ["flit_core >=3.2,<4"] -build-backend = "flit_core.buildapi" +# https://python-poetry.org/docs/pyproject/ -[project] +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" + +[tool.poetry] name = "wavinfo" -authors = [{name = "Jamie Hardt", email = "jamiehardt@me.com"}] +version = "3.0.1" +description = "Probe WAVE files for all metadata" +authors = ["Jamie Hardt "] +license = "MIT" readme = "README.md" -dynamic = ["version", "description"] -requires-python = "~=3.8" classifiers = [ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: MIT License', @@ -20,9 +23,10 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13" ] -dependencies = [ - "lxml ~= 5.3.0" -] +homepage = "https://github.com/iluvcapra/wavinfo" +repository = "https://github.com/iluvcapra/wavinfo.git" +documentation = "https://wavinfo.readthedocs.io/" +urls.Tracker = 'https://github.com/iluvcapra/wavinfo/issues' keywords = [ 'waveform', 'metadata', @@ -35,29 +39,17 @@ keywords = [ 'broadcast' ] -[tool.flit.module] -name = "wavinfo" +[tool.poetry.extras] +doc = ['sphinx', 'sphinx_rtd_theme'] -[project.optional-dependencies] -doc = [ - 'sphinx >= 5.3.0', - 'sphinx_rtd_theme >= 1.1.1', -] - -[project.urls] -Home = "https://github.com/iluvcapra/wavinfo" -Documentation = "https://wavinfo.readthedocs.io/" -Source = "https://github.com/iluvcapra/wavinfo.git" -Issues = 'https://github.com/iluvcapra/wavinfo/issues' - -[project.entry_points.console_scripts] +[tool.poetry.scripts] wavinfo = 'wavinfo.__main__:main' -[project.scripts] -wavinfo = "wavinfo.__main__:main" +[[tool.poetry.packages]] +include = "data" -[tool.flit.external-data] -directory = "data" +[tool.poetry.dependencies] +lxml = "~= 5.3.0" [tool.pyright] typeCheckingMode = "basic" diff --git a/wavinfo/__init__.py b/wavinfo/__init__.py index f8d7de0..d5bbfaf 100644 --- a/wavinfo/__init__.py +++ b/wavinfo/__init__.py @@ -4,6 +4,3 @@ Probe WAVE Files for iXML, Broadcast-WAVE and other metadata. from .wave_reader import WavInfoReader from .riff_parser import WavInfoEOFError - -__version__ = '3.0.0' -__short_version__ = '3.0.0'