Commit graph

68 commits

Author SHA1 Message Date
Norwid Behrnd
7c7074d0f9 ci(pytest.yml): extend scope to Windows and MacOS
The scope of the automated pytest checks is extended to equally
consider Windows 2022 and MacOS 14.  At present, these are the
most recent OS images of Windows, or MacOS, respectively.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2024-10-31 11:58:59 +01:00
nbehrnd
72a9c1179a
Merge pull request #20 from nbehrnd/rebuild_pytest 2024-10-31 11:46:19 +01:00
nbehrnd
09903e82fb
Merge branch 'master' into rebuild_pytest 2024-10-31 11:45:27 +01:00
Norwid Behrnd
d79ba9d954 ci(pytest.yml): introduce github action on ubuntu
This commit aims to provide an automated testing with pytest moderated
by GitHub actions.  Its scope is constrained twice -- both for pytest,
as well as for the testing operating system -- to familiarize

1) how to file a PR to project I don't own which however now allows
   me to admit a PR.
2) To learn if in this situation a contributor can set GitHub actions
   in a repository owned by an other user.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2024-10-31 11:30:30 +01:00
Norwid Behrnd
a2a9323063 fix(test_generator.org): rewrite first portion of pytest tests
The export by tangle from the org file is constrained to the first
set of tests by pytest.  This section is rewritten to yield a more
portable format to work either for Linux Debian, or Windows 10.

Running

```shell
python -m pytest
```

in their respective virtual environments, the set of 60 items to
test all pass (Debian: Python 3.12.6, pytest 8.3.3; Windows 10:
Python 3.12.4, pytest 8.3.3).

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2024-10-31 11:13:26 +01:00
Norwid Behrnd
c89aa42418 fix(requirements.txt): update and extend scope
By now, an update/move to `pyreadline3` is sensible (as already in
the principal branch).  Extension with `pytest` offers an optional
test on site.

In Linux Debian 13/trixie (virtual environment of Python 3.12.4 and
pytest 8.3.3), out of 540 tests all 540 pass, and 4 are tagged
with a warning.  Pylint (3.3.1)/astroid (3.3.5) indicate a couple of
possible improvements (r strings, etc.) and hence rate
test_appendfilename.py with 6.21/10 -- but does not report a syntax
error.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2024-10-31 10:28:49 +01:00
Karl Voit
c8029b9518 introduced DEBUG_SEPARATOR
instead of using strings
2024-10-23 11:34:21 +02:00
Karl Voit
81ffa33e00
Merge pull request #19 from nbehrnd/fix_pyreadline3
fix(requirements.txt): move from pyreadline to pyreadline3
2024-10-23 09:30:34 +00:00
Norwid Behrnd
55c17c2247 fix(requirements.txt): move from pyreadline to pyreadline3
Module `pyreadline3`, a fork of `pyreadline` no longer actively
maintained on PyPI replaces its predecessor.  This equally aims
to account for an reported problem using the utility in Windows.[1]

