forked from pool/python-jdatetime
Accepting request 1239515 from home:glaubitz:branches:devel:languages:python
- Update to 5.1.0 * Fix compare datetime with diffrent timezones #159 * Drop Python 3.8 support * Add support for Python 3.13 - Drop py313-support.patch, merged upstream OBS-URL: https://build.opensuse.org/request/show/1239515 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jdatetime?expand=0&rev=17
This commit is contained in:
@@ -1,142 +0,0 @@
|
|||||||
From ac6c2052e41462714431946cf13cee28967082b4 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hasan Ramezani <hasan.r67@gmail.com>
|
|
||||||
Date: Mon, 21 Oct 2024 11:58:01 +0200
|
|
||||||
Subject: [PATCH] Add Python 3.13 support and drop Pyhton 3.8 support (#157)
|
|
||||||
|
|
||||||
---
|
|
||||||
.github/workflows/test.yml | 6 +++---
|
|
||||||
CHANGELOG.md | 5 +++++
|
|
||||||
appveyor.yml | 3 ++-
|
|
||||||
setup.py | 4 ++--
|
|
||||||
tests/test_jdatetime.py | 2 +-
|
|
||||||
tox.ini | 4 ++--
|
|
||||||
6 files changed, 15 insertions(+), 9 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
|
|
||||||
index 1e08035..385b9d4 100644
|
|
||||||
--- a/.github/workflows/test.yml
|
|
||||||
+++ b/.github/workflows/test.yml
|
|
||||||
@@ -12,7 +12,7 @@ jobs:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
- python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
||||||
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
||||||
name: OS ${{ matrix.os}} - Python ${{ matrix.python-version }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|
||||||
- name: Setup python
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
- python-version: "3.8"
|
|
||||||
+ python-version: "3.9"
|
|
||||||
architecture: x64
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|
||||||
- name: Setup python
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
- python-version: "3.8"
|
|
||||||
+ python-version: "3.9"
|
|
||||||
architecture: x64
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
|
||||||
index 87f1734..b0ed6ae 100644
|
|
||||||
--- a/CHANGELOG.md
|
|
||||||
+++ b/CHANGELOG.md
|
|
||||||
@@ -1,5 +1,10 @@
|
|
||||||
# Changelog
|
|
||||||
|
|
||||||
+### Add
|
|
||||||
+* Drop Python 3.8 support
|
|
||||||
+* Add support for Python 3.13
|
|
||||||
+
|
|
||||||
+
|
|
||||||
## [5.0.0] - 2024-03-26
|
|
||||||
|
|
||||||
### Add
|
|
||||||
diff --git a/appveyor.yml b/appveyor.yml
|
|
||||||
index 8652d7f..c3122c7 100644
|
|
||||||
--- a/appveyor.yml
|
|
||||||
+++ b/appveyor.yml
|
|
||||||
@@ -2,7 +2,6 @@ build: false
|
|
||||||
|
|
||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- - PYTHON: "C:\\Python38"
|
|
||||||
- PYTHON: "C:\\Python39"
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
||||||
- PYTHON: "C:\\Python310"
|
|
||||||
@@ -11,6 +10,8 @@ environment:
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
||||||
- PYTHON: "C:\\Python312"
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
||||||
+ - PYTHON: "C:\\Python313"
|
|
||||||
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
||||||
|
|
||||||
init:
|
|
||||||
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
|
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 3c6c123..8827626 100644
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -14,18 +14,18 @@
|
|
||||||
description=("Jalali datetime binding for python"),
|
|
||||||
url="https://github.com/slashmili/python-jalali",
|
|
||||||
long_description=open('README').read(),
|
|
||||||
- python_requires=">=3.8",
|
|
||||||
+ python_requires=">=3.9",
|
|
||||||
install_requires=["jalali-core>=1.0"],
|
|
||||||
classifiers=[
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"Intended Audience :: System Administrators",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
"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 :: Software Development",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
diff --git a/tests/test_jdatetime.py b/tests/test_jdatetime.py
|
|
||||||
index a9e69ec..76d62fe 100644
|
|
||||||
--- a/tests/test_jdatetime.py
|
|
||||||
+++ b/tests/test_jdatetime.py
|
|
||||||
@@ -645,7 +645,7 @@ def reset_locale(self):
|
|
||||||
if platform.system() == 'Windows':
|
|
||||||
locale.setlocale(locale.LC_ALL, 'English_United States')
|
|
||||||
else:
|
|
||||||
- locale.resetlocale()
|
|
||||||
+ locale.setlocale(locale.LC_ALL, '')
|
|
||||||
|
|
||||||
def test_with_fa_locale(self):
|
|
||||||
self.set_fa_locale()
|
|
||||||
diff --git a/tox.ini b/tox.ini
|
|
||||||
index 73c4000..751b30b 100644
|
|
||||||
--- a/tox.ini
|
|
||||||
+++ b/tox.ini
|
|
||||||
@@ -1,16 +1,16 @@
|
|
||||||
[tox]
|
|
||||||
envlist =
|
|
||||||
- py{38,39,310,311,312}
|
|
||||||
+ py{39,310,311,312,313}
|
|
||||||
flake8
|
|
||||||
isort
|
|
||||||
|
|
||||||
[gh-actions]
|
|
||||||
python =
|
|
||||||
- 3.8: py38
|
|
||||||
3.9: py39
|
|
||||||
3.10: py310
|
|
||||||
3.11: py311
|
|
||||||
3.12: py312
|
|
||||||
+ 3.13: py313
|
|
||||||
|
|
||||||
[testenv]
|
|
||||||
deps =
|
|
||||||
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 22 12:35:47 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 5.1.0
|
||||||
|
* Fix compare datetime with diffrent timezones #159
|
||||||
|
* Drop Python 3.8 support
|
||||||
|
* Add support for Python 3.13
|
||||||
|
- Drop py313-support.patch, merged upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 21 09:48:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Thu Nov 21 09:48:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jdatetime
|
# spec file for package python-jdatetime
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,14 +18,13 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-jdatetime
|
Name: python-jdatetime
|
||||||
Version: 5.0.0
|
Version: 5.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Jalali datetime binding for python
|
Summary: Jalali datetime binding for python
|
||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/slashmili/python-jalali
|
URL: https://github.com/slashmili/python-jalali
|
||||||
Source: https://github.com/slashmili/python-jalali/archive/v%{version}.tar.gz
|
Source: https://github.com/slashmili/python-jalali/archive/v%{version}.tar.gz
|
||||||
Patch1: https://github.com/slashmili/python-jalali/commit/ac6c2052e41462714431946cf13cee28967082b4.patch#/py313-support.patch
|
|
||||||
BuildRequires: %{python_module jalali-core}
|
BuildRequires: %{python_module jalali-core}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytzdata}
|
BuildRequires: %{python_module pytzdata}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8e25070f0a9296c258af05a6bcedab37f335666ae0ae9963fec9ea947063ab83
|
|
||||||
size 22217
|
|
||||||
3
v5.1.0.tar.gz
Normal file
3
v5.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ee678ff15e57e1f0f1b8696b9159de3d51c4ea62edd3e606217f38d25bb5d199
|
||||||
|
size 22201
|
||||||
Reference in New Issue
Block a user