Commit graph

3250 commits

Author SHA1 Message Date
dependabot[bot]
c0b049f469 Bump docker/build-push-action from 6.9.0 to 6.10.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.9.0 to 6.10.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.9.0...v6.10.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-07 23:11:34 +01:00
Thomas Lauf
89fd60fe8a Remove 'macOS 12' runner
GitHub is removing the `macOS 12` runner image by 2024-12-03
See https://github.com/actions/runner-images/issues/10721

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-11-22 21:07:12 +01:00
Thomas Lauf
70aea4b9bc Re-enable Debian Testing image
Was disabled in 4c9a39a because 'fiu-utils' was not available

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-11-22 21:07:12 +01:00
Thomas Lauf
eee650e889 Enable running tests from GitHub 2024-11-22 15:13:08 +01:00
Thomas Lauf
e5b05cbe1b Update libshared to 47a750c385133dd14a0957691fe21cbe46e80b10
- Add defines for the values that are allowed for epoch timestamps
- Fix wrong week number output when weekstart=0
- Add bold color with 256 color space
2024-11-07 13:44:13 +01:00
dependabot[bot]
d389bba72c Bump sigstore/cosign-installer from 3.6.0 to 3.7.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 23:12:38 +02:00
dependabot[bot]
8abb3c3c8e Bump docker/build-push-action from 6.7.0 to 6.9.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.7.0 to 6.9.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.7.0...v6.9.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-06 11:30:24 +02:00
Thomas Lauf
2d05922390 Update ChangeLog 2024-09-13 16:12:01 +02:00
Scott Mcdermott
05724a9d21 Make python tests use timezone, py3.12 deprecated tz-less utcnow()
Python upstream is trying to eliminate tz-naive date functions that
imply anything to do with a timezone, even UTC.  They have deprecated
datetime.datetime.utcnow() in Python 3.12 and thus running tests emits
many warnings for us.

We switch to instantiate datetime objects taht are intended to reflect
UTC to have a timezone, or if we instantiate naive ones and then later
convert, we do the full conversion.

After the changes, the tests still work on Python 3.9, but now also on
Python 3.12 without warnings.

See PR description for #632 for more details.

Signed-off-by: Scott Mcdermott <scott@smemsh.net>
2024-09-13 15:45:11 +02:00
Scott Mcdermott
05b72bba6f Use raw python strings for regex escapes in test summary
Python warns about "\d" and friends that aren't in raw quotes, so we add
the 'r'aw string-qualifier.

Signed-off-by: Scott Mcdermott <scott@smemsh.net>
2024-09-13 15:45:11 +02:00
Thomas Lauf
d502bf8ee4 Update ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-09-13 14:29:15 +02:00
Scott Mcdermott
b9fa8c10c2 Update libshared to a63fa350413f598b3b55355a6460b7fd2efb2e69
Brings in new dayOfWeek() code from GothenburgBitFactory/libshared#81

Signed-off-by: Scott Mcdermott <scott@smemsh.net>
2024-09-13 14:27:50 +02:00
Scott Mcdermott
251c5b332a Make week number parsing conform to ISO8601 when Datetime::weekstart == 1
This is a duplicate of the changes from commit with same subject line in
GothenburgBitFactory/libshared#81 and also duplicates the commit
message below.  Timewarrior has copies of many functions from
libshared's Datetime class in its own DatetimeParser class, and until
such time as these classes are integrated, we have to maintain copies of
these functions here, and the changes need to be duplicated.  See
discussion in aforementioned PR.

The one difference with the patch over there is, this one is using the
public Datetime::dayOfWeek() and Datetime::daysInYear() methods from
libshared, rather than its own implementation.  The copy in Timewarrior
already was doing this before, but it's worth noting it's the only
difference with the corresponding patch in libshared PR 81, and only
amounts to a change in the namespace qualifier.

Copied commit message from libshared follows.

                           *     *    *

This patch makes the parsing of week numbers in dates ISO-8601 compliant
in the case that Datetime::weekstart == 1, while the existing behavior
remains available if Datetime::weekstart == 0.

The previous code parsed week numbers (given as "yyyy-Www") into dates
starting on Sunday.  Although the code had a "Datetime::weekstart"
variable, and this value was initialized to 1 (which is Monday) in
libshared, nonetheless week specifications would be parsed into calendar
days starting on Sunday.

