Skip to content

Commit

Permalink
Try to improve the Azure pipeline, and publish the intermediate wheel…
Browse files Browse the repository at this point in the history
…s for debugging
  • Loading branch information
pelson committed Nov 11, 2024
1 parent 1dca470 commit 8118622
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .azure/scripts/osx-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ sudo ln -s /usr/local/bin/python$PYTHON_VERSION /usr/local/bin/python
which python
python --version
python -m ensurepip
python -m pip install setuptools wheel
2 changes: 1 addition & 1 deletion .azure/scripts/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ steps:
version: '$(jdk.version)'

- script: |
python -m pip install --upgrade pytest setuptools
python setup.py build_ext --inplace
displayName: 'Build module'

Expand All @@ -27,6 +26,7 @@ steps:
displayName: 'Install test'

- script: |
python -m pip install -U pytest
python -m pytest -v --junit-xml=build/test/test.xml test/jpypetest --checkjni
displayName: 'Test JDK $(jdk.version) and Python $(python.version)'
condition: eq(variables['jpypetest.fast'], 'false')
Expand Down
5 changes: 4 additions & 1 deletion .azure/scripts/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ steps:
- script: |
mkdir -p dist
python -m pip install --upgrade pip
python -m pip install --upgrade wheel setuptools
displayName: 'Install dependencies'

- script: |
python -m pip wheel . -w wheelhouse/
displayName: 'Build wheel'
inputs:
PathtoPublish: 'wheelhouse'
ArtifactName: 'python-wheels'
publishLocation: 'Container'

- script: |
ls -lh wheelhouse
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* test=auto
* text=auto

# Specify lf for all source files
*.py text eol=lf
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = [
"setuptools",
"setuptools>=70.0",
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit 8118622

Please sign in to comment.