Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 74815df

Browse files
Add Python versions and bump ci deps (#1177)
1 parent c78e35e commit 74815df

File tree

9 files changed

+64
-17
lines changed

9 files changed

+64
-17
lines changed

โ€Ž.github/workflows/continuous_integration.ymlโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["pypy-3.9", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
18+
python-version: ["pypy-3.9", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1919
os: [ubuntu-latest, macos-latest, windows-latest]
2020
exclude:
2121
# pypy3 randomly fails on Windows builds

โ€Ž.pre-commit-config.yamlโ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: check-ast
88
- id: check-yaml
@@ -18,11 +18,11 @@ repos:
1818
args: [requirements/requirements.txt, requirements/requirements-docs.txt, requirements/requirements-tests.txt]
1919
- id: trailing-whitespace
2020
- repo: https://github.com/timothycrosley/isort
21-
rev: 5.12.0
21+
rev: 5.13.2
2222
hooks:
2323
- id: isort
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v3.13.0
25+
rev: v3.16.0
2626
hooks:
2727
- id: pyupgrade
2828
args: [--py36-plus]
@@ -48,7 +48,7 @@ repos:
4848
- id: flake8
4949
additional_dependencies: [flake8-bugbear,flake8-annotations]
5050
- repo: https://github.com/pre-commit/mirrors-mypy
51-
rev: v1.5.1
51+
rev: v1.10.0
5252
hooks:
5353
- id: mypy
5454
additional_dependencies: [types-python-dateutil]

โ€ŽMakefileโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ build39: PYTHON_VER = python3.9
77
build310: PYTHON_VER = python3.10
88
build311: PYTHON_VER = python3.11
99
build312: PYTHON_VER = python3.12
10+
build313: PYTHON_VER = python3.13
1011

11-
build36 build37 build38 build39 build310 build311 build312: clean
12+
build36 build37 build38 build39 build310 build311 build312build313: clean
1213
$(PYTHON_VER) -m venv venv
1314
. venv/bin/activate; \
1415
pip install -U pip setuptools wheel; \

โ€ŽREADME.rstโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Features
4747
--------
4848

4949
- Fully-implemented, drop-in replacement for datetime
50-
- Support for Python 3.6+
50+
- Support for Python 3.8+
5151
- Timezone-aware and UTC by default
5252
- Super-simple creation options for many common input scenarios
5353
- ``shift`` method with support for relative offsets, including weeks

โ€Žarrow/arrow.pyโ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
"""
66

7-
87
import calendar
98
import re
109
import sys

โ€Žarrow/factory.pyโ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
"""
77

8-
98
import calendar
109
from datetime import date, datetime
1110
from datetime import tzinfo as dt_tzinfo

โ€Žarrow/locales.pyโ€Ž

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,16 @@ class JapaneseLocale(Locale):
776776
"12",
777777
]
778778

779-
day_names = ["", "ๆœˆๆ›œๆ—ฅ", "็ซๆ›œๆ—ฅ", "ๆฐดๆ›œๆ—ฅ", "ๆœจๆ›œๆ—ฅ", "้‡‘ๆ›œๆ—ฅ", "ๅœŸๆ›œๆ—ฅ", "ๆ—ฅๆ›œๆ—ฅ"]
779+
day_names = [
780+
"",
781+
"ๆœˆๆ›œๆ—ฅ",
782+
"็ซๆ›œๆ—ฅ",
783+
"ๆฐดๆ›œๆ—ฅ",
784+
"ๆœจๆ›œๆ—ฅ",
785+
"้‡‘ๆ›œๆ—ฅ",
786+
"ๅœŸๆ›œๆ—ฅ",
787+
"ๆ—ฅๆ›œๆ—ฅ",
788+
]
780789
day_abbreviations = ["", "ๆœˆ", "็ซ", "ๆฐด", "ๆœจ", "้‡‘", "ๅœŸ", "ๆ—ฅ"]
781790

782791

@@ -992,7 +1001,16 @@ class ChineseCNLocale(Locale):
9921001
"12",
9931002
]
9941003

995-
day_names = ["", "ๆ˜ŸๆœŸไธ€", "ๆ˜ŸๆœŸไบŒ", "ๆ˜ŸๆœŸไธ‰", "ๆ˜ŸๆœŸๅ››", "ๆ˜ŸๆœŸไบ”", "ๆ˜ŸๆœŸๅ…ญ", "ๆ˜ŸๆœŸๆ—ฅ"]
1004+
day_names = [
1005+
"",
1006+
"ๆ˜ŸๆœŸไธ€",
1007+
"ๆ˜ŸๆœŸไบŒ",
1008+
"ๆ˜ŸๆœŸไธ‰",
1009+
"ๆ˜ŸๆœŸๅ››",
1010+
"ๆ˜ŸๆœŸไบ”",
1011+
"ๆ˜ŸๆœŸๅ…ญ",
1012+
"ๆ˜ŸๆœŸๆ—ฅ",
1013+
]
9961014
day_abbreviations = ["", "ไธ€", "ไบŒ", "ไธ‰", "ๅ››", "ไบ”", "ๅ…ญ", "ๆ—ฅ"]
9971015

9981016

@@ -1111,7 +1129,16 @@ class HongKongLocale(Locale):
11111129
"12",
11121130
]
11131131

