Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jpype-project/jpype
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.0
Choose a base ref
...
head repository: jpype-project/jpype
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.5.1
Choose a head ref

Commits on Apr 29, 2023

  1. Copy the full SHA
    d8b4e69 View commit details
  2. Copy the full SHA
    b7b3b8e View commit details
  3. try tool installer

    marscher committed Apr 29, 2023
    Copy the full SHA
    c86d99a View commit details
  4. try JavaToolInstaller

    marscher committed Apr 29, 2023
    Copy the full SHA
    2b68c2a View commit details
  5. Copy the full SHA
    62093dc View commit details
  6. steps

    marscher committed Apr 29, 2023
    Copy the full SHA
    0ac018b View commit details
  7. Copy the full SHA
    c9025ab View commit details
  8. add missing version

    marscher committed Apr 29, 2023
    Copy the full SHA
    8384638 View commit details
  9. fix type

    marscher committed Apr 29, 2023
    Copy the full SHA
    e5480b0 View commit details
  10. generate sane displayName

    marscher committed Apr 29, 2023
    Copy the full SHA
    b711ae1 View commit details
  11. revert

    marscher committed Apr 29, 2023
    Copy the full SHA
    1277937 View commit details
  12. missing vars.

    marscher committed Apr 29, 2023
    Copy the full SHA
    f692203 View commit details

Commits on Nov 28, 2023

  1. Copy the full SHA
    283b39f View commit details

Commits on Dec 14, 2023

  1. Copy the full SHA
    e0e0ca9 View commit details

Commits on Dec 15, 2023

  1. Copy the full SHA
    725a426 View commit details

Commits on Dec 20, 2023

  1. Copy the full SHA
    b603ff6 View commit details

Commits on Feb 2, 2024

  1. Minor typos in the user guide

    pelson committed Feb 2, 2024
    Copy the full SHA
    288acd2 View commit details

Commits on Feb 13, 2024

  1. Copy the full SHA
    583a304 View commit details
  2. Move fully to the modern packaging stack, and avoid setting the depre…

    …cated global-options
    pelson committed Feb 13, 2024
    Copy the full SHA
    3d1e951 View commit details
  3. Copy the full SHA
    3de98dc View commit details
  4. Copy the full SHA
    b9472a3 View commit details
  5. Merge pull request #1171 from pelson/docs/typos

    Minor typos in the user guide
    marscher authored Feb 13, 2024
    Copy the full SHA
    df64941 View commit details
  6. Merge pull request #1133 from pelson/feature/pyproject

    Make use of pyproject.toml for static project metadata
    marscher authored Feb 13, 2024
    Copy the full SHA
    904fc43 View commit details

Commits on Feb 24, 2024

  1. Copy the full SHA
    bab84f0 View commit details
  2. Fix tabs

    Thrameos committed Feb 24, 2024
    Copy the full SHA
    2c0420e View commit details

Commits on Mar 28, 2024

  1. Copy the full SHA
    67a3eab View commit details

Commits on Mar 31, 2024

  1. Copy the full SHA
    8f5590c View commit details

Commits on Apr 2, 2024

  1. Copy the full SHA
    faaaca4 View commit details

Commits on Apr 5, 2024

  1. Merge pull request #1180 from Thrameos/uncaught

    Fix error in 3.12 during exception handling
    marscher authored Apr 5, 2024
    Copy the full SHA
    543054b View commit details

Commits on Apr 9, 2024

  1. Merge pull request #1179 from ryanmkurtz/patch-1

    Fixing typo in userguide.rst
    marscher authored Apr 9, 2024
    Copy the full SHA
    cdb6be2 View commit details

Commits on Apr 20, 2024

  1. Fixes #1181

    Thrameos committed Apr 20, 2024
    Copy the full SHA
    d6dbda2 View commit details
  2. Copy the full SHA
    49c3bde View commit details

Commits on Apr 28, 2024

  1. Merge pull request #1174 from Thrameos/windows-locale

    Windows locale
    marscher authored Apr 28, 2024
    Copy the full SHA
    653ccff View commit details

