Commit graph

274 commits

Author SHA1 Message Date
Norwid Behrnd
c7691fff23
test(unit_tests.py): additional Windows clauses
Apparently, the organization of linkfiles in Windows differs from the
one in Linux; and much more, than thought earlier.  In addition to
this, the additional `.lnk` is visible only in a shell (git BASH;
Windows' `cmd.exe`, or PowerShell) however not in the default GUI
filemanager Windows is shipped (regardless if the user opts-in to
display file extensions like `.txt`, or not).

The edit of this commit thus only is a starter of additional checks
and likely similar edits to the source code.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-03-02 16:50:50 +01:00
nbehrnd
229e197380
Merge pull request #91 from jofrev/make-tkinter-optional
Make Tkinter dependency optional
2026-02-27 15:29:51 +01:00
Jonathan Vahlsing
7045c9a8e0 make Tkinter dependency optional
Tkinter is required only for the new --gui option but not for filetags
core functionality, still it has to be installed in order to run
filetags at the moment.
This commit makes the import of Tkinter optional as long as the --gui
option is not passed, thus allowing users that don't have Tkinter
installed on their system to keep using filetags like before.
In case the --gui option is passed and Tkinter can't be imported an
error message is printed instructing the user to install the Python
Tkinter module similar to the safe import of other modules.
2026-02-26 13:42:03 +01:00
nbehrnd
b68a731c81
Merge pull request #90 from nbehrnd/dev
edit on style for greater portability to Windows
2026-02-23 22:25:12 +01:00
Norwid Behrnd
28a0fabb1f
style(unit_tests.py): additional use of os.path.join
For greater portability of the defined unit tests, the test on
filetags.extract_from_path was rekeyed to use a definition based
on os.path.join().

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-02-23 22:10:29 +01:00
Norwid Behrnd
801dcea506
style(unit_tests.py): additional us of use os.path.join
For greater portability of the test (i.e., to Windows), checks in
def test_extract_tags_from_path are rekeyed.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-02-23 22:05:34 +01:00
Norwid Behrnd
eb2d6a25b1
test(ci_pytest.yml): add brief reporter line
For a better overview / count of failed tests over all tests,
pytest now is requested to run twice: once the short line of
dots, F, E, etc; and once at verbosity level one.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-02-23 20:12:13 +01:00
Norwid Behrnd
b5021b0a8f
style(__init__.py, unit_tests.py): explicitly use utf-8
When running the unit tests with GitHub's Windows runner image,
one test currently fails for lack of (sufficient) support for
unicode characters.  To address this issue, the file context
managers are amended by an explicit `encoding="utf-8"`.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-02-23 20:01:14 +01:00
nbehrnd
7cd8237910
Merge pull request #89 from nbehrnd/pytest_02
ci(ci_pytest.yml): allow a default branch `master`
2026-02-23 16:08:40 +01:00
Norwid Behrnd
8f51cbb283
ci(ci_pytest.yml): allow a default branch master
For greater flexibility, the ci allows `master` as an additional
name of the local default branch beside frequently seen `main`.
It however replaces `main` by `master` as the default in the
blessed repository.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-02-23 16:07:25 +01:00
nbehrnd
0528ef3306
Merge pull request #88 from nbehrnd/pytest
check edits/PRs with Python's pytest in ubuntu, windows, macos
2026-02-23 15:59:35 +01:00
Norwid Behrnd
7cfc0ab769
ci(ci_pytest.yml): add regular check with pytest
Unit tests already provided shall equally be used across GitHub's
runner images of Ubuntu, Windows, and MacOS to check edits/pull
requests.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-02-23 15:54:18 +01:00
Norwid Behrnd
24ec55ae8f
build(pyproject.toml): increment compatibility to 3.14
Checks with pytest in Python 3.14 equally pass if running
an instance of Linux Debian.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2026-02-23 15:51:50 +01:00
Karl Voit
b03af114be
Merge pull request #80 from jneidel/force-cv
Add --force-cv flag to limit tags to the controlled vocabulary
2026-02-11 21:27:08 +00:00
Karl Voit
da1875a332
Merge branch 'master' into force-cv 2026-02-11 21:25:43 +00:00
Karl Voit
9b029185bd
Merge pull request #82 from jneidel/kitty-integration
Add dired setup using kitty to integrations
2026-02-11 21:13:17 +00:00
Karl Voit
e2f6e30fdc
Merge pull request #85 from jneidel/aur
Add AUR package
2026-02-11 21:11:42 +00:00
Karl Voit
720fd15586
Merge pull request #84 from jneidel/pyproject-license
Fix pyproject project.license deprecation
2026-02-11 21:10:33 +00:00
Karl Voit
fb62393a28
Merge pull request #83 from jneidel/handle-exit
Handle EOF (ctrl-d) gracefully
2026-02-11 21:09:31 +00:00
Karl Voit
7c56c70774
Merge pull request #81 from jneidel/fix-open
Fix codecs.open deprecation warning
2026-02-11 21:08:20 +00:00
Jonathan Neidel
391adeaab0 Fix wrong function name 2026-02-11 09:50:52 +01:00
Jonathan Neidel
288a0e4dcd
Add -q 2026-02-11 09:44:38 +01:00
Jonathan Neidel
dd0d6fa0a7 Add AUR package 2026-02-10 21:48:04 +01:00
Jonathan Neidel
6844957f0d Bump setuptools and remove OSI 2026-02-10 21:34:03 +01:00
Jonathan Neidel
2301da21b8 Fix pyproject project.license deprecation
Deprecation notice:

Please use a simple string containing a SPDX expression for `project.license`.
You can also use `project.license-files`. (Both options available on
setuptools>=77.0.0).

https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
2026-02-10 21:26:20 +01:00
Jonathan Neidel
cd4e60b559 Handle EOF (ctrl-d) gracefully
Instead of the traceback it currently throws.
2026-02-10 21:04:08 +01:00
Jonathan Neidel
d6ab60c4b6 Add dired setup using kitty to integrations 2026-02-10 20:55:03 +01:00
Jonathan Neidel
15ad8471fb Add test case for parsing unicode characters 2026-02-10 20:38:56 +01:00
Jonathan Neidel
8c59b575a2 Fix codecs.open deprecation warning
DeprecationWarning: codecs.open() is deprecated. Use open() instead.
2026-02-10 20:33:20 +01:00
Jonathan Neidel
c87ad56077 Improve docs 2026-02-10 14:49:16 +01:00
Jonathan Neidel
fc96c273d6 Fix gui cancel 2026-02-10 14:49:02 +01:00
Jonathan Neidel
07ae244d43 Fix typo 2026-02-10 14:32:37 +01:00
Jonathan Neidel
35c9edf4aa Add --force-cv flag to limit tags to the controlled vocabulary
Closes #18
2026-02-10 14:31:01 +01:00
Karl Voit
778a2de5a0 switching from poetry to uv and pyproject.toml 2025-11-16 11:53:05 +01:00
Karl Voit
5465aa8179 last version of setup.py before switching to uv and pyproject.toml 2025-11-16 11:52:23 +01:00
Karl Voit
99859dd4f8 added logging of CLI options 2025-11-16 11:22:31 +01:00
nbehrnd
5c259f953e
Merge pull request #79 from nbehrnd/update_codeql-analysis
Update codeql analysis'  unitary operations to version 3
2025-10-07 23:46:57 +02:00
Norwid Behrnd
4a0cd79dd8
test(codeql-analysis.yml): update elementary actions
Elementary actions were updated according to reference pages[1,2]
published January 18, 2023 and January 10, 2025, respectively to
contemporary version 3.

[1] https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/
[2] https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2025-10-07 23:38:17 +02:00
Norwid Behrnd
d798a9bfda
test(codeql-analsis.yml): extend scope to a dev branch
To ease testing prior to the merge into the default branch, the
scope is extended to a (temporary) dev branch (if used).

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2025-10-07 22:58:39 +02:00
nbehrnd
2ee46eb992
Merge pull request #78 from nbehrnd/py310+
relax constraint on Python interpreter
2025-10-07 15:19:24 +02:00
Norwid Behrnd
ea3d72584c
docs(README.org): description of pip install from GitHub
The installation with pip in reference to the blessed GitHub
repository is described.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2025-10-07 15:01:11 +02:00
Norwid Behrnd
5b2fd74ad3
docs(pyproject.toml): sort sequence of PyPI classifiers
For easier maintenance of pyproject.toml, the sequence of PyPI now
follows the reference page, <https://pypi.org/classifiers/>.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2025-10-07 15:00:08 +02:00
Norwid Behrnd
6b9703237a
build: git-rm requirements.txt
The dependencies already are described by file pyproject.toml.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2025-10-07 14:55:51 +02:00
Norwid Behrnd
50f9074a86
fix(pyproject.toml): allow use in Python 3.10+ in Windows
The constraint regarding the Python interpreter was softened.  An
installation in Windows now automatically collects and installs
pypiwin32, too.  For now, inclusion of file README.org into the
wheel is blocked.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2025-10-07 14:51:04 +02:00
Karl Voit
b042bd2031 README: added GUI screenshot image 2025-09-15 13:27:03 +02:00
Karl Voit
833b39b001 gui: fixed wrong size of vocabulary 2025-09-03 15:21:42 +02:00
Karl Voit
b2e03031a6 initial documentation of --gui parameter; fixed README 2025-09-02 17:12:25 +02:00
Karl Voit
107644c91e initial documentation of --gui parameter 2025-09-02 17:11:09 +02:00
Karl Voit
030ba85c19 first beta version of --gui parameter; still missing documentation 2025-09-02 16:44:33 +02:00
Karl Voit
0d5246aa3e pyproject.toml: added mandatory requires-python dependency for uv 2025-09-02 16:44:04 +02:00