diff -pruN 2.6.1-1/.github/workflows/aa-ci.yml 2.6.2-1/.github/workflows/aa-ci.yml
--- 2.6.1-1/.github/workflows/aa-ci.yml	2024-11-15 01:08:09.000000000 +0000
+++ 2.6.2-1/.github/workflows/aa-ci.yml	2025-09-24 17:07:39.000000000 +0000
@@ -10,7 +10,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
+        python-version: ['3.10', '3.11', '3.12', '3.13']
 
     steps:
       - uses: actions/checkout@main
diff -pruN 2.6.1-1/.github/workflows/coverage.yml 2.6.2-1/.github/workflows/coverage.yml
--- 2.6.1-1/.github/workflows/coverage.yml	2024-11-15 01:08:09.000000000 +0000
+++ 2.6.2-1/.github/workflows/coverage.yml	2025-09-24 17:07:39.000000000 +0000
@@ -17,11 +17,11 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@main
         with:
-          python-version: '3.12'
+          python-version: '3.13'
       - name: Install coverage
         run: pip install coverage
       - name: Install astroalign dependencies
-        run: pip install "numpy>=1.11" "scipy>=0.15" scikit-image sep-pjw
+        run: pip install numpy scipy scikit-image "sep>=1.4.0"
       - name: Install test dependencies
         run: pip install -r tests/requirements.txt
       - name: Run coverage
