Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package autotrash for openSUSE:Factory checked in at 2025-05-08 18:23:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autotrash (Old) and /work/SRC/openSUSE:Factory/.autotrash.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "autotrash" Thu May 8 18:23:17 2025 rev:5 rq:1275427 version:0.4.7 Changes: -------- --- /work/SRC/openSUSE:Factory/autotrash/autotrash.changes 2024-05-27 12:03:40.191122233 +0200 +++ /work/SRC/openSUSE:Factory/.autotrash.new.30101/autotrash.changes 2025-05-08 18:25:59.799023220 +0200 @@ -1,0 +2,7 @@ +Sat May 3 14:17:35 UTC 2025 - Andrea Manzini <[email protected]> + +- Updated to version 0.4.7: + * Read XDG_CONFIG_HOME environment variable instead of assuming ~/.config + * Dependency upgrades + +------------------------------------------------------------------- Old: ---- autotrash-0.4.6.tar.gz New: ---- autotrash-0.4.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autotrash.spec ++++++ --- /var/tmp/diff_new_pack.jtqUzK/_old 2025-05-08 18:26:00.239041572 +0200 +++ /var/tmp/diff_new_pack.jtqUzK/_new 2025-05-08 18:26:00.243041739 +0200 @@ -1,7 +1,7 @@ # # spec file for package autotrash # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define pythons python3 Name: autotrash -Version: 0.4.6 +Version: 0.4.7 Release: 0 Summary: Tool to automatically purge old trashed files License: GPL-3.0-or-later ++++++ autotrash-0.4.6.tar.gz -> autotrash-0.4.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autotrash-0.4.6/PKG-INFO new/autotrash-0.4.7/PKG-INFO --- old/autotrash-0.4.6/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/autotrash-0.4.7/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: autotrash -Version: 0.4.6 +Version: 0.4.7 Summary: Script to automatically purge old trash Home-page: https://github.com/bneijt/autotrash Author: Bram Neijt @@ -31,10 +31,14 @@ There are mulitple ways to install the software. Either using your Linux distribution package manager (if a package is available) or using the Python package directly. -Using a distribution package is preferred as it will also ensure that autotrash is updated during your regular updates, however not all distributions have autotrash available as a package, so you may need ot use python directly anyway. +Using a distribution package is preferred as it will also ensure that autotrash is updated during your regular updates, however not all distributions have autotrash available as a package, so you may need to use python directly anyway. - Using the a package manager: - - On Fedora consider using `yum install autotrash` + - On Fedora, using `pipx`: + ``` + sudo dnf install pipx + pipx install autotrash + ``` - On Ubuntu and Debian, using `pipx`: ``` sudo apt-get install pipx @@ -126,5 +130,5 @@ poetry shell autotrash --help -All pull requests and master builds are tested using github actions and require [`black`](https://github.com/psf/black) formatting. +All pull requests and master builds are tested using github actions and require pre-commit to succeed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autotrash-0.4.6/README.md new/autotrash-0.4.7/README.md --- old/autotrash-0.4.6/README.md 2023-09-08 22:47:31.174012200 +0200 +++ new/autotrash-0.4.7/README.md 2024-05-11 21:38:35.698828500 +0200 @@ -13,10 +13,14 @@ There are mulitple ways to install the software. Either using your Linux distribution package manager (if a package is available) or using the Python package directly. -Using a distribution package is preferred as it will also ensure that autotrash is updated during your regular updates, however not all distributions have autotrash available as a package, so you may need ot use python directly anyway. +Using a distribution package is preferred as it will also ensure that autotrash is updated during your regular updates, however not all distributions have autotrash available as a package, so you may need to use python directly anyway. - Using the a package manager: - - On Fedora consider using `yum install autotrash` + - On Fedora, using `pipx`: + ``` + sudo dnf install pipx + pipx install autotrash + ``` - On Ubuntu and Debian, using `pipx`: ``` sudo apt-get install pipx @@ -108,4 +112,4 @@ poetry shell autotrash --help -All pull requests and master builds are tested using github actions and require [`black`](https://github.com/psf/black) formatting. +All pull requests and master builds are tested using github actions and require pre-commit to succeed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autotrash-0.4.6/pyproject.toml new/autotrash-0.4.7/pyproject.toml --- old/autotrash-0.4.6/pyproject.toml 2023-09-08 22:47:47.785844800 +0200 +++ new/autotrash-0.4.7/pyproject.toml 2024-05-11 21:38:52.634758700 +0200 @@ -1,6 +1,6 @@ [tool.poetry] name = "autotrash" -version = "0.4.6" +version = "0.4.7" description = "Script to automatically purge old trash" authors = ["Bram Neijt <[email protected]>"] readme = "README.md" @@ -14,13 +14,12 @@ python = ">=3.8, <4" [tool.poetry.group.dev.dependencies] -pytest = "^7.4.2" -black = "^23.7.0" -twine = "^4.0.2" +pytest = "^8.1.1" +twine = "^5.0.0" mypy = "^1.5.1" types-setuptools = "^68.2.0.0" pre-commit = "^3.4.0" -ruff = "^0.0.287" +ruff = "^0.3.7" [tool.poetry.scripts] autotrash = 'autotrash.app:main' @@ -29,10 +28,9 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" -[tool.black] -line-length = 100 -target-version = ['py311'] - [tool.ruff] src = ["src"] -line-length = 100 \ No newline at end of file +line-length = 100 + +[tool.ruff.lint] +extend-select = ["I"] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autotrash-0.4.6/src/autotrash/__init__.py new/autotrash-0.4.7/src/autotrash/__init__.py --- old/autotrash-0.4.6/src/autotrash/__init__.py 2023-09-08 22:47:31.174012200 +0200 +++ new/autotrash-0.4.7/src/autotrash/__init__.py 2024-05-11 21:38:35.702828400 +0200 @@ -1,4 +1,4 @@ -from importlib.metadata import version, PackageNotFoundError +from importlib.metadata import PackageNotFoundError, version try: __version__ = version(__name__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autotrash-0.4.6/src/autotrash/app.py new/autotrash-0.4.7/src/autotrash/app.py --- old/autotrash-0.4.6/src/autotrash/app.py 2023-09-08 22:47:31.174012200 +0200 +++ new/autotrash-0.4.7/src/autotrash/app.py 2024-05-11 21:38:35.702828400 +0200 @@ -418,11 +418,10 @@ [Service] Type=oneshot ExecStart="{}" {} -""".format( - executable_path, args - ) +""".format(executable_path, args) - systemd_dir = os.path.expanduser("~/.config/systemd/user") + config_dir = os.environ.get("XDG_CONFIG_HOME") or os.path.expanduser("~/.config") + systemd_dir = f"{config_dir}/systemd/user" os.makedirs(systemd_dir, exist_ok=True) with open(os.path.join(systemd_dir, "autotrash.timer"), "w") as f:
