Skip to content

Commit b87fd00

Browse files
authored
Merge pull request #78 from DrGFreeman/python3.13
Add support for Python 3.13 and remove Python 3.8
2 parents 20ef377 + 18b98e9 commit b87fd00

File tree

8 files changed

+25
-28
lines changed

8 files changed

+25
-28
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
py:
24+
- "3.13"
2425
- "3.12"
2526
- "3.11"
2627
- "3.10"
2728
- "3.9"
28-
- "3.8"
2929
os:
3030
- ubuntu-latest
3131
- windows-latest
@@ -39,7 +39,5 @@ jobs:
3939
python-version: ${{ matrix.py }}
4040
- name: Install tox
4141
run: python -m pip install tox-gh>=1.2
42-
- name: Setup test suite
43-
run: tox -vv --notest
4442
- name: Run test suite
4543
run: tox

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
repos:
22

33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-case-conflict
77
- id: check-toml
88
- id: check-yaml
99
- id: debug-statements
1010
- id: requirements-txt-fixer
11+
- id: no-commit-to-branch
12+
args: [--branch, main]
1113

1214
- repo: https://github.com/psf/black
13-
rev: 22.3.0
15+
rev: 24.10.0
1416
hooks:
1517
- id: black
1618

@@ -20,12 +22,12 @@ repos:
2022
- id: isort
2123

2224
- repo: https://github.com/PyCQA/flake8
23-
rev: 7.0.0
25+
rev: 7.1.1
2426
hooks:
2527
- id: flake8
2628

2729
- repo: https://github.com/econchick/interrogate
28-
rev: 1.5.0
30+
rev: 1.7.0
2931
hooks:
3032
- id: interrogate
3133
exclude: ^(setup.py)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The project's documentation is available at https://dynamo-pandas.readthedocs.io
1616

1717

1818
## Requirements
19-
* `python>=3.8`
19+
* `python>=3.9`
2020
* `pandas>=1.2`
2121
* `boto3`
2222

dynamo_pandas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
from .dynamo_pandas import keys
33
from .dynamo_pandas import put_df
44

5-
__version__ = "1.4.0-dev"
5+
__version__ = "1.4.0"
66

77
__all__ = ["get_df", "keys", "put_df", "__version__"]

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ ignore-semiprivate = true
1212
exclude = [".vscode", "setup.py"]
1313
color = true
1414
verbose = 1
15+
16+
[tool.pytest.ini_options]
17+
filterwarnings = [
18+
"ignore:distutils Version classes are deprecated:DeprecationWarning", # numpy 1.20 (python39-pandas12 env)
19+
"ignore:datetime.datetime.utcnow:DeprecationWarning", # botocore python >= 3.12
20+
]

requirements-dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
black==24.3.0
1+
black==24.10.0
22
coverage
3-
flake8==3.8.4
4-
interrogate
5-
isort==5.12.0
3+
flake8==7.1.1
4+
interrogate==1.7.0
5+
isort==5.13.2
66
moto
77
packaging
88
pre-commit

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ def find_meta(meta):
3737
long_description=read("README.md"),
3838
long_description_content_type="text/markdown",
3939
packages=find_packages(),
40-
python_requires=">=3.8",
40+
python_requires=">=3.9",
4141
install_requires=["pandas>=1.2"],
4242
extras_require={"boto3": ["boto3"]},
4343
classifiers=[
4444
"Development Status :: 5 - Production/Stable",
4545
"License :: OSI Approved :: MIT License",
4646
"Programming Language :: Python :: 3",
47-
"Programming Language :: Python :: 3.8",
4847
"Programming Language :: Python :: 3.9",
4948
"Programming Language :: Python :: 3.10",
5049
"Programming Language :: Python :: 3.11",
5150
"Programming Language :: Python :: 3.12",
51+
"Programming Language :: Python :: 3.13",
5252
],
5353
)

tox.ini

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[tox]
22
minversion = 4
3-
envlist = py{38, 39}-pandas12, py{38, 39, 310, 311, 312}-pandaslatest, linting
3+
envlist = py39-pandas12, py{39, 310, 311, 312, 313}-pandaslatest, linting
44

55
[gh]
66
python =
7+
3.13 = py313-pandaslatest
78
3.12 = py312-pandaslatest
89
3.11 = py311-pandaslatest
910
3.10 = py310-pandaslatest, linting
1011
3.9 = py39-pandas12, py39-pandaslatest
11-
3.8 = py38-pandas12, py38-pandaslatest
1212

1313
[testenv]
1414
setenv =
@@ -19,24 +19,15 @@ setenv =
1919
download = true
2020
deps =
2121
.[boto3]
22-
-rrequirements-test.txt
22+
-r requirements-test.txt
2323
pandas12: pandas>=1.2,<1.3
2424
pandas12: numpy<=1.20
2525
commands = pytest -v --cov={envsitepackagesdir}/dynamo_pandas --cov-report term-missing {posargs}
2626

2727
[testenv:linting]
28-
basepython = python310
28+
basepython = python313
2929
deps = pre-commit
3030
skipdist = true
3131
usedevelop = true
3232
skipinstall = true
3333
commands = pre-commit run --all-files
34-
35-
[pytest]
36-
filterwarnings =
37-
; error
38-
ignore:.*is a deprecated alias:DeprecationWarning
39-
ignore:numpy.ufunc size changed:RuntimeWarning
40-
ignore:The distutils package:DeprecationWarning
41-
ignore:distutils Version classes are deprecated:DeprecationWarning
42-
ignore:.*Pyarrow:DeprecationWarning

0 commit comments

Comments
 (0)