diff -pruN 2.6.1-1/astroalign.py 2.6.2-1/astroalign.py
--- 2.6.1-1/astroalign.py	2024-11-15 01:08:09.000000000 +0000
+++ 2.6.2-1/astroalign.py	2025-09-24 17:07:39.000000000 +0000
@@ -42,7 +42,7 @@ functions, seeing and atmospheric condit
 """
 
 
-__version__ = "2.6.1"
+__version__ = "2.6.2"
 
 __all__ = [
     "MIN_MATCHES_FRACTION",
@@ -534,7 +534,7 @@ def register(
 
 def _find_sources(img, detection_sigma=5, min_area=5, mask=None):
     """Return sources (x, y) sorted by brightness."""
-    import sep_pjw as sep
+    import sep
 
     image = img.astype("float32")
     bkg = sep.Background(image, mask=mask)
diff -pruN 2.6.1-1/debian/changelog 2.6.2-1/debian/changelog
--- 2.6.1-1/debian/changelog	2024-11-15 07:55:19.000000000 +0000
+++ 2.6.2-1/debian/changelog	2025-09-26 15:48:20.000000000 +0000
@@ -1,3 +1,12 @@
+astroalign (2.6.2-1) unstable; urgency=medium
+
+  * d/watch: update to format version 5.0 Switch upstream to Github
+  * New upstream version 2.6.2
+  * Drop Revert-use-of-sep-pjw-back-to-original-sep.patch: applied upstream
+  * Push Standards-Version to 4.7.2, no changes needed
+
+ -- Ole Streicher <olebole@debian.org>  Fri, 26 Sep 2025 17:48:20 +0200
+
 astroalign (2.6.1-1) unstable; urgency=medium
 
   * New upstream version 2.6.1
diff -pruN 2.6.1-1/debian/control 2.6.2-1/debian/control
--- 2.6.1-1/debian/control	2024-11-15 07:55:19.000000000 +0000
+++ 2.6.2-1/debian/control	2025-09-26 15:47:56.000000000 +0000
@@ -1,21 +1,23 @@
 Source: astroalign
+Standards-Version: 4.7.2
 Maintainer: Debian Astronomy Team <debian-astro-maintainers@lists.alioth.debian.org>
-Uploaders: Ole Streicher <olebole@debian.org>
+Uploaders:
+ Ole Streicher <olebole@debian.org>,
 Section: python
 Priority: optional
-Build-Depends: debhelper-compat (= 13),
-               dh-python,
-               pybuild-plugin-pyproject,
-               python3-all,
-               python3-astropy <!nocheck>,
-               python3-ccdproc <!nocheck>,
-               python3-numpy,
-               python3-pytest <!nocheck>,
-               python3-scipy,
-               python3-sep,
-               python3-setuptools,
-               python3-skimage
-Standards-Version: 4.7.0
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-python,
+ pybuild-plugin-pyproject,
+ python3-all,
+ python3-astropy <!nocheck>,
+ python3-ccdproc <!nocheck>,
+ python3-numpy,
+ python3-pytest <!nocheck>,
+ python3-scipy,
+ python3-sep,
+ python3-setuptools,
+ python3-skimage,
 Vcs-Browser: https://salsa.debian.org/debian-astro-team/astroalign
 Vcs-Git: https://salsa.debian.org/debian-astro-team/astroalign.git
 Homepage: https://github.com/quatrope/astroalign
@@ -23,10 +25,12 @@ Rules-Requires-Root: no
 
 Package: python3-astroalign
 Architecture: all
-Depends: ${misc:Depends},
-         ${python3:Depends},
-         python3-sep
-Recommends: python3-astropy
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-sep,
+Recommends:
+ python3-astropy,
 Description: Astrometric registration of images when no WCS info is available
  Astroalign is a Python module that will try to align two stellar
  astronomical images, especially when there is no WCS information
diff -pruN 2.6.1-1/debian/patches/Revert-use-of-sep-pjw-back-to-original-sep.patch 2.6.2-1/debian/patches/Revert-use-of-sep-pjw-back-to-original-sep.patch
--- 2.6.1-1/debian/patches/Revert-use-of-sep-pjw-back-to-original-sep.patch	2024-11-15 07:55:19.000000000 +0000
+++ 2.6.2-1/debian/patches/Revert-use-of-sep-pjw-back-to-original-sep.patch	1970-01-01 00:00:00.000000000 +0000
@@ -1,48 +0,0 @@
-From: Ole Streicher <olebole@debian.org>
-Date: Thu, 24 Oct 2024 16:19:20 +0200
-Subject: Revert use of sep-pjw back to original sep
-
-This is a workaround until there is a decision on how to continue with both
-packages.
-
-See https://github.com/kbarbary/sep/issues/159 for discussion.
----
- astroalign.py       | 2 +-
- tests/test_align.py | 4 ++--
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/astroalign.py b/astroalign.py
-index b847460..dba6474 100644
---- a/astroalign.py
-+++ b/astroalign.py
-@@ -534,7 +534,7 @@ def register(
- 
- def _find_sources(img, detection_sigma=5, min_area=5, mask=None):
-     """Return sources (x, y) sorted by brightness."""
--    import sep_pjw as sep
-+    import sep
- 
-     image = img.astype("float32")
-     bkg = sep.Background(image, mask=mask)
-diff --git a/tests/test_align.py b/tests/test_align.py
-index 230e793..f4aa304 100644
---- a/tests/test_align.py
-+++ b/tests/test_align.py
-@@ -265,7 +265,7 @@ class TestAlign(unittest.TestCase):
-         """Return the fraction of sources found in the reference image"""
-         # pixel comparison is not good, doesn't work. Compare catalogs.
-         full_algn = the_image.astype("float32")
--        import sep_pjw as sep
-+        import sep
- 
-         bkg = sep.Background(full_algn)
-         thresh = 5.0 * bkg.globalrms
-@@ -724,7 +724,7 @@ class TestColorImages(unittest.TestCase):
-         """Return the fraction of sources found in the reference image"""
-         # pixel comparison is not good, doesn't work. Compare catalogs.
-         full_algn = np.mean(the_image, axis=-1, dtype="float32")
--        import sep_pjw as sep
-+        import sep
- 
-         bkg = sep.Background(full_algn)
-         thresh = 5.0 * bkg.globalrms
diff -pruN 2.6.1-1/debian/patches/series 2.6.2-1/debian/patches/series
--- 2.6.1-1/debian/patches/series	2024-11-15 07:55:19.000000000 +0000
+++ 2.6.2-1/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-Revert-use-of-sep-pjw-back-to-original-sep.patch
diff -pruN 2.6.1-1/debian/watch 2.6.2-1/debian/watch
--- 2.6.1-1/debian/watch	2023-06-21 20:06:53.000000000 +0000
+++ 2.6.2-1/debian/watch	2025-09-26 15:47:56.000000000 +0000
@@ -1,3 +1,4 @@
-version=4
-opts=uversionmangle=s/(rc|a|b|c)/~$1/,filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/astroalign-$1\.tar\.gz/ \
-  https://github.com/quatrope/astroalign/tags .*/v?(\d\S+)\.tar\.gz
+Version: 5
+Template: Github
+Owner: quatrope
+Project: astroalign
diff -pruN 2.6.1-1/pyproject.toml 2.6.2-1/pyproject.toml
--- 2.6.1-1/pyproject.toml	2024-11-15 01:08:09.000000000 +0000
+++ 2.6.2-1/pyproject.toml	2025-09-24 17:07:39.000000000 +0000
@@ -9,8 +9,8 @@ description = "Astrometric Alignment of
 maintainers = [{ name = "Martin Beroiz", email = "martinberoiz@gmail.com" }]
 readme = "README.md"
 dynamic = ["version"]
-requires-python = ">=3.9"
-dependencies = ["numpy>=1.17", "scipy>=0.15", "scikit-image", "sep-pjw"]
+requires-python = ">=3.10"
+dependencies = ["numpy", "scipy", "scikit-image", "sep>=1.4.0"]
 license = { file = "LICENSE.txt" }
 keywords = [
     "astronomy",
diff -pruN 2.6.1-1/tests/test_align.py 2.6.2-1/tests/test_align.py
--- 2.6.1-1/tests/test_align.py	2024-11-15 01:08:09.000000000 +0000
+++ 2.6.2-1/tests/test_align.py	2025-09-24 17:07:39.000000000 +0000
@@ -265,7 +265,7 @@ class TestAlign(unittest.TestCase):
         """Return the fraction of sources found in the reference image"""
         # pixel comparison is not good, doesn't work. Compare catalogs.
         full_algn = the_image.astype("float32")
-        import sep_pjw as sep
+        import sep
 
         bkg = sep.Background(full_algn)
         thresh = 5.0 * bkg.globalrms
@@ -724,7 +724,7 @@ class TestColorImages(unittest.TestCase)
         """Return the fraction of sources found in the reference image"""
         # pixel comparison is not good, doesn't work. Compare catalogs.
         full_algn = np.mean(the_image, axis=-1, dtype="float32")
-        import sep_pjw as sep
+        import sep
 
         bkg = sep.Background(full_algn)
         thresh = 5.0 * bkg.globalrms
diff -pruN 2.6.1-1/tox.ini 2.6.2-1/tox.ini
--- 2.6.1-1/tox.ini	2024-11-15 01:08:09.000000000 +0000
+++ 2.6.2-1/tox.ini	2025-09-24 17:07:39.000000000 +0000
@@ -4,18 +4,18 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py{38,39,310,311}, style, docs, docstyle
+envlist = py{310,311,312,313}, style, docs, docstyle
 
 
 [gh-actions]
 python =
-    3.8: py38
-    3.9: py39
     3.10: py310
-    3.11: style, docstyle, docs, py311
+    3.11: py311
+    3.12: py312
+    3.13: style, docstyle, docs, py313
 
 
-[testenv:py{38,39,310,311}]
+[testenv:py{310,311,312,313}]
 usedevelop = False
 deps =
     astropy
@@ -32,7 +32,7 @@ skip_install = True
 usedevelop = False
 deps = flake8
 commands =
-    flake8 --ignore=E203 --max-line-length 90 astroalign.py setup.py tests {posargs}
+    flake8 --ignore=E203 --max-line-length 90 astroalign.py tests {posargs}
 
 
 [testenv:docstyle]