Furthermore, week days in such given weeks ('d' in "yyyy-Www-d") used 0-6
for Sunday-Monday, while ISO8601 specifies 1-7 Monday-Sunday.
Therefore, yyyy-Www-0 was treated as valid (and should not be), while
yyyy-Www-7 was invalid (and should be valid).

Note that neither Taskwarrior nor Timewarrior ever set the value of
Datetime::weekstart.  Taskwarrior has an rc.weekstart, but this is only
used for "task calendar" output, not for parsing dates.

The patch does the following:

- Initialize "Datetime" instances with a weekday value from
  Datetime::weekstart.  This helps the case when weekday is not
  supplied, it won't default to zero and fail validation (when
  weekstart is '1').  Note that mktime() is usually used in the code
  to convert populated "struct tm" broken-down times into epoch-times,
  and this operation does not use tm.tm_wday for input, only as an
  output field, recomputed as a normalized value, so it appears to be
  safe to initialize it with a 1 (which we might wonder about since
  .tm_wday is supposed to be 0-6 Sunday based).

- Use the already-existing Datetime::parse_weekday() to parse the
  'ww' in "yyyy-Www" input dates (the function was not used by any
  caller previously; guessing it may have been intended for eventual
  use in order to respect weekstart(?))

- Teach parse_weekday() about weekstart.  Previously this assumed
  1-7, which is the reason I'm guessing this was intended to be used
  for ISO weeks eventually.  Now it can also use 0-6 if weekstart 0.

- Teach Datetime::validate to respect Datetime::weekstart also.
  Previously only 0-6 Sunday-Monday was considered valid.

- Default the weekday to Datetime::weekstart if not supplied, ie for
  "yyyy-Www-X" if the "-X" is not supplied, as recognized when
  Datetime::standaloneDateEnabled = true, which is the case for (1)
  tests, (2) timewarrior, but NOT for taskwarrior at this time
  (both the standalone 'calc' and 'task calc' (ie Context.cpp) set
  this to false).

- Implement the complete ISO week calculation algorithm in
  Datetime::resolve() if weekstart is '1', and keeps the existing
  algorithm if weekstart is '0'.  This will allow Taskwarrior and
  Timewarrior to offer the option of the old behavior for those
  who want to use Sunday-based weeks and ignore ISO week calculations
  (such as 2023-01-01 being in ISO week 2022-W52).

Signed-off-by: Scott Mcdermott <scott@smemsh.net>
2024-09-13 14:27:50 +02:00
Scott Mcdermott
78975fa651 Datetime: validate: consider dates up to year 9999 as valid
This corrects for some drift in our shadowed copy of libshared's
Datetime::validate (in our own DatetimeParser class with function of
same name), from libshared commit 7dffb13c

Signed-off-by: Scott Mcdermott <scott@smemsh.net>
2024-09-13 14:27:50 +02:00
dependabot[bot]
ceb48379bb Bump docker/build-push-action from 6.5.0 to 6.7.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.5.0 to 6.7.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.5.0...v6.7.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-17 11:10:43 +02:00
dependabot[bot]
cd60779fdc Bump sigstore/cosign-installer from 3.5.0 to 3.6.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.5.0...v3.6.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-17 10:54:42 +02:00
Scott
dad44a2201 Add empty '.pre-commit-config.yaml'
Now needed for the CI system.

Signed-off-by: Scott <scott@smemsh.net>
2024-08-17 10:33:25 +02:00
Scott
d82d78aa82 Fix test workflow to use docker compose v2, as v1 now retired
Apparently "docker-compose" was deprecated over 6 months ago and is
starting to be phased out in favor of "docker compose".  Without this,
test runners are getting:

  home/runner/work/_temp/0af6641a-337b-4651-8ca4-fef3529091af.sh: line 1:
  docker-compose: command not found

See https://github.com/orgs/community/discussions/116610 for details

