Skip to content

Commit

Permalink
Bump the minimum python version to 3.9 (#63)
Browse files Browse the repository at this point in the history
* Bump the minimum python version to 3.9

* Fix issue with 0.3.0 release
  • Loading branch information
sixlettervariables authored Oct 30, 2024
1 parent a571ddc commit 2c0490b
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
1 change: 1 addition & 0 deletions pysierraecg/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
2 changes: 1 addition & 1 deletion pysierraecg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Sierra ECG Tools for Python.

# Requirements

Python 3.8+.
Python 3.9+.

# Dependencies

Expand Down
4 changes: 2 additions & 2 deletions pysierraecg/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/sixlettervariables/sierra-ecg-tools
watch:
- src
# This is needed to allow links to work when opened from the file system.
use_directory_urls: false
plugins:
Expand All @@ -45,8 +47,6 @@ plugins:
rendering:
show_if_no_docstring: true
show_signature_annotations: true
watch:
- src
# Autodoc configuration.
# https://mkdocstrings.github.io/recipes/#automatic-code-reference-pages
- gen-files:
Expand Down
12 changes: 7 additions & 5 deletions pysierraecg/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sierraecg"
version = "0.2.1"
version = "0.3.1"
description = "Sierra ECG Tools for Python"
readme = "README.md"
authors = [{ name = "Christopher Watford", email = "[email protected]" }]
Expand All @@ -14,16 +14,18 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
]
keywords = ["ecg", "sierraecg", "xml"]
dependencies = [
"defusedxml",
"numpy",
]
requires-python = ">=3.8"
requires-python = ">=3.9"

[project.urls]
Homepage = "https://github.com/sixlettervariables/sierra-ecg-tools"
Expand Down Expand Up @@ -78,7 +80,7 @@ strict = true
[tool.black]
# Use the more relaxed max line length permitted in PEP 8.
line-length = 99
target-version = ["py38", "py39", "py310"]
target-version = ["py39", "py310", "py311", "py312", "py313"]
# black will automatically exclude all files listed in .gitignore
# If you need to exclude additional folders, consider using extend-exclude to avoid disabling the
# default .gitignore behaviour.
Expand Down Expand Up @@ -110,7 +112,7 @@ branch = true
ignore = [".dockerignore", ".editorconfig", "Dockerfile"]

[tool.bumpver]
current_version = "0.2.1"
current_version = "0.3.1"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
Expand Down
8 changes: 5 additions & 3 deletions pysierraecg/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="sierraecg",
version="0.2.1",
version="0.3.1",
description="Sierra ECG Tools for Python",
# Use UTF-8 encoding for README even on Windows by using the encoding argument.
long_description=project_dir.joinpath("README.md").read_text(encoding="utf-8"),
Expand All @@ -20,7 +20,7 @@
package_dir={"": "src"},
# pip 9.0+ will inspect this field when installing to help users install a
# compatible version of the library for their Python version.
python_requires=">=3.8",
python_requires=">=3.9",
# There are some peculiarities on how to include package data for source
# distributions using setuptools. You also need to add entries for package
# data to MANIFEST.in.
Expand All @@ -47,9 +47,11 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Typing :: Typed",
],
)
4 changes: 3 additions & 1 deletion pysierraecg/src/sierraecg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .lib import (
EcgLead,
EcgRepbeat,
MissingXmlAttributeError,
MissingXmlElementError,
SierraEcgFile,
Expand All @@ -9,11 +10,12 @@

__all__ = [
"EcgLead",
"EcgRepbeat",
"MissingXmlElementError",
"MissingXmlAttributeError",
"SierraEcgFile",
"UnsupportedXmlFileError",
"read_file",
]

__version__ = "0.2.1"
__version__ = "0.3.1"
8 changes: 5 additions & 3 deletions pysierraecg/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ extend-immutable-calls =
# This section is not needed if not using GitHub Actions for CI.
[gh-actions]
python =
3.8: py38
3.9: py39, fmt-check, lint, type-check, docs
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313, fmt-check, lint, type-check, docs

[tox]
# These are the default environments that will be run
Expand All @@ -26,7 +28,7 @@ envlist =
fmt-check
lint
type-check
py{38,39,310}
py{39,310,311,312,313}
docs
skip_missing_interpreters = true

Expand Down

0 comments on commit 2c0490b

Please sign in to comment.