Skip to content

Commit

Permalink
Add Python 3.13 support and drop Pyhton 3.8 support (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani authored Oct 21, 2024
1 parent 06352d5 commit ac6c205
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### Add
* Drop Python 3.8 support
* Add support for Python 3.13


## [5.0.0] - 2024-03-26

### Add
Expand Down
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ build: false

environment:
matrix:
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python39"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- PYTHON: "C:\\Python310"
Expand All @@ -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%"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)
2 changes: 1 addition & 1 deletion tests/test_jdatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down

0 comments on commit ac6c205

Please sign in to comment.