Skip to content

Commit

Permalink
📦 Pdm (#7)
Browse files Browse the repository at this point in the history
# PDM
Migrates to pdm and `pyproject.toml` for dependency management.

## version
- Adds `__version__` to `_version.py`
- Import into main namespace in `__init__.py`
- Adds dynamic versioning with pdm
  • Loading branch information
mrharpo authored Jan 16, 2024
2 parents 389cf63 + 03f1958 commit a2382f3
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 9 deletions.
1 change: 1 addition & 0 deletions holophonor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ._version import __version__
from pluggy import HookimplMarker

holoimpl = HookimplMarker("holophonor")
Expand Down
1 change: 1 addition & 0 deletions holophonor/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.1.0'
72 changes: 72 additions & 0 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[project]
name = "holophonor"
dynamic = ["version"]
description = "Live looping, unlimited!"
authors = [{ name = "Quaternion Media", email = "[email protected]" }]
dependencies = ["pluggy~=1.0", "python-rtmidi~=1.4", "loguru~=0.6"]
requires-python = ">=3.8.1, < 4"
readme = "README.md"
license = { text = "MIT" }

[tool.pdm]
version = { source = "file", path = "holophonor/_version.py" }

[project.scripts]
holophonor = "holophonor.main:main"

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[tool.ruff]
ignore = [
# line too long
"E501",
# Ambiguous variable names
"E741",
# imported but unused
"F401",
# star imports
"F403",
"F405",
]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

8 changes: 0 additions & 8 deletions setup.py

This file was deleted.

0 comments on commit a2382f3

Please sign in to comment.