Skip to content

Commit 62f234b

Browse files
authored
Infrastructure updates (#7)
1 parent 71a7937 commit 62f234b

21 files changed

Lines changed: 77 additions & 110 deletions

File tree

.codecov.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
coverage:
2+
ignore:
3+
- "examples/.*"
4+
- "src/scatterkit/_version.py"
5+
- "tests/.*"
6+
status:
7+
project:
8+
default:
9+
target: 90%
10+
patch: false
11+
12+
comment: false

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: setup Python
5050
uses: actions/setup-python@v5
5151
with:
52-
python-version: "3.13"
52+
python-version: "3.14"
5353
check-latest: true
5454

5555
- name: Install dependencies

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: setup Python
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.13"
23+
python-version: "3.14"
2424
check-latest: true
2525

2626
- name: install dependencies

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v5
1818
with:
19-
python-version: "3.13"
19+
python-version: "3.14"
2020
check-latest: true
2121

2222
- name: Install dependencies

.github/workflows/tests-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.10", "3.13"]
13+
python-version: ["3.11", "3.14"]
1414

1515
steps:
1616
- uses: actions/checkout@v4

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
matrix:
1818
include:
1919
- os: ubuntu-24.04
20-
python-version: "3.10"
20+
python-version: "3.11"
2121
- os: ubuntu-24.04
22-
python-version: "3.13"
22+
python-version: "3.14"
2323
- os: macos-15
24-
python-version: "3.13"
24+
python-version: "3.14"
2525
- os: windows-2025
26-
python-version: "3.13"
26+
python-version: "3.14"
2727

2828
steps:
2929
- uses: actions/checkout@v4

CHANGELOG.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
CHANGELOG file
22
--------------
33

4-
The rules for scatterkit's CHANGELOG file:
5-
6-
- entries are sorted newest-first.
7-
- summarize sets of changes (don't reproduce every git log comment here).
8-
- don't ever delete anything.
9-
- keep the format consistent (79 char width, Y/M/D date format) and do not
10-
use tabs but use spaces for formatting
11-
12-
.. inclusion-marker-changelog-start
4+
..
5+
The rules for scatterkit's CHANGELOG file:
6+
- entries are sorted newest-first.
7+
- summarize sets of changes (don't reproduce every git log comment here).
8+
- don't ever delete anything.
9+
- keep the format consistent (79 char width, Y/M/D date format) and do not
10+
use tabs but use spaces for formatting
1311
1412
v0.0.1 (2025/08/05)
1513
-------------------
1614
Kira Fischer, Philip Loche
1715

16+
- Update to Python 3.14 support
1817
- Migrated code from maicos to scatterkit
19-
20-
.. inclusion-marker-changelog-end

MANIFEST.in

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
graft src
22

3-
include AUTHORS.rst
4-
include CHANGELOG.rst
5-
include README.md
6-
include MANIFEST.in
7-
8-
exclude example.ipynb
3+
include *.rst
4+
include LICENSE
95

6+
prune docs
7+
prune examples
108
prune tests
119
prune developer
1210
prune .tox
1311

12+
exclude .codecov.yml
1413
exclude .gitattributes
1514
exclude .gitignore
15+
exclude .readthedocs.yml
1616
exclude tox.ini
1717

1818
global-exclude *.py[cod] __pycache__/* *.so *.dylib
19-

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Documentation
1515
For details, tutorials, and examples, visit our official `documentation`_. We also
1616
provide the `latest documentation`_ for the current development version of Scatterkit.
1717

18-
.. _`documentation`: https://scatterkit.readthedocs.io
19-
.. _`latest documentation`: https://scatterkit.readthedocs.io/en/latest
18+
.. _`documentation`: https://maicos-devel.github.io/scatterkit
19+
.. _`latest documentation`: https://maicos-devel.github.io/scatterkit/latest
2020

2121
.. inclusion-readme-installation-start
2222

developer/check_changelog.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,21 @@ class ChangelogError(Exception):
2222
workfile = f.read()
2323

2424
if file.strip() == workfile.strip():
25-
raise ChangelogError("You have not updated the CHANGELOG file. Please "
26-
f"add a summary of your additions to {changelog}.")
25+
# Check for changed files and ignore .github/ changes
26+
head_commit = repo.head.commit
27+
diff = head_commit.diff("origin/main")
28+
changed_files = []
29+
for x in diff:
30+
if x.a_blob.path not in changed_files:
31+
changed_files.append(x.a_blob.path)
32+
if x.b_blob is not None and x.b_blob.path not in changed_files:
33+
changed_files.append(x.b_blob.path)
34+
changed_files = [x for x in changed_files if not x.startswith(".github/")]
35+
36+
if len(changed_files) > 0:
37+
raise ChangelogError("You have not updated the CHANGELOG file. Please "
38+
f"add a summary of your additions to {changelog}.")
39+
else:
40+
print("No changes detected.")
2741
else:
2842
print("CHANGELOG is up to date.")

0 commit comments

Comments
 (0)