Commits on Jun 3, 2024

  1. Fix misspelling in documentation

    Ken Dombeck committed Jun 3, 2024
    Copy the full SHA
    dcba813 View commit details

Commits on Jun 17, 2024

  1. Copy the full SHA
    d487b32 View commit details

Commits on Jun 23, 2024

  1. Trying to test tests working

    Thrameos committed Jun 23, 2024
    Copy the full SHA
    f6849c5 View commit details
  2. Copy the full SHA
    902156a View commit details
  3. Cleanup

    Thrameos committed Jun 23, 2024
    Copy the full SHA
    b45f56c View commit details

Commits on Jun 27, 2024

  1. Fixes #1198

    Thrameos committed Jun 27, 2024
    Copy the full SHA
    2ef1168 View commit details

Commits on Jun 28, 2024

  1. print caught exception when failed to extract javadoc

    Clément Jonglez authored and GorgiAstro committed Jun 28, 2024
    Copy the full SHA
    faae500 View commit details
  2. Copy the full SHA
    a4bb61d View commit details
  3. Copy the full SHA
    5bce891 View commit details

Commits on Jul 29, 2024

  1. Copy the full SHA
    31339e3 View commit details

Commits on Aug 16, 2024

  1. Update LICENSE

    The current LICENSE file does not support the GitHub License badge detecting the correct license of the project.   Replacing the current license file with a copy of the license file from the Apache License 2.0 website will cause the GitHub License badge to correctly identify the license of jpype.
    clajo04 authored Aug 16, 2024
    Copy the full SHA
    eb8fe61 View commit details

Commits on Aug 17, 2024

  1. Copy the full SHA
    76b9cd3 View commit details
  2. Update README.rst

    Reversing out changes to the readme as I didn't realize my change on a local branch would submit to my PR on jpype-project.
    clajo04 authored Aug 17, 2024
    Copy the full SHA
    98331a6 View commit details

Commits on Aug 19, 2024

  1. Merge pull request #1196 from Thrameos/numpy2.0

    Changes for numpy 2.0 to fix test matrix.
    marscher authored Aug 19, 2024
    Copy the full SHA
    5b934d7 View commit details
  2. Merge pull request #1192 from kdombeck/doc-typo

    Fix misspelling in documentation
    marscher authored Aug 19, 2024
    Copy the full SHA
    4c7863a View commit details
  3. Merge pull request #1206 from alexrashed/fix-jpype-setuptools-72

    fix compatibility of jpype with setuptools==72.0.0
    marscher authored Aug 19, 2024
    Copy the full SHA
    a8b33a6 View commit details
  4. Merge pull request #1199 from Thrameos/win32_hook_crash

    Crash on windows exception during customizers
    marscher authored Aug 19, 2024
    Copy the full SHA
    d3cc970 View commit details
