Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
fail-fast: false
matrix:
py:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
os:
- ubuntu-latest
- windows-latest
Expand All @@ -39,7 +39,5 @@ jobs:
python-version: ${{ matrix.py }}
- name: Install tox
run: python -m pip install tox-gh>=1.2
- name: Setup test suite
run: tox -vv --notest
- name: Run test suite
run: tox
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- id: no-commit-to-branch
args: [--branch, main]

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.10.0
hooks:
- id: black

Expand All @@ -20,12 +22,12 @@ repos:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8

- repo: https://github.com/econchick/interrogate
rev: 1.5.0
rev: 1.7.0
hooks:
- id: interrogate
exclude: ^(setup.py)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The project's documentation is available at https://dynamo-pandas.readthedocs.io


## Requirements
* `python>=3.8`
* `python>=3.9`
* `pandas>=1.2`
* `boto3`

Expand Down
2 changes: 1 addition & 1 deletion dynamo_pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from .dynamo_pandas import keys
from .dynamo_pandas import put_df

__version__ = "1.4.0-dev"
__version__ = "1.4.0"

__all__ = ["get_df", "keys", "put_df", "__version__"]
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ ignore-semiprivate = true
exclude = [".vscode", "setup.py"]
color = true
verbose = 1

[tool.pytest.ini_options]
filterwarnings = [
"ignore:distutils Version classes are deprecated:DeprecationWarning", # numpy 1.20 (python39-pandas12 env)
"ignore:datetime.datetime.utcnow:DeprecationWarning", # botocore python >= 3.12
]
8 changes: 4 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
black==24.3.0
black==24.10.0
coverage
flake8==3.8.4
interrogate
isort==5.12.0
flake8==7.1.1
interrogate==1.7.0
isort==5.13.2
moto
packaging
pre-commit
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ def find_meta(meta):
long_description=read("README.md"),
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.8",
python_requires=">=3.9",
install_requires=["pandas>=1.2"],
extras_require={"boto3": ["boto3"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
],
)
17 changes: 4 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
minversion = 4
envlist = py{38, 39}-pandas12, py{38, 39, 310, 311, 312}-pandaslatest, linting
envlist = py39-pandas12, py{39, 310, 311, 312, 313}-pandaslatest, linting

[gh]
python =
3.13 = py313-pandaslatest
3.12 = py312-pandaslatest
3.11 = py311-pandaslatest
3.10 = py310-pandaslatest, linting
3.9 = py39-pandas12, py39-pandaslatest
3.8 = py38-pandas12, py38-pandaslatest

[testenv]
setenv =
Expand All @@ -19,24 +19,15 @@ setenv =
download = true
deps =
.[boto3]
-rrequirements-test.txt
-r requirements-test.txt
pandas12: pandas>=1.2,<1.3
pandas12: numpy<=1.20
commands = pytest -v --cov={envsitepackagesdir}/dynamo_pandas --cov-report term-missing {posargs}

[testenv:linting]
basepython = python310
basepython = python313
deps = pre-commit
skipdist = true
usedevelop = true
skipinstall = true
commands = pre-commit run --all-files

[pytest]
filterwarnings =
; error
ignore:.*is a deprecated alias:DeprecationWarning
ignore:numpy.ufunc size changed:RuntimeWarning
ignore:The distutils package:DeprecationWarning
ignore:distutils Version classes are deprecated:DeprecationWarning
ignore:.*Pyarrow:DeprecationWarning
Loading