Commit 07091e2f authored by nimrod's avatar nimrod
Browse files

Better usage of the python3-build image.

parent d8ef571c
Loading
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -8,9 +8,13 @@
    paths:
      - .cache/

build-wheel:
.python3-build:
  extends: .python3
  stage: build
  image: registry.shore.co.il/ci-images:python3-build

build-wheel:
  extends: .python3-build
  script:
    - python3 setup.py check --verbose --metadata --restructuredtext --strict
    - python3 setup.py bdist_wheel
@@ -30,10 +34,8 @@ build-wheel:
      artifacts: true

.audit-wheel:
  extends: .python3
  extends: .python3-build
  stage: test
  before_script:
    - pip install auditwheel
  script:
    - find dist/ -name '*.whl' -print0 | xargs --null auditwheel --verbose show
  needs:
@@ -41,7 +43,7 @@ build-wheel:
      artifacts: true

pypi-upload:
  extends: .python3
  extends: .python3-build
  stage: deploy
  script:
    - twine check dist/*