Showing with 1,901 additions and 1,099 deletions.
  1. +47 −19 .azure/build.yml
  2. +32 −15 .azure/release.yml
  3. +2 −1 .azure/scripts/build-wheels.sh
  4. +6 −7 .azure/scripts/coverage.yml
  5. +5 −2 .azure/scripts/debug.yml
  6. +10 −9 .azure/scripts/jdk.yml
  7. +4 −1 .azure/scripts/osx-python.sh
  8. +21 −0 .azure/scripts/python.yml
  9. +12 −4 .azure/scripts/sdist.yml
  10. +14 −11 .azure/scripts/test.yml
  11. +1 −1 .azure/scripts/tracing.yml
  12. +0 −3 .azure/scripts/wheels-linux.yml
  13. +9 −5 .azure/scripts/wheels.yml
  14. +4 −4 .bumpversion.cfg
  15. +1 −1 .gitattributes
  16. +3 −3 .github/workflows/codeql.yml
  17. +2 −2 AUTHORS.rst
  18. +201 −187 LICENSE
  19. +1 −2 README.rst
  20. +37 −0 doc/CHANGELOG.rst
  21. +9 −1 doc/develguide.rst
  22. +14 −9 doc/install.rst
  23. BIN doc/logo_small.png
  24. +7 −7 doc/userguide.rst
  25. +1 −1 jpype/__init__.py
  26. +82 −13 jpype/_core.py
  27. +12 −0 jpype/_jarray.py
  28. +60 −0 jpype/_jarray.pyi
  29. +4 −0 jpype/_jclass.py
  30. +49 −68 jpype/_jvmfinder.py
  31. +0 −1 native/common/include/jp_context.h
  32. +1 −2 native/common/include/jp_exception.h
  33. +8 −1 native/common/include/jp_gc.h
  34. +8 −3 native/common/include/jpype.h
  35. +5 −6 native/common/jp_class.cpp
  36. +1 −2 native/common/jp_classhints.cpp
  37. +2 −55 native/common/jp_classloader.cpp
  38. +0 −1 native/common/jp_context.cpp
  39. +76 −0 native/common/jp_convert.cpp
  40. +7 −14 native/common/jp_exception.cpp
  41. +24 −2 native/common/jp_gc.cpp
  42. +7 −1 native/common/jp_platform.cpp
  43. +3 −6 native/common/jp_proxy.cpp
  44. +8 −2 native/common/jp_tracer.cpp
  45. +3 −0 native/java/manifest.txt
  46. +26 −1 native/java/org/jpype/JPypeContext.java
  47. +11 −0 native/java/org/jpype/agent/JPypeAgent.java
  48. +43 −0 native/java/org/jpype/classloader/JpypeSystemClassLoader.java
  49. +38 −10 native/java/org/jpype/javadoc/JavadocExtractor.java
  50. +5 −3 native/java/org/jpype/javadoc/JavadocTransformer.java
  51. +48 −75 native/java/org/jpype/pickle/ByteBufferInputStream.java
  52. +25 −4 native/java/org/jpype/pkg/JPypePackageManager.java
  53. +84 −22 native/java/org/jpype/proxy/JPypeProxy.java
  54. +5 −0 native/jni_include/jni.h
  55. +2 −1 native/python/include/pyjp.h
  56. +6 −2 native/python/jp_pythontypes.cpp
  57. +2 −2 native/python/pyjp_array.cpp
  58. +1 −1 native/python/pyjp_buffer.cpp
  59. +8 −9 native/python/pyjp_char.cpp
  60. +114 −90 native/python/pyjp_class.cpp
  61. +4 −6 native/python/pyjp_method.cpp
  62. +8 −3 native/python/pyjp_module.cpp
  63. +28 −19 native/python/pyjp_number.cpp
  64. +19 −7 native/python/pyjp_object.cpp
  65. +4 −4 native/python/pyjp_package.cpp
  66. +1 −1 native/python/pyjp_proxy.cpp
  67. +74 −45 native/python/pyjp_value.cpp
  68. +2 −0 project/jars/unicode_à😎/sample_package/README
  69. +2 −0 project/jars/unicode_à😎/sample_package/build.sh
  70. +5 −0 project/jars/unicode_à😎/sample_package/src/org/jpype/sample_package/A.java
  71. +5 −0 project/jars/unicode_à😎/sample_package/src/org/jpype/sample_package/B.java
  72. +1 −0 project/jars/unicode_à😎/service/README
  73. +20 −0 project/jars/unicode_à😎/service/build.gradle
  74. +28 −0 project/jars/unicode_à😎/service/src/main/java/org/jpype/service/JpypeZoneRulesProvider.java
  75. +1 −0 ...ect/jars/unicode_à😎/service/src/main/resources/META-INF/services/java.time.zone.ZoneRulesProvider
  76. +1 −0 project/jpype_java/nbproject/project.properties
  77. +57 −1 pyproject.toml
  78. +0 −3 setup.cfg
  79. +12 −44 setup.py
  80. +1 −3 setupext/__init__.py
  81. +22 −18 setupext/build_ext.py
  82. +14 −8 setupext/{dist.py → develop.py}
  83. +16 −27 setupext/platform.py
  84. +0 −39 setupext/pytester.py
  85. +0 −1 setupext/test_java.py
  86. +0 −34 setupext/utils.py
  87. +2 −0 test/harness/jpype/proxy/TestInterface1.java
  88. +42 −0 test/harness/jpype/startup/TestSystemClassLoader.java
  89. BIN test/jar/unicode_à😎/sample_package.jar
  90. BIN test/jar/unicode_à😎/service.jar
  91. +10 −3 test/jpypetest/common.py
  92. +2 −2 test/jpypetest/conftest.py
  93. +18 −0 test/jpypetest/test_array.py
  94. +16 −15 test/jpypetest/test_buffer.py
  95. +2 −2 test/jpypetest/test_conversionInt.py
  96. +2 −2 test/jpypetest/test_conversionLong.py
  97. +2 −2 test/jpypetest/test_conversionShort.py
  98. +0 −10 test/jpypetest/test_fault.py
  99. +2 −2 test/jpypetest/test_jboolean.py
  100. +2 −2 test/jpypetest/test_jbyte.py
  101. +14 −2 test/jpypetest/test_jdouble.py
  102. +14 −2 test/jpypetest/test_jfloat.py
  103. +16 −70 test/jpypetest/test_jvmfinder.py
  104. +73 −20 test/jpypetest/test_pickle.py
  105. +30 −0 test/jpypetest/test_proxy.py
  106. +0 −1 test/jpypetest/test_sql_generic.py
  107. +9 −0 test/jpypetest/test_sql_h2.py
  108. +8 −0 test/jpypetest/test_sql_hsqldb.py
  109. +13 −6 test/jpypetest/test_sql_sqlite.py
  110. +76 −1 test/jpypetest/test_startup.py
  111. +2 −2 test/jpypetest/test_thread.py
