Skip to content

Commit 4a2219f

Browse files
authored
Merge pull request #36 from b-long/develop
Merge `develop` ➡️ `main`
2 parents 7cd409e + 69c6622 commit 4a2219f

18 files changed

Lines changed: 534 additions & 67 deletions

.github/workflows/build-golang-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
4848
# - uses: ./.github/workflows/platform-integration-test.yaml
4949
# with:
50-
# wheel: dist/otdf_python-0.2.3-py3-none-any.whl
50+
# wheel: dist/otdf_python-0.2.4-py3-none-any.whl

.github/workflows/build-golang-ubuntu.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
uses: ./.github/workflows/lint-on-ubuntu.yaml
99

1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
permissions:
1313
contents: write
1414

@@ -43,12 +43,12 @@ jobs:
4343
4444
- uses: actions/cache/restore@v4
4545
with:
46-
path: dist/otdf_python-0.2.3-py3-none-any.whl
46+
path: dist/otdf_python-0.2.4-py3-none-any.whl
4747
key: ${{ runner.os }}${{ matrix.python3_version }}-data-${{ github.sha }}
4848

4949
- uses: actions/cache/save@v4
5050
with:
51-
path: dist/otdf_python-0.2.3-py3-none-any.whl
51+
path: dist/otdf_python-0.2.4-py3-none-any.whl
5252
key: ${{ runner.os }}${{ matrix.python3_version }}-data-${{ github.sha }}
5353
restore-keys: |
5454
${{ runner.os }}${{ matrix.python3_version }}-data-
@@ -61,5 +61,5 @@ jobs:
6161
needs: build
6262
uses: ./.github/workflows/platform-integration-test.yaml
6363
with:
64-
wheel: dist/otdf_python-0.2.3-py3-none-any.whl
64+
wheel: dist/otdf_python-0.2.4-py3-none-any.whl
6565
python_version: ${{ matrix.python3_version }}

.github/workflows/build-python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
strategy:
1414
matrix:
1515
go-version: [1.22.x]

.github/workflows/lint-on-ubuntu.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88

99
lint-ubuntu:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111

1212
strategy:
1313
fail-fast: true

.github/workflows/platform-integration-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ permissions:
2222

2323
jobs:
2424
integration_test:
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-22.04
2626
steps:
2727
- name: Checkout this repo
2828
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
2929

3030
- uses: actions/cache/restore@v4
3131
with:
32-
path: dist/otdf_python-0.2.3-py3-none-any.whl
32+
path: dist/otdf_python-0.2.4-py3-none-any.whl
3333
key: ${{ runner.os }}${{ inputs.python_version }}-data-${{ github.sha }}
3434

3535
- name: Prove that the input file is available
@@ -265,7 +265,7 @@ jobs:
265265
# - platform-xtest
266266
# - mavenverify
267267
# - pr
268-
# runs-on: ubuntu-latest
268+
# runs-on: ubuntu-22.04
269269
# if: always()
270270
# steps:
271271
# - if: contains(needs.*.result, 'failure')

.github/workflows/publish-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
build_linux_x86_64:
8585
# if: false
8686
name: Linux Python x86_64
87-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-22.04
8888

8989
steps:
9090
- uses: actions/checkout@v4
@@ -126,7 +126,7 @@ jobs:
126126

127127
build_linux_arm:
128128
name: Linux Python ARM
129-
runs-on: ubuntu-latest
129+
runs-on: ubuntu-22.04
130130

131131
steps:
132132
- uses: actions/checkout@v4
@@ -211,7 +211,7 @@ jobs:
211211
# This permission is mandatory for PyPI's trusted publishing
212212
id-token: write
213213
needs: [build_macos, build_linux_x86_64, build_linux_arm]
214-
runs-on: ubuntu-latest
214+
runs-on: ubuntu-22.04
215215
# If branch is 'develop'
216216
if: github.ref == 'refs/heads/develop'
217217

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
build_linux_x86_64:
8585
# if: false
8686
name: Linux Python x86_64
87-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-22.04
8888

8989
steps:
9090
- uses: actions/checkout@v4
@@ -126,7 +126,7 @@ jobs:
126126

127127
build_linux_arm:
128128
name: Linux Python ARM
129-
runs-on: ubuntu-latest
129+
runs-on: ubuntu-22.04
130130

