diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fcc37a..2ec196f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,6 @@ jobs: # MacOS disabled for now - windows-latest python-version: - - "3.9" - "3.10" - "3.11" - "3.12" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 767194e..424e2da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b64b90..4bef074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,10 @@ ## Unreleased +### Removed + +- Dropped Python 3.9. + ## 1.9.0 - 2025-03-06 ### Added diff --git a/create_archive.sh b/create_archive.sh index cf6e754..175c760 100755 --- a/create_archive.sh +++ b/create_archive.sh @@ -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/* @@ -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/*" diff --git a/pyproject.toml b/pyproject.toml index d252977..8217878 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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" @@ -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] @@ -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"