-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from iluvcapra/maint-poetry
Change build system to Poetry
- Loading branch information
Showing
16 changed files
with
215 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,3 +110,5 @@ venv_docs/ | |
.DS_Store | ||
|
||
.vscode/ | ||
|
||
poetry.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# https://python-poetry.org/docs/pyproject/ | ||
|
||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[project] | ||
[tool.poetry] | ||
name = "wavinfo" | ||
authors = [{name = "Jamie Hardt", email = "[email protected]"}] | ||
version = "3.0.1" | ||
description = "Probe WAVE files for all metadata" | ||
authors = ["Jamie Hardt <[email protected]>"] | ||
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.flit.external-data] | ||
directory = "data" | ||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
lxml = "~= 5.3.0" | ||
sphinx_rtd_theme = {version= '>= 1.1.1', optional=true} | ||
sphinx = {version= '>= 5.3.0', optional=true} | ||
|
||
[tool.pyright] | ||
typeCheckingMode = "basic" | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from unittest import TestCase | ||
from glob import glob | ||
|
||
import wavinfo | ||
|
||
class TestSmpl(TestCase): | ||
def setUp(self) -> None: | ||
self.test_files = glob("tests/test_files/smpl/*.wav") | ||
return super().setUp() | ||
|
||
def test_each(self): | ||
for file in self.test_files: | ||
w = wavinfo.WavInfoReader(file) | ||
d = w.walk() | ||
self.assertIsNotNone(d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.