Skip to content

Commit 9ef94d0

Browse files
committed
Update GHA actions, python versions, deps for v2.1.0
1 parent d2fe499 commit 9ef94d0

File tree

7 files changed

+48
-27
lines changed

7 files changed

+48
-27
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2019 - 2022 James E. King III (@jeking3) <jking@apache.org>
2+
# Copyright (C) 2019 - 2025 James E. King III (@jeking3) <jking@apache.org>
33
#
44
---
55
name: CI
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
- fix/ci
1112
pull_request:
1213
branches:
1314
- main
@@ -16,19 +17,23 @@ jobs:
1617
test:
1718
runs-on: ubuntu-latest
1819
strategy:
20+
fail-fast: false
1921
matrix:
2022
python-version:
21-
- "3.7"
22-
- "3.8"
2323
- "3.9"
2424
- "3.10"
25+
- "3.11"
26+
- "3.12"
27+
- "3.13"
2528
name: "test on ${{ matrix.python-version }}"
2629
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-python@v2
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-python@v5
2932
with:
3033
python-version: ${{ matrix.python-version }}
3134
- run: pip install -rrequirements/dev.txt
3235
- run: make coverage
33-
- uses: codecov/codecov-action@v2
34-
if: "${{ matrix.python-version == '3.9' }}"
36+
- uses: codecov/codecov-action@v5
37+
if: "${{ matrix.python-version == '3.12' }}"
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.1.0]
11+
12+
- dropped python 3.7 and 3.8 (ci tests 3.9 through 3.13)
13+
- updated dev and test dependencies (still no runtime dependencies)
14+
- updated setup.py constructs
15+
16+
## [2.0.0]
17+
18+
- convert to using ContextDecorator @jeking3 in #22
19+
- fixed incorrect type on initializer (value was not optional)
20+
- dropped python 3.6 support (ci tests 3.7 through 3.10)
21+
- update dev and test dependencies (still no runtime dependencies)
22+
1023
## [1.1.0]
1124

1225
### Changed

requirements/dev.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
pip-outdated (~= 0.5.0)
2-
pre-commit (~= 2.17.0)
3-
readme_renderer (~= 37.3)
4-
setuptools (>= 57.4.0)
5-
tox (~= 3.24.5)
6-
twine (~= 3.7.1)
7-
wheel (~= 0.37.1)
1+
pip-outdated (~= 0.7.0)
2+
pre-commit (~= 4.2.0)
3+
readme_renderer (~= 44.0)
4+
setuptools (~= 72.1)
5+
tox (~= 4.24.2)
6+
twine (~= 6.1.0)
7+
wheel (~= 0.45.1)

requirements/test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
coverage (~= 6.2)
2-
pytest (~= 6.2.5)
1+
coverage (~= 7.7.1)
2+
pytest (~= 8.3.5)

setup.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright (C) 2019 - 2022 James E. King III (@jeking3) <jking@apache.org>
4+
# Copyright (C) 2019 - 2025 James E. King III (@jeking3) <jking@apache.org>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -67,13 +67,13 @@ def version():
6767

6868

6969
requirements = {}
70-
for type in ["run", "test"]:
70+
for type in ["dev", "run", "test"]:
7171
requirements[type] = get_requirements(type)
7272

7373
setup(
7474
name=name,
7575
version=version(),
76-
python_requires=">=3.7",
76+
python_requires=">=3.9",
7777
description=description,
7878
long_description=read_file(Path("README.md")),
7979
long_description_content_type="text/markdown",
@@ -84,10 +84,11 @@ def version():
8484
"Natural Language :: English",
8585
"Operating System :: OS Independent",
8686
"Programming Language :: Python :: 3",
87-
"Programming Language :: Python :: 3.7",
88-
"Programming Language :: Python :: 3.8",
8987
"Programming Language :: Python :: 3.9",
9088
"Programming Language :: Python :: 3.10",
89+
"Programming Language :: Python :: 3.11",
90+
"Programming Language :: Python :: 3.12",
91+
"Programming Language :: Python :: 3.13",
9192
"Topic :: Security",
9293
"Topic :: System :: Shells",
9394
"Topic :: Utilities",
@@ -100,8 +101,10 @@ def version():
100101
author_email="jking@apache.org",
101102
license="Apache License 2.0",
102103
install_requires=requirements["run"],
103-
tests_require=requirements["test"],
104-
test_suite="unittest",
104+
extras_require={
105+
"dev": requirements["dev"],
106+
"test": requirements["test"],
107+
},
105108
packages=packages,
106109
include_package_data=True,
107110
package_data={"tempenv": ["py.typed"]},

tempenv/version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2019 - 2022 James E. King III (@jeking3) <jking@apache.org>
3+
# Copyright (C) 2019 - 2025 James E. King III (@jeking3) <jking@apache.org>
44
#
55
__author__ = "James E. King III"
66
__copyright__ = (
7-
"Copyright (C) 2019 - 2022 James E. King III (@jeking3) <jking@apache.org>"
7+
"Copyright (C) 2019 - 2025 James E. King III (@jeking3) <jking@apache.org>"
88
)
99
__license__ = "Apache Software License, Version 2.0"
10-
__version__ = "2.0.0"
10+
__version__ = "2.1.0"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ deps =
99

1010
[testenv:coverage]
1111
commands =
12-
coverage run --branch --source=tempenv -m py.test
12+
coverage run --branch --source=tempenv -m pytest
1313
coverage report
1414
coverage xml
1515
deps =

0 commit comments

Comments
 (0)