Signed-off-by: Scott <scott@smemsh.net>
2024-08-17 10:33:25 +02:00
dependabot[bot]
e27d91a903 Bump docker/build-push-action from 6.4.0 to 6.5.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.4.0 to 6.5.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.4.0...v6.5.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-24 20:50:52 +02:00
dependabot[bot]
d4243aaa85 Bump docker/login-action from 3.2.0 to 3.3.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-24 20:50:27 +02:00
dependabot[bot]
f9f9c87129 Bump docker/build-push-action from 6.3.0 to 6.4.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.3.0...v6.4.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-20 13:47:59 +02:00
dependabot[bot]
9151ff5653 Bump docker/build-push-action from 6.2.0 to 6.3.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.2.0...v6.3.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-11 21:11:40 +02:00
dependabot[bot]
764451fd6c Bump docker/build-push-action from 6.0.0 to 6.2.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.0.0 to 6.2.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.0.0...v6.2.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-30 00:29:14 +02:00
Thomas Lauf
4c9a39aa31 Pause debian-testing until fiu-utils is available
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-06-25 23:04:16 +02:00
Thomas Lauf
85d119ed98 Replace macOS 11 runner with macOS 14
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-06-25 22:50:00 +02:00
dependabot[bot]
cbc4967a6c Bump docker/build-push-action from 5.4.0 to 6.0.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.4.0 to 6.0.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5.4.0...v6.0.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 08:42:07 +02:00
Thomas Lauf
a20ea5a3ff Update ChangeLog & AUTHORS
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-06-17 23:10:27 +02:00
Ian Kenney
81b62c3da0 Adding zsh completion
Signed-off-by: Ian Kenney <ianmichaelkenney@gmail.com>
2024-06-17 23:04:52 +02:00
dependabot[bot]
ad12fec6ae Bump docker/build-push-action from 5.3.0 to 5.4.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5.3.0...v5.4.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 12:58:11 +02:00
dependabot[bot]
15ec8c1c03 Bump actions/checkout from 2 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 12:08:32 +02:00
dependabot[bot]
8a5ae6c670 Bump docker/login-action from 3.1.0 to 3.2.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-05 21:48:07 +02:00
Thomas Lauf
ba197c6198 Jettison centos7 and centos8 in favor of centos-stream9
CentOS 8 reached end of life on 2021-12-31 (CentOS Stream8 on 2024-05-31)
CentOS 7 reaches end of life on 2024-06-30

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-06-05 20:26:22 +02:00
Thomas Lauf
57c9926af9 Update Fish completion to 1c3624015ee9aaba55f3b96851cc8e120a82545a 2024-06-05 18:42:50 +02:00
Thomas Lauf
25185bcdb8 Use PAT for trigger request
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-06-05 18:24:19 +02:00
Matt Smida
96f41b4d7f Add update-docs workflow
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-06-04 21:32:13 +02:00
Tobias Predel
ca3e3f8582 Remove custom linkstyle
Signed-off-by: Tobias Predel <tobias.predel@gmail.com>
2024-05-27 10:05:44 +02:00
Tobias Predel
ceb369508d Fix manual page formatting
Remove brackets in manual page

Signed-off-by: Tobias Predel <tobias.predel@gmail.com>
2024-05-27 10:05:44 +02:00
Thomas Lauf
61e5540ad2 Add 'retag' to command listing in internal help
Closes #600

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-04-26 17:00:39 +02:00
dependabot[bot]
fe1f7a9d63 Bump sigstore/cosign-installer from 3.4.0 to 3.5.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-21 18:26:36 +02:00
dependabot[bot]
90f4134e48 Bump docker/login-action from 3.0.0 to 3.1.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 22:54:59 +01:00
dependabot[bot]
0e5f0e317f Bump docker/build-push-action from 5.2.0 to 5.3.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5.2.0...v5.3.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 22:54:40 +01:00
dependabot[bot]
51b54795a6 Bump docker/build-push-action from 5.1.0 to 5.2.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5.1.0...v5.2.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-12 23:28:45 +01:00
dependabot[bot]
e55a1bfff4 Bump sigstore/cosign-installer from 3.3.0 to 3.4.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.3.0...v3.4.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-27 23:04:12 +01:00
Thomas Lauf
74562b2d47 Fix open suse Docker images
Update Asciidoctor

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-02-27 22:25:45 +01:00
Thomas Lauf
9f8b0fbc28 Enter commit hash for release 1.7.1
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-01-16 21:26:51 +01:00
Thomas Lauf
2514d506b5 Release 1.7.1
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-01-16 13:35:02 +01:00
Thomas Lauf
7007e16819 Restore quoting of tags with hyphen
Closes #580 #582

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-01-16 13:35:02 +01:00
Thomas Lauf
f24b297541 Tweak output of macOS test script
- "hide" grep statement
- remove superfluous version information for python3

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-01-13 18:57:49 +01:00
Thomas Lauf
980a8be58b Update ChangeLog, AUTHORS
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2024-01-13 18:57:49 +01:00
Joachim Meyer
c9a3a785b8 README - Update build instructions
A freshly cloned repository also needs a call to create and update the required submodule

Signed-off-by: Joachim Meyer <dev@joachim-meyer.com>
2024-01-13 18:51:52 +01:00