66 changes: 47 additions & 19 deletions .azure/build.yml
Original file line number Diff line number Diff line change
@@ -15,9 +15,11 @@ trigger:
- test/*

variables:
# indicate whether the testsuite should skip long running tests or not.
# indicate whether the testsuite should skip long-running tests or not.
- name: jpypetest.fast
value: 'false'
- name: system.debug
value: 'true'

jobs:
- job: Deps
@@ -50,45 +52,72 @@ jobs:
dependsOn: Deps
strategy:
matrix:
linux-3.8:
# Linux
linux_py38_jdk8: # todo: 3.8 will be EOL on October 31, 2024
imageName: "ubuntu-latest"
python.version: '3.8'
linux-3.9:
jdk.version: '8'
linux_py39_jdk11:
imageName: "ubuntu-latest"
python.version: '3.9'
linux-3.10:
jdk.version: '11'
linux_py310_jdk17:
imageName: "ubuntu-latest"
python.version: '3.10'
linux-3.11:
jdk.version: '17'
linux_py311_jdk17:
imageName: "ubuntu-latest"
python.version: '3.11'
linux-3.12:
jdk.version: '17'
linux_py312_jdk17:
imageName: "ubuntu-latest"
python.version: '3.12'
windows-3.8:
jdk.version: '17'
linux_py313_jdk17:
imageName: "ubuntu-latest"
python.version: "3.13"
jdk.version: '17' # jdk 22 is not there yet.
#linux_py314_jdk22:
# imageName: "ubuntu-latest"
# python.version: "3.14.0-alpha.0"
# jdk.version: '22'
# Windows
windows_py38_jdk8:
imageName: "windows-2019"
python.version: '3.8'
windows-3.9:
python.version: '3.8' # todo: 3.8 will be EOL on October 31, 2024
jdk.version: '8'
windows_py39_jdk11:
imageName: "windows-2019"
python.version: '3.9'
#jpypetest.fast: 'true'
windows-3.10:
jdk.version: '11'
windows_py310_jdk8:
imageName: "windows-2019"
python.version: '3.10'
windows-3.11:
jdk.version: '8'
windows_py311_jdk17:
imageName: "windows-2019"
python.version: '3.11'
windows-3.12:
jdk.version: '17'
windows_py312_jdk21:
imageName: "windows-2019"
python.version: '3.12'
mac-3.9:
imageName: "macos-11"
python.version: '3.9'
jdk.version: '21'
# OSX, we only test an old Python version with JDK8 and recent Py with recent JDK.
mac_py38_jdk8:
imageName: "macos-13"
python.version: '3.8' # todo: 3.8 will be EOL on October 31, 2024
jpypetest.fast: 'true'
jdk.version: '8'
mac_py312_jdk17:
imageName: "macos-13"
python.version: '3.12'
jpypetest.fast: 'true'
jdk.version: '17'

pool:
vmImage: $(imageName)
steps:

- template: scripts/deps.yml
- template: scripts/test.yml

@@ -97,13 +126,12 @@ jobs:
dependsOn: Deps
strategy:
matrix:
linux-3.8:
linux_py38_jdk11:
imageName: "ubuntu-16.04"
jdk_version: "1.11"
jdk.version: "11"
python.version: '3.8'
pool:
vmImage: $(imageName)
steps:
- template: scripts/deps.yml
- template: scripts/debug.yml

47 changes: 32 additions & 15 deletions .azure/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JPype Release pipeline
trigger: none
pr:
pr:
branches:
include:
- releases/*
@@ -10,40 +10,51 @@ pr:
- .azure/release.yml

variables:
package_name: JPype1
package_name: jpype1

stages:
- stage: Initial
jobs:
- job: SourceDistribution
pool:
pool:
vmImage: "ubuntu-latest"
steps:
- template: scripts/sdist.yml
parameters:
artifact: true
- template: scripts/ivy.yml

- stage: Package
jobs:
# From https://iscinumpy.gitlab.io/post/azure-devops-python-wheels/
- job: ManyLinux
condition: eq(1,1)
timeoutInMinutes: 360
strategy:
matrix:
# Disabled because it is fetching beta images
# 64Bit2014:
# arch: aarch64
# plat: manylinux2014_aarch64
# image: quay.io/pypa/manylinux2014_aarch64
# python.architecture: aarch64
64Bit:
aarch64:
arch: aarch64
plat: manylinux2014_aarch64
image: quay.io/pypa/manylinux2014_aarch64
python.architecture: aarch64
#arm64Bit:
# arch: armv71
# plat: musllinux_1_2
# image: quay.io/pypa/musllinux_1_2_armv7l
# python.architecture: armv71
x86_64:
arch: x86_64
plat: manylinux2014_x86_64
image: quay.io/pypa/manylinux2014_x86_64
# plat: musllinux_1_2
# image: quay.io/pypa/musllinux_1_2_x86_64
python.architecture: x64
32Bit:
i686:
arch: i686
plat: manylinux2014_i686
image: quay.io/pypa/manylinux2014_i686
# plat: musllinux_1_2
# image: quay.io/pypa/musllinux_1_2_i686
python.architecture: x86
pool:
vmImage: "ubuntu-latest"
@@ -71,13 +82,17 @@ stages:
Python312:
python.version: '3.12'
python.architecture: 'x64'
Python313:
python.version: '3.13'
python.architecture: 'x64'
pool:
# vmImage: "windows-2022"
vmImage: "windows-2019"
steps:
- template: scripts/deps.yml
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- template: scripts/python.yml
parameters:
version: '$(python.version)'
architecture: '$(python.architecture)'
- template: scripts/jdk.yml
parameters:
@@ -101,8 +116,10 @@ stages:
python.version: '3.11'
Python312:
python.version: '3.12'
Python313:
python.version: '3.13'
pool:
vmImage: "macos-11"
vmImage: "macos-13"
steps:
- template: scripts/deps.yml
- script: .azure/scripts/osx-python.sh '$(python.version)'
3 changes: 2 additions & 1 deletion .azure/scripts/build-wheels.sh
Original file line number Diff line number Diff line change
@@ -4,8 +4,9 @@ set -e -x
# Collect the pythons
pys=(/opt/python/cp*/bin)

