public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-ntplib] rawhide: Update to 0.4.0
@ 2026-09-02  2:48 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-09-02  2:48 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-ntplib
            Branch : rawhide
            Commit : 4b6e723611be02f43af6b4e4f25955818eede6b4
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-23T00:48:35-03:00
            Stats  : +21/-16 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-ntplib/c/4b6e723611be02f43af6b4e4f25955818eede6b4?branch=rawhide

            Log:
            Update to 0.4.0

Resolves: rhbz#1829034

---
diff --git a/.gitignore b/.gitignore
index 9c639ce..b897e70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /ntplib-0.3.1.tar.gz
 /ntplib-0.3.2.tar.gz
 /ntplib-0.3.3.tar.gz
+/ntplib-0.4.0.tar.gz

diff --git a/python-ntplib.spec b/python-ntplib.spec
index 2358ff9..d0f812c 100644
--- a/python-ntplib.spec
+++ b/python-ntplib.spec
@@ -1,13 +1,11 @@
-# tests require internet connection
-%global with_tests 0
 Name:           python-ntplib
-Version:        0.3.3
-Release:        42%{?dist}
+Version:        0.4.0
+Release:        1%{?dist}
 Summary:        Python module that offers a simple interface to query NTP servers
 
 License:        MIT
-URL:            http://pypi.python.org/pypi/ntplib/
-Source0:        https://pypi.python.org/packages/source/n/ntplib/ntplib-%{?version}.tar.gz
+URL:            https://github.com/cf-natali/ntplib
+Source0:        %{url}/archive/%{version}/ntplib-%{version}.tar.gz
 
 BuildArch:      noarch
 
@@ -22,7 +20,8 @@ modules, it should work on any platform with a Python implementation.
 %package -n python3-ntplib
 Summary:        Python 3 module that offers a simple interface to query NTP servers
 
-BuildRequires:	python3-devel
+BuildRequires:  python3-devel
+BuildRequires:  python3-pytest
 %generate_buildrequires
 %pyproject_buildrequires
 
@@ -38,26 +37,31 @@ Python 3 version.
 
 
 %prep
-%setup -q -n ntplib-%{?version}
+%autosetup -p1 -n ntplib-%{version}
 
 %build
 %pyproject_wheel
 
 %install
 %pyproject_install
+%pyproject_save_files ntplib
 
-%if 0%{?with_tests}
 
-%{__python3} test_ntplib.py
-%endif # with_tests
+%check
+%pyproject_check_import
+# test_request and test_helpers require internet access to pool.ntp.org
+%pytest -k "test_basic"
 
 
-%files -n python3-ntplib
-%doc CHANGELOG
-%{python3_sitelib}/ntplib*
-%{python3_sitelib}/__pycache__/*
+%files -n python3-ntplib -f %{pyproject_files}
+%license LICENSE
+%doc CHANGELOG README.md
 
 %changelog
+* Sun Aug 23 2026 Filipe Rosset <rosset.filipe@gmail.com> - 0.4.0-1
+- Update to 0.4.0
+- Resolves: rhbz#1829034
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-42
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index 0d5f041..13935ca 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c7cc8e9b09f40c84819859d70b7784ca  ntplib-0.3.3.tar.gz
+SHA512 (ntplib-0.4.0.tar.gz) = ad735b1bccc4dc149622423b2877dc1d4b461f245dd0bd5b0cf963918ea63806772783e03eb8a66c75934746981fbd28789f19efa339c87b2f83e8218ee4a4c3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-02  2:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-02  2:48 [rpms/python-ntplib] rawhide: Update to 0.4.0 Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox