ics-query 0.3.4__tar.gz → 0.4.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ics_query-0.3.4 → ics_query-0.4.7}/.github/workflows/tests.yml +60 -3
- {ics_query-0.3.4 → ics_query-0.4.7}/PKG-INFO +15 -5
- {ics_query-0.3.4 → ics_query-0.4.7}/README.md +13 -3
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/_version.py +2 -2
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/version.py +4 -0
- ics_query-0.3.4/.github/workflows/schedule-release.yml +0 -29
- {ics_query-0.3.4 → ics_query-0.4.7}/.github/FUNDING.yml +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/.github/dependabot.yml +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/.gitignore +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/LICENSE +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/conftest.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics-query +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics-query.cmd +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics-query.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/__init__.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/__main__.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/cli.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/parse.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/query.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/__init__.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/conftest.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/all --tz Singapore one-event.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/all three-events.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2019-03-04 multiple-calendars.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2019-03-04 one-event-twice.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2019-03-04 one-event.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2019-03-07 multiple-calendars.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2024-08-20 Berlin-Los-Angeles.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/between 20240823 4d recurring-work-events.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/Berlin-Los-Angeles.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/empty-calendar.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/empty-file.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/multiple-calendars.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/one-event-twice.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/one-event-without-timezone.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/one-event.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/recurring-work-events.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/simple-journal.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/simple-todo.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/three-events.ics +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VJOURNAL -c VEVENT one-event.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VJOURNAL one-event.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VJOURNAL simple-journal.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VTODO -c VJOURNAL simple-todo.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VTODO simple-todo.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first empty-calendar.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first empty-file.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first recurring-work-events.ics -.run +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/test_command_line.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/test_parse_date.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/test_parse_timedelta.py +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/pyproject.toml +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/renovate.json +0 -0
- {ics_query-0.3.4 → ics_query-0.4.7}/tox.ini +0 -0
|
@@ -10,6 +10,46 @@ on:
|
|
|
10
10
|
workflow_dispatch:
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
|
+
|
|
14
|
+
version:
|
|
15
|
+
# determine the new version and possibly switch to the new tag that we run on
|
|
16
|
+
name: "Determine a new version"
|
|
17
|
+
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
outputs:
|
|
20
|
+
# see https://docs.github.com/de/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#example-usage-of-the-jobs-context
|
|
21
|
+
version: ${{ steps.version.outputs.version }}
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- name: "Get tags"
|
|
26
|
+
uses: actions-ecosystem/action-get-latest-tag@v1
|
|
27
|
+
id: get-latest-tag
|
|
28
|
+
|
|
29
|
+
- name: "Calculate new version"
|
|
30
|
+
uses: actions-ecosystem/action-bump-semver@v1
|
|
31
|
+
id: bump-semver
|
|
32
|
+
with:
|
|
33
|
+
current_version: ${{ steps.get-latest-tag.outputs.tag }}
|
|
34
|
+
level: patch
|
|
35
|
+
|
|
36
|
+
- name: "Determine version to use"
|
|
37
|
+
id: version
|
|
38
|
+
run: |
|
|
39
|
+
if [ "$GITHUB_REF" == "refs/heads/main" ]; then
|
|
40
|
+
TAG="${{ steps.bump-semver.outputs.new_version }}"
|
|
41
|
+
echo "On branch main. Using new tag version $TAG."
|
|
42
|
+
git config user.name "${GITHUB_ACTOR}"
|
|
43
|
+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
|
44
|
+
MESSAGE="${TAG}: automatic release"
|
|
45
|
+
git tag -a "${TAG}" -m "${MESSAGE}"
|
|
46
|
+
git push origin "${TAG}"
|
|
47
|
+
else
|
|
48
|
+
TAG="${{ steps.get-latest-tag.outputs.tag }}"
|
|
49
|
+
echo "On tag $TAG. Using that version."
|
|
50
|
+
fi
|
|
51
|
+
echo "version=$TAG" >> $GITHUB_OUTPUT
|
|
52
|
+
|
|
13
53
|
run-tests:
|
|
14
54
|
strategy:
|
|
15
55
|
matrix:
|
|
@@ -24,6 +64,8 @@ jobs:
|
|
|
24
64
|
|
|
25
65
|
runs-on: ${{ matrix.config[2] }}
|
|
26
66
|
name: ${{ matrix.config[1] }}
|
|
67
|
+
needs:
|
|
68
|
+
- version
|
|
27
69
|
steps:
|
|
28
70
|
- uses: actions/checkout@v4
|
|
29
71
|
- name: Set up Python
|
|
@@ -34,6 +76,10 @@ jobs:
|
|
|
34
76
|
run: |
|
|
35
77
|
python -m pip install --upgrade pip
|
|
36
78
|
pip install tox
|
|
79
|
+
- name: "Use version ${{ needs.version.outputs.version }}"
|
|
80
|
+
run: |
|
|
81
|
+
git fetch
|
|
82
|
+
git checkout ${{ needs.version.outputs.version }}
|
|
37
83
|
- name: Test
|
|
38
84
|
run: |
|
|
39
85
|
tox -e ${{ matrix.config[1] }}
|
|
@@ -44,13 +90,14 @@ jobs:
|
|
|
44
90
|
if-no-files-found: ignore
|
|
45
91
|
retention-days: 1
|
|
46
92
|
compression-level: 0
|
|
47
|
-
|
|
93
|
+
|
|
48
94
|
deploy-tag-to-pypi:
|
|
49
95
|
name: Publish Package on PyPI
|
|
50
96
|
# only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
|
|
51
|
-
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
97
|
+
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
|
|
52
98
|
needs:
|
|
53
99
|
- run-tests
|
|
100
|
+
- version
|
|
54
101
|
runs-on: ubuntu-latest
|
|
55
102
|
# This environment stores the TWINE_USERNAME and TWINE_PASSWORD
|
|
56
103
|
# see https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment
|
|
@@ -74,6 +121,10 @@ jobs:
|
|
|
74
121
|
pip install --upgrade wheel twine build
|
|
75
122
|
- name: remove old files
|
|
76
123
|
run: rm -rf dist/*
|
|
124
|
+
- name: "Use version ${{ needs.version.outputs.version }}"
|
|
125
|
+
run: |
|
|
126
|
+
git fetch
|
|
127
|
+
git checkout ${{ needs.version.outputs.version }}
|
|
77
128
|
- name: build distribution files
|
|
78
129
|
run: python -m build
|
|
79
130
|
- name: deploy to pypi
|
|
@@ -110,10 +161,11 @@ jobs:
|
|
|
110
161
|
github-release:
|
|
111
162
|
name: "Publish GitHub Release"
|
|
112
163
|
# only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
|
|
113
|
-
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
164
|
+
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
|
|
114
165
|
needs:
|
|
115
166
|
- run-tests
|
|
116
167
|
- deploy-tag-to-pypi
|
|
168
|
+
- version
|
|
117
169
|
runs-on: ubuntu-latest
|
|
118
170
|
steps:
|
|
119
171
|
- uses: actions/checkout@v4
|
|
@@ -122,6 +174,10 @@ jobs:
|
|
|
122
174
|
pattern: dist-*
|
|
123
175
|
path: dist
|
|
124
176
|
- run: ls -R dist
|
|
177
|
+
- name: Debug
|
|
178
|
+
run: |
|
|
179
|
+
echo "Runnning for tag ${{ needs.version.outputs.version }}"
|
|
180
|
+
git status
|
|
125
181
|
- name: create release
|
|
126
182
|
uses: ncipollo/release-action@v1
|
|
127
183
|
with:
|
|
@@ -129,3 +185,4 @@ jobs:
|
|
|
129
185
|
body: "For a list of changes, please refer to the [Changelog](https://github.com/niccokunzmann/ics-query#changelog)."
|
|
130
186
|
generateReleaseNotes: false
|
|
131
187
|
artifacts: "dist/dist-exe-windows-latest/ics-query.exe"
|
|
188
|
+
tag: ${{ needs.version.outputs.version }}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: ics-query
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.7
|
|
4
4
|
Summary: Find out what happens in ICS calendar files - query and filter RFC 5545 compatible .ics files for events, journals, TODOs and more.
|
|
5
5
|
Project-URL: Homepage, https://github.com/niccokunzmann/ics-query/
|
|
6
6
|
Project-URL: Repository, https://github.com/niccokunzmann/ics-query/
|
|
7
|
-
Project-URL: source_archive, https://github.com/niccokunzmann/ics-query/archive/
|
|
7
|
+
Project-URL: source_archive, https://github.com/niccokunzmann/ics-query/archive/1432c164178db5b0fd8bcc7927fce86af0f684d2.zip
|
|
8
8
|
Project-URL: Issues, https://github.com/niccokunzmann/ics-query/issues
|
|
9
9
|
Project-URL: Documentation, https://github.com/niccokunzmann/ics-query/
|
|
10
10
|
Project-URL: Changelog, https://github.com/niccokunzmann/ics-query/#changelog
|
|
@@ -1078,7 +1078,12 @@ tox -e ruff
|
|
|
1078
1078
|
|
|
1079
1079
|
### New Release
|
|
1080
1080
|
|
|
1081
|
-
|
|
1081
|
+
Renovate updates the dependencies automatically on the `main` branch.
|
|
1082
|
+
New commits on `main` are automatically published with an increased
|
|
1083
|
+
PATCH version number.
|
|
1084
|
+
|
|
1085
|
+
To release a new version with a new MINOR or MAJOR version number change,
|
|
1086
|
+
follow these steps:
|
|
1082
1087
|
|
|
1083
1088
|
1. edit the Changelog Section
|
|
1084
1089
|
2. create a commit and push it
|
|
@@ -1086,8 +1091,8 @@ To release new versions,
|
|
|
1086
1091
|
4. create a tag and push it
|
|
1087
1092
|
|
|
1088
1093
|
```shell
|
|
1089
|
-
git tag v0.1.
|
|
1090
|
-
git push origin v0.1.
|
|
1094
|
+
git tag v0.1.0
|
|
1095
|
+
git push origin v0.1.0
|
|
1091
1096
|
```
|
|
1092
1097
|
|
|
1093
1098
|
5. Notify the issues about their release
|
|
@@ -1098,6 +1103,11 @@ We automatically release the versions that only update dependencies.
|
|
|
1098
1103
|
If the version you installed does not show up here, only the dependencies
|
|
1099
1104
|
have been updated.
|
|
1100
1105
|
|
|
1106
|
+
- v0.4.1
|
|
1107
|
+
|
|
1108
|
+
- Automatic release with patch level version number increased
|
|
1109
|
+
- Increase patch version instead of minor version for automatic releases
|
|
1110
|
+
|
|
1101
1111
|
- v0.3.4
|
|
1102
1112
|
|
|
1103
1113
|
- Update dependencies
|
|
@@ -368,7 +368,12 @@ tox -e ruff
|
|
|
368
368
|
|
|
369
369
|
### New Release
|
|
370
370
|
|
|
371
|
-
|
|
371
|
+
Renovate updates the dependencies automatically on the `main` branch.
|
|
372
|
+
New commits on `main` are automatically published with an increased
|
|
373
|
+
PATCH version number.
|
|
374
|
+
|
|
375
|
+
To release a new version with a new MINOR or MAJOR version number change,
|
|
376
|
+
follow these steps:
|
|
372
377
|
|
|
373
378
|
1. edit the Changelog Section
|
|
374
379
|
2. create a commit and push it
|
|
@@ -376,8 +381,8 @@ To release new versions,
|
|
|
376
381
|
4. create a tag and push it
|
|
377
382
|
|
|
378
383
|
```shell
|
|
379
|
-
git tag v0.1.
|
|
380
|
-
git push origin v0.1.
|
|
384
|
+
git tag v0.1.0
|
|
385
|
+
git push origin v0.1.0
|
|
381
386
|
```
|
|
382
387
|
|
|
383
388
|
5. Notify the issues about their release
|
|
@@ -388,6 +393,11 @@ We automatically release the versions that only update dependencies.
|
|
|
388
393
|
If the version you installed does not show up here, only the dependencies
|
|
389
394
|
have been updated.
|
|
390
395
|
|
|
396
|
+
- v0.4.1
|
|
397
|
+
|
|
398
|
+
- Automatic release with patch level version number increased
|
|
399
|
+
- Increase patch version instead of minor version for automatic releases
|
|
400
|
+
|
|
391
401
|
- v0.3.4
|
|
392
402
|
|
|
393
403
|
- Update dependencies
|
|
@@ -18,6 +18,7 @@ try:
|
|
|
18
18
|
except ModuleNotFoundError:
|
|
19
19
|
__version__ = version = "0.0dev0"
|
|
20
20
|
__version_tuple__ = version_tuple = (0, 0, "dev0")
|
|
21
|
+
import sys
|
|
21
22
|
from importlib.metadata import version as get_version
|
|
22
23
|
|
|
23
24
|
cli_version = f"""{__version__}
|
|
@@ -40,6 +41,9 @@ for module in modules:
|
|
|
40
41
|
except ModuleNotFoundError: # noqa: PERF203
|
|
41
42
|
cli_version += f"{module}: not installed\n"
|
|
42
43
|
|
|
44
|
+
cli_version += f"""
|
|
45
|
+
Python: {sys.version}"""
|
|
46
|
+
|
|
43
47
|
__all__ = [
|
|
44
48
|
"__version__",
|
|
45
49
|
"version",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# see https://github.com/actions-ecosystem/action-push-tag
|
|
3
|
-
#
|
|
4
|
-
name: Update minor releases for updates to main.
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
release:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v4
|
|
16
|
-
|
|
17
|
-
- uses: actions-ecosystem/action-get-latest-tag@v1
|
|
18
|
-
id: get-latest-tag
|
|
19
|
-
|
|
20
|
-
- uses: actions-ecosystem/action-bump-semver@v1
|
|
21
|
-
id: bump-semver
|
|
22
|
-
with:
|
|
23
|
-
current_version: ${{ steps.get-latest-tag.outputs.tag }}
|
|
24
|
-
level: minor
|
|
25
|
-
|
|
26
|
-
- uses: actions-ecosystem/action-push-tag@v1
|
|
27
|
-
with:
|
|
28
|
-
tag: ${{ steps.bump-semver.outputs.new_version }}
|
|
29
|
-
message: '${{ steps.bump-semver.outputs.new_version }}: PR #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/all --tz Singapore one-event.ics -.run
RENAMED
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2019-03-04 multiple-calendars.ics -.run
RENAMED
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2019-03-04 one-event-twice.ics -.run
RENAMED
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2019-03-07 multiple-calendars.ics -.run
RENAMED
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/at 2024-08-20 Berlin-Los-Angeles.ics -.run
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/one-event-without-timezone.ics
RENAMED
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/calendars/recurring-work-events.ics
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VJOURNAL one-event.ics -.run
RENAMED
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VJOURNAL simple-journal.ics -.run
RENAMED
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first -c VTODO simple-todo.ics -.run
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ics_query-0.3.4 → ics_query-0.4.7}/ics_query/tests/runs/first recurring-work-events.ics -.run
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|