# Exclude specific Pythons (3.6)
# Exclude specific Pythons (3.6, 3.7)
pys=(${pys[@]//*36*/})
pys=(${pys[@]//*37*/})

# Compile wheels
for PYBIN in "${pys[@]}"; do
13 changes: 6 additions & 7 deletions .azure/scripts/coverage.yml
Original file line number Diff line number Diff line change
@@ -10,13 +10,12 @@ steps:

- script: |
python setup.py test_java
pip install gcovr pytest-cov jedi
pip install -r test-requirements.txt
pip install numpy typing_extensions
pip install gcovr pytest-cov -r test-requirements.txt
pip install numpy setuptools
displayName: 'Install requirements'

- script: |
python setup.py --enable-coverage --enable-build-jar build_ext --inplace
python setup.py develop --enable-coverage --enable-build-jar
displayName: 'Build'

- script: |
@@ -29,18 +28,18 @@ steps:
bash <(curl -s https://codecov.io/bash) -f coverage.xml -f coverage_py.xml -f coverage_java.xml -X gcov
displayName: 'Report'

- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: coverage_java.xml
pathToSources: native/java

- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: coverage.xml

- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: coverage_py.xml
7 changes: 5 additions & 2 deletions .azure/scripts/debug.yml
Original file line number Diff line number Diff line change
@@ -5,10 +5,13 @@ steps:
inputs:
versionSpec: '$(python.version)'

- template: jdk.yml
parameters:
version: '$(jdk.version)'

- script: |
sudo apt install gdb
python setup.py sdist
pip install dist/*
pip install ./
displayName: 'Build module'

- script: python -c "import jpype"
19 changes: 10 additions & 9 deletions .azure/scripts/jdk.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
parameters:
- name: version
type: string
default: 8
default: '8'

steps:
- script: |
set v="##vso[task.setvariable variable=JAVA_HOME]%JAVA_HOME_${{parameters.version}}_X64%"
echo %v:"=%
condition: eq(variables['Agent.OS'], 'Windows_NT')

- script: |
echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_${{parameters.version}}_X64)"
condition: ne(variables['Agent.OS'], 'Windows_NT')
- task: JavaToolInstaller@0
inputs:
versionSpec: ${{ parameters.version }}
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- bash: |
echo AGENT_JOBSTATUS = $AGENT_JOBSTATUS
if [[ "$AGENT_JOBSTATUS" == "SucceededWithIssues" ]]; then exit 1; fi
displayName: JDK ${{ parameters.version }} set as JAVA_HOME.
5 changes: 4 additions & 1 deletion .azure/scripts/osx-python.sh
Original file line number Diff line number Diff line change
@@ -26,6 +26,10 @@ case $PYTHON_VERSION in
3.12)
FULL_VERSION=3.12.0
INSTALLER_NAME=python-$FULL_VERSION-macos11.pkg
;;
3.13)
FULL_VERSION=3.13.0
INSTALLER_NAME=python-$FULL_VERSION-macos11.pkg
esac

URL=https://www.python.org/ftp/python/$FULL_VERSION/$INSTALLER_NAME
@@ -44,4 +48,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
21 changes: 21 additions & 0 deletions .azure/scripts/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
parameters:
- name: version
type: string
default: '3.12'

- name: architecture
type: string
default: 'x64'

steps:
- task: UsePythonVersion@0
inputs:
architecture: ${{ parameters.architecture }}
versionSpec: ${{ parameters.version }}
disableDownloadFromRegistry: false # boolean. Disable downloading releases from the GitHub registry. Default: false.
allowUnstable: true # boolean. Optional. Use when disableDownloadFromRegistry = false. Allow downloading unstable releases. Default: false.
githubToken: $(githubToken) # global (secret) variable to allow API access to Github (for not hitting a rate limit while downloading).
- bash: |
echo AGENT_JOBSTATUS = $AGENT_JOBSTATUS
if [[ "$AGENT_JOBSTATUS" == "SucceededWithIssues" ]]; then exit 1; fi
displayName: Python ${{ parameters.version }} set as interpreter.
16 changes: 12 additions & 4 deletions .azure/scripts/sdist.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
parameters:
- name: artifact
type: boolean
default: false

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.10'
- script: |
python -m pip install setuptools
python setup.py sdist
displayName: Build sdist
python -m pip install build twine
python -m build ./ --sdist
twine check dist/*
displayName: Build sdist and check with twine

- task: PublishPipelineArtifact@0
condition: and(succeeded(), eq('${{ parameters.artifact }}', true))
inputs:
artifactName: 'artifact_SourceDistribution'
targetPath: 'dist'
Loading