-
Notifications
You must be signed in to change notification settings - Fork 22
Python 3.14 support #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,12 @@ | ||
| # Changelog | ||
|
|
||
| ## [5.5.0](https://github.com/majiidd/persiantools/compare/5.4.0...5.5.0) - 2026-01-30 | ||
|
|
||
| - Python 3.14 support. | ||
| - Migrated from `setup.py` to `pyproject.toml` (PEP 621). | ||
| - Improved CI/CD pipeline with job dependencies and parallel execution. | ||
| - Marked Python 3.15 as experimental with allowed failures. | ||
|
|
||
| ## [5.4.0](https://github.com/majiidd/persiantools/compare/5.3.0...5.4.0) - 2025-09-26 | ||
|
|
||
| - Removed `pytz` dependency; migrated fully to `zoneinfo` and `datetime.timezone`. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,71 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=80.0"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "persiantools" | ||
| dynamic = ["version"] | ||
| description = "Jalali date and datetime with other tools" | ||
| readme = "README.md" | ||
| license = "MIT" | ||
| requires-python = ">=3.9" | ||
| authors = [ | ||
| { name = "Majid Hajiloo", email = "majid.hajiloo@gmail.com" } | ||
| ] | ||
| keywords = [ | ||
| "jalali", | ||
| "shamsi", | ||
| "persian", | ||
| "digits", | ||
| "characters", | ||
| "converter", | ||
| "jalalidate", | ||
| "jalalidatetime", | ||
| "date", | ||
| "datetime", | ||
| "jdate", | ||
| "jdatetime", | ||
| "farsi", | ||
| ] | ||
| classifiers = [ | ||
| "Intended Audience :: Developers", | ||
| "Natural Language :: Persian", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "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", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| "Topic :: Software Development", | ||
| "Topic :: Software Development :: Libraries", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "Topic :: Software Development :: Localization", | ||
| "Topic :: Utilities", | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| "tzdata; platform_system == 'Windows'", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/majiidd/persiantools" | ||
| Source = "https://github.com/majiidd/persiantools" | ||
| Issues = "https://github.com/majiidd/persiantools/issues" | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "persiantools.__version__" } | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["persiantools*"] | ||
|
|
||
| [tool.black] | ||
| line-length = 120 | ||
| target-version = ["py39", "py310", "py311", "py312", "py313"] | ||
| target-version = ["py39", "py310", "py311", "py312", "py313", "py314"] | ||
| include = '\.pyi?$' | ||
| exclude = ''' | ||
| ( | ||
|
|
||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 10 days ago
In general, this issue is fixed by explicitly setting a minimal
permissionsblock either at the workflow root (applies to all jobs) or at the individual job level. Since thepublish-test-pypiandpublish-pypijobs already specify the extraid-token: writepermission they need, the cleanest approach is to set a restrictive default at the workflow root (e.g.,contents: read) and then rely on existing job-level permissions for the publishing jobs.The single best fix here without changing functionality is:
permissionsblock near the top of.github/workflows/ci.yml, right after theon:block and beforeconcurrency:.contents: readas the default, which is sufficient foractions/checkout@v4and all the current jobs’ behavior (lint,tests,build). The publishing jobs already definepermissions: id-token: write, which will override the workflow default for those jobs and keep them functioning as before.Concretely:
Edit
.github/workflows/ci.yml.After line 10 (
workflow_dispatch:) insert:No other imports, methods, or definitions are required; this is purely a workflow YAML change.