1114-
day_names = ["", "ๆ˜ŸๆœŸไธ€", "ๆ˜ŸๆœŸไบŒ", "ๆ˜ŸๆœŸไธ‰", "ๆ˜ŸๆœŸๅ››", "ๆ˜ŸๆœŸไบ”", "ๆ˜ŸๆœŸๅ…ญ", "ๆ˜ŸๆœŸๆ—ฅ"]
1132+
day_names = [
1133+
"",
1134+
"ๆ˜ŸๆœŸไธ€",
1135+
"ๆ˜ŸๆœŸไบŒ",
1136+
"ๆ˜ŸๆœŸไธ‰",
1137+
"ๆ˜ŸๆœŸๅ››",
1138+
"ๆ˜ŸๆœŸไบ”",
1139+
"ๆ˜ŸๆœŸๅ…ญ",
1140+
"ๆ˜ŸๆœŸๆ—ฅ",
1141+
]
11151142
day_abbreviations = ["", "ไธ€", "ไบŒ", "ไธ‰", "ๅ››", "ไบ”", "ๅ…ญ", "ๆ—ฅ"]
11161143

11171144

@@ -1181,11 +1208,32 @@ class KoreanLocale(Locale):
11811208
"12",
11821209
]
11831210

1184-
day_names = ["", "์›”์š”์ผ", "ํ™”์š”์ผ", "์ˆ˜์š”์ผ", "๋ชฉ์š”์ผ", "๊ธˆ์š”์ผ", "ํ† ์š”์ผ", "์ผ์š”์ผ"]
1211+
day_names = [
1212+
"",
1213+
"์›”์š”์ผ",
1214+
"ํ™”์š”์ผ",
1215+
"์ˆ˜์š”์ผ",
1216+
"๋ชฉ์š”์ผ",
1217+
"๊ธˆ์š”์ผ",
1218+
"ํ† ์š”์ผ",
1219+
"์ผ์š”์ผ",
1220+
]
11851221
day_abbreviations = ["", "์›”", "ํ™”", "์ˆ˜", "๋ชฉ", "๊ธˆ", "ํ† ", "์ผ"]
11861222

11871223
def _ordinal_number(self, n: int) -> str:
1188-
ordinals = ["0", "์ฒซ", "๋‘", "์„ธ", "๋„ค", "๋‹ค์„ฏ", "์—ฌ์„ฏ", "์ผ๊ณฑ", "์—ฌ๋Ÿ", "์•„ํ™‰", "์—ด"]
1224+
ordinals = [
1225+
"0",
1226+
"์ฒซ",
1227+
"๋‘",
1228+
"์„ธ",
1229+
"๋„ค",
1230+
"๋‹ค์„ฏ",
1231+
"์—ฌ์„ฏ",
1232+
"์ผ๊ณฑ",
1233+
"์—ฌ๋Ÿ",
1234+
"์•„ํ™‰",
1235+
"์—ด",
1236+
]
11891237
if n < len(ordinals):
11901238
return f"{ordinals[n]}๋ฒˆ์งธ"
11911239
return f"{n}๋ฒˆ์งธ"

โ€Žpyproject.tomlโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classifiers = [
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
2222
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
"Operating System :: OS Independent",
2425
]
2526
dependencies = [

โ€Žtox.iniโ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
[tox]
22
minversion = 3.18.0
3-
envlist = py{py3,38,39,310,311,312}
3+
envlist = py{py3,38,39,310,311,312,313}
44
skip_missing_interpreters = true
55

66
[gh-actions]
77
python =
88
pypy-3.7: pypy3
9-
3.6: py36
10-
3.7: py37
119
3.8: py38
1210
3.9: py39
1311
3.10: py310
1412
3.11: py311
1513
3.12: py312
14+
3.13: py313
1615

1716
[testenv]
1817
deps = -r requirements/requirements-tests.txt

0 commit comments

Comments
(0)

AltStyle ใซใ‚ˆใฃใฆๅค‰ๆ›ใ•ใ‚ŒใŸใƒšใƒผใ‚ธ (->ใ‚ชใƒชใ‚ธใƒŠใƒซ) /