Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
# MacOS disabled for now
- windows-latest
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
Expand Down
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/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@

## Unreleased

### Removed

- Dropped Python 3.9.

## 1.9.0 - 2025-03-06

### Added
Expand Down
12 changes: 7 additions & 5 deletions create_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
# strict mode
set -eu

PACKAGE_NAME="dakara_player"

# getting version of the package
version=$(python -c "from setuptools import setup; setup()" --version)
echo "Creating archive for dakara_player v$version"
version=$(python -c "from $PACKAGE_NAME import __version__; print(__version__)")
echo "Creating archive for $PACKAGE_NAME v$version"

# install twine
pip install --upgrade build twine
pip install --upgrade twine build

# clean the dist directory
rm -rf dist/*
Expand All @@ -17,5 +19,5 @@ rm -rf dist/*
python -m build

# upload to PyPI
echo "Package will be uploaded tp Pypi"
python -m twine upload --repository dakaraplayer dist/*
echo "Copy pase the following command (with correct repository) to upload $PACKAGE_NAME v$version to Pypi:"
echo " python -m twine upload --repository *** dist/*"
32 changes: 16 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ description = "Media player for the Dakara Project"
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
requires-python = ">= 3.9"
requires-python = ">= 3.10"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -23,27 +22,28 @@ classifiers = [
"Intended Audience :: End Users/Desktop",
]
dependencies = [
"Jinja2>=3.1.1,<3.2.0",
"dakarabase>=2.1.0,<2.2.0",
"dakarabase>=2.2.0,<2.3.0",
"filetype>=1.2.0,<1.3.0",
"packaging>=24.2,<25.0",
"python-mpv-jsonipc>=1.2.0,<1.3.0",
"Jinja2>=3.1.6,<3.2.0",
"packaging>=26.0,<27.0",
"python-mpv-jsonipc>=1.2.1,<1.3.0",
"python-vlc>=3.0.21203,<3.1.0,!=3.0.12117",
]
# note: update .pre-commit-config.yaml as well

[project.optional-dependencies]
dev = [
"black>=25.1.0,<25.2.0",
"black>=26.3.1,<27.0.0",
"codecov>=2.1.13,<2.2.0",
"func_timeout>=4.3.5,<4.4.0",
"isort>=6.0.0,<6.1.0",
"pdoc>=15.0.1,<15.1.0",
"pre-commit>=4.1.0,<4.2.0",
"pytest-cov>=6.0.0,<6.1.0",
"pytest>=8.3.4,<8.4.0",
"ruff>=0.9.6,<0.10.0",
"isort>=8.0.1,<8.1.0",
"pdoc>=16.0.0,<16.1.0",
"pre-commit>=4.5.1,<4.6.0",
"pytest-cov>=7.1.0,<7.2.0",
"pytest>=9.0.2,<9.1.0",
"ruff>=0.15.9,<0.16.0",
]
# note: update the build-system section below
# note: update .pre-commit-config.yaml as well

[project.urls]
Homepage = "https://github.com/DakaraProject/dakara-player"
Expand All @@ -55,7 +55,7 @@ Changelog = "https://github.com/DakaraProject/dakara-player/blob/master/CHANGELO
dakara-player = "dakara_player.__main__:main"

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

[tool.setuptools.dynamic]
Expand All @@ -65,7 +65,7 @@ version = {attr = "dakara_player.version.__version__" }
where = ["src"]

[tool.pytest]
addopts = "--cov=dakara_player"
addopts = ["--cov=dakara_player"]

[tool.isort]
profile = "black"
Expand Down
Loading