Skip to content

Commit 51d5413

Browse files
authored
Merge pull request #195 from jacobtruman/XENG-8985
XENG-8985 Create version file for build steps and remove support for python 3.8
2 parents 23fcd95 + 011aa47 commit 51d5413

File tree

8 files changed

+31
-40
lines changed

8 files changed

+31
-40
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
python-version:
20-
- 3.8
2120
- 3.9
2221
- '3.10'
2322
- '3.11'
@@ -59,7 +58,9 @@ jobs:
5958
# Fetch all history instead of the latest commit
6059
fetch-depth: 0
6160
- name: Get and set version in env
62-
run: echo "CURRENT_VERSION=$( python setup.py --version )" >> $GITHUB_ENV
61+
run: |
62+
python scripts/write-version.py
63+
echo "CURRENT_VERSION=$( python -c 'from buildrunner.version import __version__; print(__version__)' )" >> $GITHUB_ENV
6364
- name: Print current version
6465
run: echo CURRENT_VERSION ${{ env.CURRENT_VERSION }}
6566
- name: Tag commit
@@ -76,10 +77,12 @@ jobs:
7677
- name: Set up Python
7778
uses: actions/setup-python@v2
7879
with:
79-
python-version: 3.8
80+
python-version: 3.9
8081
- name: Remove version file
8182
# This is just in case something else created it, destroy it to get a fresh version
8283
run: rm -f buildrunner/version.py
84+
- name: Write version file
85+
run: python scripts/write-version.py
8386
- name: Install wheel
8487
run: pip install wheel build
8588
- name: Build
@@ -103,7 +106,9 @@ jobs:
103106
# Fetch all history instead of the latest commit
104107
fetch-depth: 0
105108
- name: Get and set version in env
106-
run: echo "CURRENT_VERSION=$( python setup.py --version )" >> $GITHUB_ENV
109+
run: |
110+
python scripts/write-version.py
111+
echo "CURRENT_VERSION=$( python -c 'from buildrunner.version import __version__; print(__version__)' )" >> $GITHUB_ENV
107112
- name: Print current version
108113
run: echo CURRENT_VERSION ${{ env.CURRENT_VERSION }}
109114
- name: Docker Tags

BASE_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.15
1+
3.16

bin/buildrunner-cleanup

Lines changed: 0 additions & 12 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ buildrunner-cleanup = "buildrunner.cli:clean_cache"
3232
]
3333

3434
[tool.setuptools.packages.find]
35-
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"]
35+
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"]

pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[pytest]
22
addopts = --strict-markers
33
markers =
4-
serial
4+
serial
5+
retries = 2

requirements.txt

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# pip-compile
@@ -34,7 +34,7 @@ deprecated==1.2.18
3434
# via fabric
3535
docker==7.1.0
3636
# via -r requirements.in
37-
docutils==0.20.1
37+
docutils==0.21.2
3838
# via readme-renderer
3939
fabric==3.2.2
4040
# via -r requirements.in
@@ -50,11 +50,7 @@ id==1.5.0
5050
# via twine
5151
idna==3.10
5252
# via requests
53-
importlib-metadata==8.5.0
54-
# via
55-
# keyring
56-
# twine
57-
importlib-resources==6.4.5
53+
importlib-metadata==8.6.1
5854
# via keyring
5955
invoke==2.2.0
6056
# via fabric
@@ -66,15 +62,15 @@ jaraco-functools==4.1.0
6662
# via keyring
6763
jinja2==3.1.6
6864
# via -r requirements.in
69-
keyring==25.5.0
65+
keyring==25.6.0
7066
# via twine
7167
markdown-it-py==3.0.0
7268
# via rich
73-
markupsafe==2.1.5
69+
markupsafe==3.0.2
7470
# via jinja2
7571
mdurl==0.1.2
7672
# via markdown-it-py
77-
more-itertools==10.5.0
73+
more-itertools==10.6.0
7874
# via
7975
# jaraco-classes
8076
# jaraco-functools
@@ -86,7 +82,7 @@ paramiko==3.5.1
8682
# via
8783
# -r requirements.in
8884
# fabric
89-
portalocker==3.0.0
85+
portalocker==3.1.1
9086
# via -r requirements.in
9187
pycparser==2.22
9288
# via cffi
@@ -102,11 +98,11 @@ pygments==2.19.1
10298
# rich
10399
pynacl==1.5.0
104100
# via paramiko
105-
python-on-whales==0.75.1
101+
python-on-whales==0.76.1
106102
# via -r requirements.in
107103
pyyaml==6.0.2
108104
# via -r requirements.in
109-
readme-renderer==43.0
105+
readme-renderer==44.0
110106
# via twine
111107
requests==2.32.3
112108
# via
@@ -133,12 +129,10 @@ twine==6.1.0
133129
# via -r requirements.in
134130
typing-extensions==4.13.0
135131
# via
136-
# annotated-types
137132
# pydantic
138133
# pydantic-core
139134
# python-on-whales
140-
# rich
141-
urllib3==2.2.3
135+
urllib3==2.3.0
142136
# via
143137
# docker
144138
# requests
@@ -147,7 +141,5 @@ vcsinfo==2.1.110
147141
# via -r requirements.in
148142
wrapt==1.17.2
149143
# via deprecated
150-
zipp==3.20.2
151-
# via
152-
# importlib-metadata
153-
# importlib-resources
144+
zipp==3.21.0
145+
# via importlib-metadata

test_requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pytest>=7.2.1
22
pytest-randomly>=3.5.0
3+
pytest-retry>=1.7.0
34
pytest-cov>=2.10.1
45
pytest-xdist>=2.4.0
56
graphlib-backport>=1.0.3

test_requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile test_requirements.in
5+
# pip-compile --output-file=test_requirements.txt test_requirements.in
66
#
7+
78
attrs==23.1.0
89
# via
910
# cattrs
@@ -51,13 +52,16 @@ pytest==7.3.1
5152
# pytest-cov
5253
# pytest-randomly
5354
# pytest-rerunfailures
55+
# pytest-retry
5456
# pytest-xdist
5557
pytest-cov==4.1.0
5658
# via -r test_requirements.in
5759
pytest-randomly==3.12.0
5860
# via -r test_requirements.in
5961
pytest-rerunfailures==14.0
6062
# via -r test_requirements.in
63+
pytest-retry==1.7.0
64+
# via -r test_requirements.in
6165
pytest-xdist==3.3.1
6266
# via -r test_requirements.in
6367
pyyaml==6.0.1

0 commit comments

Comments
 (0)