Commit 047d3ebe authored by nimrod's avatar nimrod
Browse files

Python template: Run setuptools check only if setup.py exists.

parent 60e6a52d
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,7 +16,9 @@
build-wheel:
  extends: .python3-build
  script:
    - python3 setup.py check --verbose --metadata --restructuredtext --strict
    - >-
      [ ! -f setup.py ] ||
      python3 setup.py check --verbose --metadata --restructuredtext --strict
    - python3 -m build
  after_script:
    - &twine_check twine check dist/*.whl