Skip to content
Snippets Groups Projects
Commit f9260d37020a authored by Frank Bessou's avatar Frank Bessou :spider_web:
Browse files

chore(packaging): don't use tox to build wheels in CI

parent 0cffcd3a2071
No related branches found
No related tags found
1 merge request!74Topic/default/publication on pypi
Pipeline #120733 passed
......@@ -8,7 +8,6 @@
file:
- "templates/no-duplicated-ci-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/create-release-on-heptapod.yml" # this will create a release on heptapod AND uses uploaded .deb by build-debian-package
- "templates/upload-to-pypi.yml" # on a new mercurial tag (expected to be done with release-new), will push a release on pypi
# uncomment and uses to customize/extend the configuration here if needed
# (it needs to be at the same level than "- project")
# - ".gitlab-ci-extended.yml"
......@@ -117,3 +116,39 @@
- cd cubicweb
- sed -i 's#${FIND}#${REPLACE}#g' setup.py
- tox -e py3-server
pypi-publish-wheels:
stage: publish
image: quay.io/pypa/manylinux_2_24_x86_64
tags:
- publish
- pypi-publish
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$CI_COMMIT_TAG'
when: on_success
before_script:
- pipx install twine
script:
- sh build_wheel.sh
- twine check dist/*
- twine upload --skip-existing dist/*
pypi-publish-sdist:
stage: publish
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- publish
- pypi-publish
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$CI_COMMIT_TAG'
when: on_success
before_script:
- pip install twine
script:
- python3 setup.py sdist
- twine check dist/*
- twine upload --skip-existing dist/*
......@@ -47,25 +47,6 @@
commands =
mypy --install-types --non-interactive {posargs} rql/
[testenv:pypi-publish]
basepython = python3
skip_install = true
whitelist_externals =
rm
sh
python3
deps =
twine
passenv =
TWINE_USERNAME
TWINE_PASSWORD
commands =
rm -rf build dist .egg .egg-info
python3 setup.py sdist
sh build_wheel.sh
twine check dist/*
twine upload --skip-existing dist/*
[testenv:yamllint]
skip_install = true
deps = yamllint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment