Skip to content

Commit 91ed16d

Browse files
committed
more infra changes
1 parent 150b085 commit 91ed16d

19 files changed

Lines changed: 57 additions & 49 deletions

File tree

.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

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ include MANIFEST.in
77

88
exclude example.ipynb
99

10+
prune docs
11+
prune examples
1012
prune tests
1113
prune developer
1214
prune .tox

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.")

examples/saxs.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
Small-angle X-ray scattering
1111
============================
1212
13-
Small-angle X-ray scattering (SAXS) can be extracted using Scatterkit. To follow this how-to
14-
guide, you should download the :download:`topology <water.tpr>` and the
13+
Small-angle X-ray scattering (SAXS) can be extracted using Scatterkit. To follow this
14+
how-to guide, you should download the :download:`topology <water.tpr>` and the
1515
:download:`trajectory <water.trr>` files of the water system.
1616
1717
For more details on the theory see :ref:`saxs-explanations`.
@@ -24,8 +24,8 @@
2424
import MDAnalysis as mda
2525
from MDAnalysis.analysis.rdf import InterRDF
2626

27-
from scatterkit.lib.math import atomic_form_factor, rdf_structure_factor
2827
import scatterkit
28+
from scatterkit.lib.math import atomic_form_factor, rdf_structure_factor
2929

3030
# %%
3131
# The `water` system consists of 510 water molecules in the liquid state. The
@@ -47,8 +47,8 @@
4747
# Extract small angle x-ray scattering (SAXS) intensities
4848
# -------------------------------------------------------
4949
#
50-
# Let us use the :class:`scatterkit.Saxs` class of Scatterkit and apply it to all atoms in the
51-
# system:
50+
# Let us use the :class:`scatterkit.Saxs` class of Scatterkit and apply it to all atoms
51+
# in the system:
5252

5353
saxs = scatterkit.Saxs(u.atoms).run(stop=30)
5454

@@ -115,9 +115,9 @@
115115
# %%
116116
# Let us plot the results for the structure factor, the squared atomic form factor as
117117
# well scattering intensities together. For computing the atomic form factor we will use
118-
# :func:`scatterkit.lib.math.atomic_form_factor`. Note that for the ``structure_factors``
119-
# and the ``scattering_intensities` we access the results directly from the ``results``
120-
# attribute without storing them in individual variables as before:
118+
# :func:`scatterkit.lib.math.atomic_form_factor`. Note that for the
119+
# ``structure_factors`` and the ``scattering_intensities` we access the results directly
120+
# from the ``results`` attribute without storing them in individual variables as before:
121121

122122
fig2, ax2 = plt.subplots(nrows=3, sharex=True, layout="constrained")
123123

pyproject.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ classifiers = [
3030
"Operating System :: Microsoft :: Windows",
3131
"Programming Language :: Python",
3232
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",
3534
"Programming Language :: Python :: 3.12",
3635
"Programming Language :: Python :: 3.13",
36+
"Programming Language :: Python :: 3.14",
3737
"Topic :: Scientific/Engineering",
3838
"Topic :: Scientific/Engineering :: Bio-Informatics",
3939
"Topic :: Scientific/Engineering :: Chemistry",
@@ -57,13 +57,8 @@ maintainers = [
5757
]
5858
name = "scatterkit"
5959
readme = "README.rst"
60-
requires-python = ">=3.10"
61-
dependencies = [
62-
"mdacli>=0.1.28",
63-
"MDAnalysis>=2.8.0",
64-
"typing_extensions",
65-
"maicos",
66-
]
60+
requires-python = ">=3.11"
61+
dependencies = ["maicos>=0.11"]
6762

6863
[project.optional-dependencies]
6964
examples = ["matplotlib"]

0 commit comments

Comments
 (0)