131131
steps:
132132
- uses: actions/checkout@v4
@@ -211,7 +211,7 @@ jobs:
211211
# This permission is mandatory for PyPI's trusted publishing
212212
id-token: write
213213
needs: [build_macos, build_linux_x86_64, build_linux_arm]
214-
runs-on: ubuntu-latest
214+
runs-on: ubuntu-22.04
215215
# If branch is 'main'
216216
if: github.ref == 'refs/heads/main'
217217

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Install from the [Python Package Index (PyPI)](https://pypi.org):
2727
pip install otdf_python
2828

2929
# Install a pinned version
30-
pip install otdf-python==0.2.3
30+
pip install otdf-python==0.2.4
3131

3232
# Install a pinned version, from test.pypi.org
33-
pip install -i https://test.pypi.org/simple/ otdf-python==0.2.3
33+
pip install -i https://test.pypi.org/simple/ otdf-python==0.2.4
3434
```
3535

3636
## Usage

build-scripts/ci-build.sh

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,63 @@ printf """
1313
1414
"""
1515

16+
echo "✨✨✨ Display Python version"
1617
echo "python -VV"
1718
python -VV
1819

20+
echo "✨✨✨ Display Python executable path"
1921
echo 'python -c "import sys; print(sys.executable)"'
2022
python -c "import sys; print(sys.executable)"
2123

24+
echo "✨✨✨ Display pip version"
2225
echo 'pip -V'
2326
pip -V
2427

28+
echo "✨✨✨ Install poetry"
2529
echo 'pip install poetry'
2630
pip install poetry
2731

32+
echo "✨✨✨ List home directory contents"
2833
# Look for go/bin (skip, we know it exists)
2934
echo '$HOME/'
3035
ls -la "$HOME/"
3136

32-
echo '$HOME/.local/'
33-
ls -la "$HOME/.local/"
34-
37+
echo "✨✨✨ List Go directory contents"
3538
echo '$HOME/go/'
3639
ls -la "$HOME/go/"
3740

41+
echo "✨✨✨ Display Go version"
42+
go version
43+
44+
echo "✨✨✨ Add Go bin directory to PATH"
3845
# Add Go bin directory to PATH
3946
echo "export PATH=$PATH:~/.local/go/bin" >> $GITHUB_ENV
4047

48+
echo "✨✨✨ Install dependencies with poetry"
4149
# Since we don't have our wheel build / install configured yet we use '--no-root'
4250
poetry install --no-root
4351

52+
echo "✨✨✨ Activate poetry environment"
4453
source $(poetry env info --path)/bin/activate
4554

55+
echo "✨✨✨ Add Go bin directory to PATH again"
4656
# Add Go bin directory to PATH
4757
echo "export PATH=$PATH:~/.local/go/bin" >> $GITHUB_ENV
4858

59+
echo "✨✨✨ Install goimports"
4960
go install golang.org/x/tools/cmd/goimports@latest
5061

62+
echo "✨✨✨ Install gopy"
5163
go install github.com/go-python/gopy@latest
5264

65+
echo "✨✨✨ Upgrade setuptools and wheel"
5366
poetry run pip install --upgrade setuptools wheel
5467

68+
echo "✨✨✨ Build gopy"
5569
gopy build --output=otdf_python -vm=python3 .
5670

71+
echo "✨✨✨ Build wheel"
5772
poetry run python3 setup.py bdist_wheel
5873

59-
pip install dist/otdf_python-0.2.3-py3-none-any.whl
74+
echo "✨✨✨ Install wheel"
75+
pip install dist/otdf_python-0.2.4-py3-none-any.whl

build-scripts/make_and_validate_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ python3 -m pip install --upgrade setuptools wheel
4747
python3 setup.py bdist_wheel
4848

4949
# Prove that the wheel can be installed
50-
pip install dist/otdf_python-0.2.3-py3-none-any.whl
50+
pip install dist/otdf_python-0.2.4-py3-none-any.whl
5151

5252
if [[ "$SKIP_TESTS" == "-s" || "$SKIP_TESTS" == "--skip-tests" ]]; then
5353
echo "Build is complete, skipping tests."

0 commit comments

Comments
 (0)