Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-convertdate for openSUSE:Factory checked in at 2026-03-31 15:46:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-convertdate (Old) and /work/SRC/openSUSE:Factory/.python-convertdate.new.1999 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-convertdate" Tue Mar 31 15:46:33 2026 rev:12 rq:1343774 version:2.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-convertdate/python-convertdate.changes 2025-08-20 13:25:33.504986245 +0200 +++ /work/SRC/openSUSE:Factory/.python-convertdate.new.1999/python-convertdate.changes 2026-03-31 15:46:35.449179510 +0200 @@ -1,0 +2,7 @@ +Mon Mar 30 21:27:47 UTC 2026 - Dirk Müller <[email protected]> + +- update to 2.4.1: + * Issue #58: monthcalendar makes 6-day week + * Remove trailing commas in some month names + +------------------------------------------------------------------- Old: ---- v2.4.0.tar.gz New: ---- v2.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-convertdate.spec ++++++ --- /var/tmp/diff_new_pack.vYeW1a/_old 2026-03-31 15:46:36.157209121 +0200 +++ /var/tmp/diff_new_pack.vYeW1a/_new 2026-03-31 15:46:36.157209121 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-convertdate # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,14 +16,9 @@ # -%if 0%{?suse_version} > 1500 -%bcond_without libalternatives -%else -%bcond_with libalternatives -%endif %{?sle15_python_module_pythons} Name: python-convertdate -Version: 2.4.0 +Version: 2.4.1 Release: 0 Summary: Module for date conversions from and to Gregorian calendar License: MIT @@ -35,13 +30,6 @@ BuildRequires: python-rpm-macros Requires: python-PyMeeus >= 0.3.6 BuildArch: noarch -%if %{with libalternatives} -BuildRequires: alts -Requires: alts -%else -Requires(post): update-alternatives -Requires(postun): update-alternatives -%endif # SECTION test requirements BuildRequires: %{python_module PyMeeus >= 0.3.6} BuildRequires: %{python_module pytest-xdist} @@ -56,7 +44,6 @@ %prep %setup -q -n convertdate-%{version} -sed -i -e 's:, < 2020::g' setup.py %build export LC_ALL="en_US.UTF8" @@ -66,25 +53,14 @@ export LC_ALL="en_US.UTF8" %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%python_clone -a %{buildroot}%{_bindir}/censusgeocode %check export LC_ALL="en_US.UTF8" %pytest -n $(echo %{?_smp_mflags} | cut -c 3-) -%pre -%python_libalternatives_reset_alternative censusgeocode - -%post -%python_install_alternative censusgeocode - -%postun -%python_uninstall_alternative censusgeocode - %files %{python_files} %doc README.md %license LICENSE -%python_alternative %{_bindir}/censusgeocode %{python_sitelib}/convertdate %{python_sitelib}/convertdate-%{version}.dist-info ++++++ v2.4.0.tar.gz -> v2.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/.github/workflows/publish.yml new/convertdate-2.4.1/.github/workflows/publish.yml --- old/convertdate-2.4.0/.github/workflows/publish.yml 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/.github/workflows/publish.yml 2026-02-08 01:32:41.000000000 +0100 @@ -14,24 +14,24 @@ deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" cache: 'pip' - cache-dependency-path: setup.cfg + cache-dependency-path: pyproject.toml - name: Install build requirements run: | - python -m pip install -U pip - pip install build + python -m pip install -U pip build twine + pip install . - - run: make build + - run: make test - name: Publish package - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + run: make publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/.github/workflows/python.yml new/convertdate-2.4.1/.github/workflows/python.yml --- old/convertdate-2.4.0/.github/workflows/python.yml 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/.github/workflows/python.yml 2026-02-08 01:32:41.000000000 +0100 @@ -13,38 +13,39 @@ jobs: build: - runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, "3.10.0"] + python-version: + - '3.8' + - '3.9' + - '3.10' + - '3.11' + - '3.12' + - '3.13' + - '3.14' + os: + - ubuntu-latest + - macos-latest + + runs-on: ${{ matrix.os }} + steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v5 + - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: setup.cfg + cache-dependency-path: pyproject.toml + - name: Install run: | python -m pip install --upgrade pip wheel pip install ".[tests]" + - name: Test run: make cov - pylint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: 3.9 - cache: 'pip' - cache-dependency-path: setup.cfg - - name: Install - run: | - python -m pip install --upgrade pip pylint - pip install . - name: Pylint run: make pylint diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/Makefile new/convertdate-2.4.1/Makefile --- old/convertdate-2.4.0/Makefile 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/Makefile 2026-02-08 01:32:41.000000000 +0100 @@ -5,7 +5,8 @@ # http://opensource.org/licenses/MIT # Copyright (c) 2016, fitnr <fitnr@fakeisthenewreal> -.PHONY: all htmlcov test deploy format +.PHONY: all htmlcov test pylint cov format publish build clean + all: htmlcov: | test @@ -15,7 +16,7 @@ python -m unittest pylint: - pylint convertdate/ tests + pylint src/convertdate cov: python -m coverage run --branch --source=convertdate -m unittest @@ -25,8 +26,11 @@ black src/ tests/ isort src/convertdate/*.py src/convertdate/data/*.py tests/*.py -deploy: - rm -rf dist build - python -m build +publish: | build twine upload dist/* - git push; git push --tags + +build: | clean + python -m build + +clean: + rm -rf build dist diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/pyproject.toml new/convertdate-2.4.1/pyproject.toml --- old/convertdate-2.4.0/pyproject.toml 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/pyproject.toml 2026-02-08 01:32:41.000000000 +0100 @@ -3,14 +3,73 @@ # Licensed under the MIT license: # http://opensource.org/licenses/MIT # Copyright (c) 2020-2, fitnr <fitnr@fakeisthenewreal> +[project] +name = "convertdate" +description = "Converts between Gregorian dates and other calendar systems" +authors = [ + {name = "Neil Freeman", email = "[email protected]"} + ] +readme = "README.md" +license = {file = "LICENSE"} +keywords = ["calendar", "date", "time"] +classifiers = [ + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Programming Language :: Python", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Topic :: Religion", + "Topic :: Scientific/Engineering :: Astronomy", + "Operating System :: OS Independent", + ] +requires-python = ">= 3.7, <4" +dependencies = [ + "pymeeus>=0.3.13, <=1", + ] +dynamic = ["version"] + +[tool.setuptools.dynamic] +version = { attr = "convertdate.__version__" } + +[project.urls] +Homepage = "https://github.com/fitnr/convertdate" + +[project.optional-dependencies] +tests = [ + "coverage[toml]", + "pylint", + ] +docs = [ + "sphinx", + "sphinx_rtd_theme", + "myst_parser", + ] +dev = [ + "build", + "black", + "isort", + ] + [build-system] -requires = ["setuptools>=60.5.0", "wheel"] -build-backend = 'setuptools.build_meta' +requires = ["setuptools>=61.1.1", "wheel"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +zip-safe = true +packages = [ + "convertdate", + "convertdate.data", +] +package-dir = {"" = "src"} [tool.black] line-length = 120 target-version = ["py39"] -include = 'py$' +include = "py$" skip-string-normalization = true [tool.pylint.master] @@ -27,3 +86,10 @@ [tool.isort] line_length = 120 + +[tool.ruff] +target-version = "py39" +line-length = 120 + +[tool.ruff.lint] +select = ["I", "E"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/setup.cfg new/convertdate-2.4.1/setup.cfg --- old/convertdate-2.4.0/setup.cfg 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/setup.cfg 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -# This file is part of convertdate. -# http://github.com/fitnr/convertdate -# Licensed under the MIT license: -# http://opensource.org/licenses/MIT -# Copyright (c) 2022, fitnr <fitnr@fakeisthenewreal> -[metadata] -name = convertdate -version = attr: convertdate.__version__ -description = Converts between Gregorian dates and other calendar systems -author = Neil Freeman -author_email = [email protected] -url = https://github.com/fitnr/convertdate -long_description = file: README.md -long_description_content_type = text/markdown -license = MIT -license_files = LICENSE -keywords: calendar, date, time -classifiers = - License :: OSI Approved :: MIT License - Natural Language :: English - Programming Language :: Python - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Topic :: Religion - Topic :: Scientific/Engineering :: Astronomy - Operating System :: OS Independent - -[options] -zip_safe = True -python_requires = >= 3.7, <4 -package_dir = - =src -packages = find: -install_requires = - pymeeus>=0.3.13, <=1 - -[options.packages.find] -where = src - -[options.extras_require] -tests = - coverage -docs = - sphinx - sphinx_rtd_theme - myst_parser - -[options.entry_points] -console_scripts = - censusgeocode = censusgeocode.__main__:main diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/setup.py new/convertdate-2.4.1/setup.py --- old/convertdate-2.4.0/setup.py 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/setup.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ -# -*- coding: utf-8 -*- - -# This file is part of convertdate. -# http://github.com/fitnr/convertdate - -# Licensed under the MIT license: -# http://opensource.org/licenses/MIT -# Copyright (c) 2016-21, fitnr <fitnr@fakeisthenewreal> -from setuptools import setup - -setup() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/src/convertdate/__init__.py new/convertdate-2.4.1/src/convertdate/__init__.py --- old/convertdate-2.4.0/src/convertdate/__init__.py 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/src/convertdate/__init__.py 2026-02-08 01:32:41.000000000 +0100 @@ -18,47 +18,48 @@ The algorithms are believed to be derived from: Meeus, Jean. `Astronomical Algorithms`, Richmond: Willmann-Bell, 1991 (ISBN 0-943396-35-2) """ -from . import armenian -from . import bahai -from . import coptic -from . import daycount -from . import dublin -from . import french_republican -from . import gregorian -from . import hebrew -from . import holidays -from . import indian_civil -from . import iso -from . import islamic -from . import julian -from . import julianday -from . import mayan -from . import persian -from . import positivist -from . import ordinal -from . import utils +from . import ( + armenian, + bahai, + coptic, + daycount, + dublin, + french_republican, + gregorian, + hebrew, + holidays, + indian_civil, + islamic, + iso, + julian, + julianday, + mayan, + ordinal, + persian, + positivist, + utils, +) -__version__ = '2.4.0' +__version__ = '2.4.1' __all__ = [ - 'holidays', 'armenian', 'bahai', 'coptic', - 'dublin', 'daycount', + 'dublin', 'french_republican', 'gregorian', 'hebrew', + 'holidays', 'indian_civil', 'islamic', 'iso', 'julian', 'julianday', 'mayan', + 'ordinal', 'persian', 'positivist', - 'mayan', - 'ordinal', 'utils', ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/src/convertdate/hebrew.py new/convertdate-2.4.1/src/convertdate/hebrew.py --- old/convertdate-2.4.0/src/convertdate/hebrew.py 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/src/convertdate/hebrew.py 2026-02-08 01:32:41.000000000 +0100 @@ -4,6 +4,7 @@ # Licensed under the MIT license: # http://opensource.org/licenses/MIT # Copyright (c) 2016, fitnr <fitnr@fakeisthenewreal> +import warnings from math import floor from . import gregorian @@ -108,7 +109,8 @@ return to_jd(year + 1, 7, 1) - to_jd(year, 7, 1) -def month_days(year, month): + +def month_length(year, month): '''How many days are in a given month of a given year''' if month > VEADAR: raise ValueError("Incorrect month index") @@ -132,6 +134,12 @@ # Nope, it's a 30 day month return 30 +def month_days(year, month): + # retain for backwards compatibility, but warn that this is deprecated + warnings.warn("month_days is deprecated, please use month_length", + DeprecationWarning, stacklevel=2) + return month_length(year, month) + def to_jd(year, month, day): months = year_months(year) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/src/convertdate/islamic.py new/convertdate-2.4.1/src/convertdate/islamic.py --- old/convertdate-2.4.0/src/convertdate/islamic.py 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/src/convertdate/islamic.py 2026-02-08 01:32:41.000000000 +0100 @@ -16,9 +16,9 @@ "al-Muḥarram", "Ṣafar", "Rabīʿ al-ʾAwwal", - "Rabīʿ ath-Thānī,", - "Jumādā al-ʾAwwal,", - "Jumādā ath-Thāniyah,", + "Rabīʿ ath-Thānī", + "Jumādā al-ʾAwwal", + "Jumādā ath-Thāniyah", "Rajab", "Shaʿbān", "Ramaḍān", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/src/convertdate/mayan.py new/convertdate-2.4.1/src/convertdate/mayan.py --- old/convertdate-2.4.0/src/convertdate/mayan.py 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/src/convertdate/mayan.py 2026-02-08 01:32:41.000000000 +0100 @@ -288,7 +288,9 @@ def next_tzolkin_haab(tzolkin, haab, jd): - '''For a given haab-tzolk'in combination, and a Julian day count, find the next occurrance of the combination after the date''' + '''Find the next occurence of a haab-tzolk'in combination. + + Requires a Julian day count as the starting place for the search.''' # get H & T of input jd, and their place in the 18,980 day cycle haabcount = _haab_count(*to_haab(jd)) haab_desired_count = _haab_count(*haab) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/convertdate-2.4.0/src/convertdate/utils.py new/convertdate-2.4.1/src/convertdate/utils.py --- old/convertdate-2.4.0/src/convertdate/utils.py 2022-01-22 19:21:55.000000000 +0100 +++ new/convertdate-2.4.1/src/convertdate/utils.py 2026-02-08 01:32:41.000000000 +0100 @@ -74,14 +74,12 @@ def monthcalendarhelper(start_weekday, month_length): - end_weekday = start_weekday + (month_length - 1) % 7 lpad = (start_weekday + 1) % 7 - rpad = (5 - end_weekday % 7) % 6 - days = [None] * lpad + list(range(1, 1 + month_length)) + rpad * [None] + days = [None] * lpad + list(range(1, 1 + month_length)) + 7 * [None] - return [days[i : i + 7] for i in range(0, len(days), 7)] + return [days[i : i + 7] for i in range(0, lpad + month_length, 7)] def nth_day_of_month(n, weekday, month, year):