[1] https://github.com/novoid/appendfilename/issues/18

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2024-10-22 17:59:40 +02:00
Karl Voit
c04aee6c5e
Merge pull request #14 from nbehrnd/tester
extend tester's pattern to all five provided by date2name
2022-01-12 11:16:37 +01:00
Norwid Behrnd
a282a32a0e extend patten timestamps by date2name, 2/2
Addition of the pattern --compact, --month, and --short.
2022-01-09 13:20:42 +01:00
Norwid Behrnd
c44d7070c4 reorganize test section --smart-prepend for extension
Ahead of the addition of checks about three stamp pattern issued
by date2name, the checker about appendfilename's the option
--smart-prepent is reorganized to be more compact/easier to be
read.  For now, this outweights each filename being checked twice.
2022-01-09 11:25:06 +01:00
Norwid Behrnd
903b6adbe0 extend pattern timestamps by date2name, 1/2
This extends the pattern tested to consider all five stamp formats
issued by date2name when passing appendfilename either in default,
or prepend mode.  It doesn't yet the --smart-prepend mode as third
option.
2022-01-09 11:08:56 +01:00
Norwid Behrnd
49254c4429 clarify the call sign issue of pytest
Depending on the installation/Linux distribution used, pytest for
Python 3 may be invoked by either pytest, or pytest-3.  The issue
is addressed.
2022-01-09 10:54:05 +01:00
Norwid Behrnd
e28078103b update changes by K Voit/master into tester 2022-01-08 17:06:07 +01:00
Karl Voit
b2be04e913 more debug output for smartprepend feature 2022-01-07 17:11:11 +01:00
Karl Voit
4cc3b34ee5 more debug output for smartprepend feature 2022-01-07 17:04:22 +01:00
Karl Voit
f423f93e19
Merge pull request #12 from nbehrnd/tester
Cherry-pick from cebc8c42
2022-01-07 16:02:04 +01:00
Norwid Behrnd
c9ef4864c0 Cherry-pick tester-time (0291b2d), d2n time stamps
Checks of appendfilename --smart-prepend now consider date2name'
default time stamp (YYYY-MM-DD), the by date2name --withtime
(YYYY-MM-DDTHH.MM.SS), or absence of such by pattern recognition
with regular expressions.
2022-01-07 11:10:27 +01:00
Norwid Behrnd
1f1292d04a Cherry-pick from cebc8c42
For programmatic testing of appendfilename, a test generator
is written.  This tangles a Makefile, a pytest.ini and the
test script.  Despite the incomplete coverage of this approach,
an inconsistency in appendfilename's interaction on files with
the simple YYYY-MM-DD timestamp (date2name) is spot.
2022-01-06 16:09:05 +01:00
Karl Voit
30809f391a fixed bug when using --smart-prepend 2022-01-04 17:25:24 +01:00
Karl Voit
c9a1bc9322 introduced --separator CLI option according to a suggestion from #9 2022-01-01 11:26:33 +01:00
Karl Voit
6db3e4bc9d renamed: TEXT_SEPARATOR → DEFAULT_TEXT_SEPARATOR 2022-01-01 11:16:38 +01:00
Karl Voit
dd79bf97d0 README: fixed documentation error; fixes #8 2020-09-13 10:49:05 +02:00
Karl Voit
d470e12c91 README: removed depricated --interactive option from geeqie example 2020-08-30 23:32:42 +02:00
Karl Voit
aff1f10d12 return error code >0 if (some basic) errors occurred 2020-06-07 17:40:36 +02:00
Karl Voit
d8ea343c19 README: removed duplicated geeqie setup section 2020-06-06 15:44:45 +02:00
Karl Voit
0b517f092e README: re-ordering install sections 2020-03-22 14:59:54 +01:00
Karl Voit
39b65a2b11 README: integratethis method 2020-03-22 14:59:15 +01:00
Karl Voit
a706ef181b Windows screencast GIF 2020-03-22 14:43:53 +01:00
Karl Voit
472c99ab55 Windows screencast GIF 2020-03-22 14:42:44 +01:00
Karl Voit
0540f70533 fixed bug with dirnames 2019-10-29 12:42:40 +01:00
Karl Voit
231b7675f2 fixed wrong short-parameter for "--dryrun" 2019-10-20 11:27:58 +02:00
Karl Voit
25fb8fcbfc README: GitHub really doesn't feature good Org mode rendering 2019-10-20 00:26:24 +02:00
Karl Voit
c80716966e README: fixed GitHub Org mode bug 2019-10-20 00:25:12 +02:00
Karl Voit
64fa316e7b README: further examples 2019-10-20 00:23:43 +02:00
Karl Voit
8a5f153fdd gitignore: ignoring venv 2019-10-20 00:23:31 +02:00
Karl Voit
3e938903a1 added --prepend and --smart-prepend 2019-10-20 00:14:38 +02:00
Karl Voit
385ba28608 print help when no parameter is given 2018-11-18 22:55:51 +01:00
Karl Voit
b97539e0a9 readme: removed "tab-with-profile"
which only works on my machine
2018-07-21 09:20:58 +02:00
Karl Voit
fad0c5d93e README: improved GitHub rendering syntax 2018-05-06 13:00:30 +02:00
Karl Voit
d63cbad30c README: added GLT18 video link and fixed URL typo 2018-05-06 10:24:42 +02:00
Karl Voit
d82106ba54 added requirements.txt 2018-02-03 18:43:52 +01:00
Karl Voit
d0b2b7b630 refactored project structure according to pip guidelines 2018-02-03 18:04:28 +01:00
Karl Voit
f660317cc4 fixed copy&paste error of project URL 2018-02-03 17:28:42 +01:00
Karl Voit
d02cbd1340 README: added screencast 2018-02-03 17:09:21 +01:00
novoid
ac95e0828e
Merge pull request #1 from bdillahu/patch-1
Update README.org
2017-11-25 11:18:21 +01:00
Bruce Dillahunty
f123c83661
Update README.org
Shouldn't have "not" in that line, I believe... might say "This is a potentially error-prone task."
2017-11-21 22:04:38 -05:00
Karl Voit
dfca30dc86 README: Integration into common tools 2017-11-11 16:18:54 +01:00
Karl Voit
4e40543e44 When renaming a symlink, its source file with matching name is renamed as well 2017-08-29 17:55:57 +02:00