nocturne-shift 2.0.2__tar.gz → 2.0.3__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.
Files changed (42) hide show
  1. nocturne_shift-2.0.3/.github/workflows/release.yml +64 -0
  2. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.github/workflows/test.yml +1 -1
  3. {nocturne_shift-2.0.2/src/nocturne_shift.egg-info → nocturne_shift-2.0.3}/PKG-INFO +1 -1
  4. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3/src/nocturne_shift.egg-info}/PKG-INFO +1 -1
  5. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift.egg-info/SOURCES.txt +1 -0
  6. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift.egg-info/scm_file_list.json +1 -0
  7. nocturne_shift-2.0.3/src/nocturne_shift.egg-info/scm_version.json +8 -0
  8. nocturne_shift-2.0.2/src/nocturne_shift.egg-info/scm_version.json +0 -8
  9. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.claude/skills/pytest-review/SKILL.md +0 -0
  10. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.claude/skills/pytest-review/references/mock-pitfalls.md +0 -0
  11. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.claude/skills/pytest-review/references/pytest-rosetta.md +0 -0
  12. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.claude/skills/pytest-review/scripts/mutation_check.py +0 -0
  13. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.github/workflows/publish-pypi.yml +0 -0
  14. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.github/workflows/publish-testpypi.yml +0 -0
  15. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/.gitignore +0 -0
  16. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/LICENSE +0 -0
  17. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/Makefile +0 -0
  18. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/README.md +0 -0
  19. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/docs/README.md +0 -0
  20. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/pyproject.toml +0 -0
  21. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/pytest.ini +0 -0
  22. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/setup.cfg +0 -0
  23. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/__init__.py +0 -0
  24. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/bin/get_sunrise_sunset.py +0 -0
  25. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/bin/is_day_or_night.py +0 -0
  26. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/bin/settings.py +0 -0
  27. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/cli.py +0 -0
  28. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/data_store.py +0 -0
  29. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/schemas/com.github.christophermca.night-shift.gschema.xml +0 -0
  30. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift/schemas/gschemas.compiled +0 -0
  31. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift.egg-info/dependency_links.txt +0 -0
  32. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift.egg-info/entry_points.txt +0 -0
  33. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift.egg-info/requires.txt +0 -0
  34. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/src/nocturne_shift.egg-info/top_level.txt +0 -0
  35. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/.gitignore +0 -0
  36. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/conftest.py +0 -0
  37. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/test_cli.py +0 -0
  38. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/test_data_store.py +0 -0
  39. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/test_get_sunrise_sunset.py +0 -0
  40. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/test_is_day_or_night.py +0 -0
  41. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/test_plugins.py +0 -0
  42. {nocturne_shift-2.0.2 → nocturne_shift-2.0.3}/tests/test_settings.py +0 -0
@@ -0,0 +1,64 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v\d+.\d+.\d+'
7
+ workflow_dispatch:
8
+ inputs:
9
+ tag:
10
+ description: "Existing release tag, e.g. v2.0.0"
11
+ required: true
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ create-release:
18
+ runs-on: ubuntu-latest
19
+ permissions:
20
+ contents: write
21
+ env:
22
+ TAG: ${{ inputs.tag || github.ref_name }}
23
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24
+ steps:
25
+ - uses: actions/checkout@v7
26
+ with:
27
+ ref: ${{ env.TAG }}
28
+ fetch-depth: 0
29
+
30
+ - name: Validate tag is on main
31
+ run: |
32
+ git fetch --quiet origin main
33
+ if ! git merge-base --is-ancestor HEAD origin/main; then
34
+ echo "::error:: $TAG is not on main. Merge into main, then tag the mergw commit."
35
+ exit 1
36
+ fi
37
+
38
+ - uses: actions/setup-python@v7
39
+ with:
40
+ python-version: "3.12"
41
+
42
+ - name: Build the wheel and dist
43
+ run: |
44
+ make rebuild
45
+ ls dist
46
+
47
+ - name: Check the version matches the tag
48
+ run: |
49
+ expected="${TAG#v}"
50
+ for file in dist/*; do
51
+ case "$file" in
52
+ *-"$expected"-*.whl | *-"$expected".tar.gz) ;;
53
+ *) echo "::error::$file is not version $expected"; exit 1 ;;
54
+ esac
55
+ done
56
+
57
+ - name: Create Draft Github Release
58
+ run: |
59
+ gh release create "$TAG" dist/* \
60
+ --verify-tag \
61
+ --title "nocturne-shift ${TAG#v}" \
62
+ --generate-notes \
63
+ --fail-on-no-commits \
64
+ --draft
@@ -5,7 +5,7 @@ permissions:
5
5
  on:
6
6
  push:
7
7
  pull_request:
8
-
8
+
9
9
  jobs:
10
10
  test:
11
11
  runs-on: ubuntu-latest
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nocturne-shift
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: Shift between light and dark with the sun: sunrise/sunset times and day or night
5
5
  Author-email: Christopher McAdams <mca.christopher@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nocturne-shift
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: Shift between light and dark with the sun: sunrise/sunset times and day or night
5
5
  Author-email: Christopher McAdams <mca.christopher@gmail.com>
6
6
  License-Expression: MIT
@@ -10,6 +10,7 @@ pytest.ini
10
10
  .claude/skills/pytest-review/scripts/mutation_check.py
11
11
  .github/workflows/publish-pypi.yml
12
12
  .github/workflows/publish-testpypi.yml
13
+ .github/workflows/release.yml
13
14
  .github/workflows/test.yml
14
15
  docs/README.md
15
16
  src/nocturne_shift/__init__.py
@@ -6,6 +6,7 @@
6
6
  ".claude/skills/pytest-review/scripts/mutation_check.py",
7
7
  ".github/workflows/publish-pypi.yml",
8
8
  ".github/workflows/publish-testpypi.yml",
9
+ ".github/workflows/release.yml",
9
10
  ".github/workflows/test.yml",
10
11
  ".gitignore",
11
12
  "LICENSE",
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "2.0.3",
3
+ "distance": 0,
4
+ "node": "ge31d0da",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-11-27"
8
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "2.0.2",
3
- "distance": 0,
4
- "node": "gead0531",
5
- "dirty": false,
6
- "branch": "HEAD",
7
- "node_date": "2026-11-25"
8
- }
File without changes
File without changes
File without changes
File without changes