diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f5b964..c7d3daf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61d56cb..882ab11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,16 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: pre-commit/action@v2.0.3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: | + 3.9 + 3.10 + 3.11 + 3.12 + 3.13 + - uses: pre-commit/action@v3.0.1 tox: runs-on: ubuntu-latest @@ -23,15 +30,15 @@ jobs: matrix: # tox-gh-actions will only run the tox environments which match the currently # running python-version. See [gh-actions] in tox.ini for the mapping - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [ 3.9, "3.10", "3.11", "3.12", "3.13"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5e3ac43..ad35ff2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,16 +15,16 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.6.4 + rev: 5.13.2 hooks: - id: isort - - repo: https://gitlab.com/pycqa/flake8 - rev: 4.0.1 + - repo: https://github.com/pycqa/flake8 + rev: 7.1.2 hooks: - id: flake8 diff --git a/.python-version b/.python-version index 11dcbf2..5d82ddb 100644 --- a/.python-version +++ b/.python-version @@ -1,4 +1,5 @@ -3.10.4 -3.9.9 -3.8.12 -3.7.12 +3.9.21 +3.10.16 +3.11.11 +3.12.9 +3.13.2 diff --git a/CHANGES.rst b/CHANGES.rst index cad0fd9..cc796ae 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,12 @@ CHANGES ======= +v2.4.0, 2025-03-15 +---------------- + +* Python updates + + v2.3.0, 2022-07-31 ---------------- diff --git a/LICENSE b/LICENSE index 7b97cc8..e285f96 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013-2022, Vinod Kurup +Copyright (c) 2013-2025, Vinod Kurup All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/dev-requirements.txt b/dev-requirements.txt index c954a39..ad87ed6 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,6 +1,7 @@ . # <- install ourselves -coverage==6.3.3 -flake8==4.0.1 -pre-commit==2.19.0 -tox==3.25.0 -tox-gh-actions==2.9.1 +coverage==7.6.12 +flake8==7.1.2 +pre-commit==4.1.0 +setuptools==76.0.0 +tox==4.24.2 +tox-gh-actions==3.3.0 diff --git a/setup.py b/setup.py index b6e9b6f..fef3b0d 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -__version__ = "2.3.0" +__version__ = "2.4.0" setup( name="python-tcxparser", @@ -22,10 +22,11 @@ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "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", "Topic :: Software Development :: Libraries :: Python Modules", ], install_requires=[ diff --git a/tcxparser/tcxparser.py b/tcxparser/tcxparser.py index 4da35a9..587d3c8 100644 --- a/tcxparser/tcxparser.py +++ b/tcxparser/tcxparser.py @@ -1,4 +1,5 @@ "Simple parser for Garmin TCX files." + import time from datetime import timedelta diff --git a/tox.ini b/tox.ini index e161a62..ad7c7ed 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,13 @@ [tox] -envlist = py37, py38, py39, py310, coverage +envlist = py39, py310, py311, py312, py313, coverage [gh-actions] python = - 3.7: py37 - 3.8: py38 3.9: py39 - 3.10: py310, coverage + 3.10: py310 + 3.11: py311 + 3.12: py312 + 3.13: py313, coverage [testenv:coverage] deps = coverage