Skip to content

Commit 3cd3f95

Browse files
committed
Drop support for Python 3.9, 3.10, and 3.11.
1 parent f3e1838 commit 3cd3f95

File tree

3 files changed

+40
-19
lines changed

3 files changed

+40
-19
lines changed

.github/workflows/unit.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
python-version:
19-
- "3.9"
20-
- "3.10"
21-
- "3.11"
2219
- "3.12"
2320

2421
steps:

build.xml

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,39 @@
99

1010
<!-- Install virtual environment -->
1111
<target name="venv">
12-
<delete dir="venv" quiet="true"/>
13-
<delete file="poetry.lock" quiet="true"/>
14-
<exec command="python3 -m venv venv" checkreturn="true" passthru="true"/>
15-
<exec command="./venv/bin/python -m pip install --upgrade pip" checkreturn="true" passthru="true"/>
16-
<exec command="./venv/bin/python -m pip install --upgrade poetry" checkreturn="true" passthru="true"/>
17-
<exec command="./venv/bin/poetry install --no-root" passthru="true" checkreturn="true"/>
12+
<exec executable="python3" checkreturn="true" passthru="true">
13+
<arg value="-m"/>
14+
<arg value="venv"/>
15+
<arg value=".venv"/>
16+
</exec>
17+
<exec executable="./.venv/bin/python" checkreturn="true" passthru="true">
18+
<arg value="-m"/>
19+
<arg value="pip"/>
20+
<arg value="install"/>
21+
<arg value="--upgrade"/>
22+
<arg value="pip"/>
23+
</exec>
24+
<exec executable="./.venv/bin/python" checkreturn="true" passthru="true">
25+
<arg value="-m"/>
26+
<arg value="pip"/>
27+
<arg value="install"/>
28+
<arg value="--upgrade"/>
29+
<arg value="poetry"/>
30+
</exec>
31+
<exec executable="./.venv/bin/poetry" passthru="true" checkreturn="true">
32+
<arg value="--ansi"/>
33+
<arg value="lock"/>
34+
</exec>
35+
<exec executable="./.venv/bin/poetry" passthru="true" checkreturn="true">
36+
<arg value="--ansi"/>
37+
<arg value="install"/>
38+
<arg value="--no-root"/>
39+
</exec>
40+
<exec executable="./.venv/bin/poetry" passthru="true" checkreturn="true">
41+
<arg value="--ansi"/>
42+
<arg value="show"/>
43+
<arg value="--outdated"/>
44+
</exec>
1845
</target>
1946

2047
<!-- Creates a new version/release. -->
@@ -66,22 +93,22 @@
6693

6794
<!-- Creates a new distribution using pyproject.toml -->
6895
<target name="dist">
69-
<exec command="./venv/bin/poetry build" passthru="true" checkreturn="true"/>
96+
<exec command="./.venv/bin/poetry build" passthru="true" checkreturn="true"/>
7097
</target>
7198

7299
<!-- Uploads a distribution to PyPI -->
73100
<target name="upload">
74-
<exec command="./venv/bin/poetry publish" passthru="true" checkreturn="true"/>
101+
<exec command="./.venv/bin/poetry publish" passthru="true" checkreturn="true"/>
75102
</target>
76103

77104
<!-- All steps for releasing a new version -->
78105
<target name="release" depends="version,dist,upload"/>
79106

80107
<!-- Runs all unit tests-->
81108
<target name="unit">
82-
<exec command="./venv/bin/python -m coverage run -m unittest discover -s test -p \*Test.py" passthru="true"
109+
<exec command="./.venv/bin/python -m coverage run -m unittest discover -s test -p \*Test.py" passthru="true"
83110
checkreturn="true"/>
84-
<exec command="./venv/bin/python -m coverage html" passthru="true" checkreturn="true"/>
111+
<exec command="./.venv/bin/python -m coverage html" passthru="true" checkreturn="true"/>
85112
</target>
86113

87114
<!-- Default target -->

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ classifiers = ["Development Status :: 5 - Production/Stable",
88
"Intended Audience :: Developers",
99
"License :: OSI Approved :: MIT License",
1010
"Programming Language :: Python :: 3",
11-
"Programming Language :: Python :: 3.9",
12-
"Programming Language :: Python :: 3.10",
13-
"Programming Language :: Python :: 3.11",
1411
"Programming Language :: Python :: 3.12",
1512
"Topic :: Software Development :: Build Tools",
1613
"Topic :: Software Development :: Code Generators",
@@ -19,11 +16,11 @@ classifiers = ["Development Status :: 5 - Production/Stable",
1916

2017
[tool.poetry.dependencies]
2118
cleo = "^2.1.0"
22-
pystratum-backend = "^2.0.4"
23-
python = "^3.9.0"
19+
pystratum-backend = "^2.1.0"
20+
python = "^3.12.0"
2421

2522
[tool.poetry.group.dev.dependencies]
26-
coverage ="^5.3.0"
23+
coverage = "^7.5.1"
2724

2825
[tool.poetry.scripts]
2926
pystratum = "pystratum_cli:main"

0 commit comments

Comments
 (0)