Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RQL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
RQL
Commits
f9260d37020a
Commit
f9260d37020a
authored
2 years ago
by
Frank Bessou
Browse files
Options
Downloads
Patches
Plain Diff
chore(packaging): don't use tox to build wheels in CI
parent
0cffcd3a2071
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!74
Topic/default/publication on pypi
Pipeline
#120733
passed
2 years ago
Stage: tests
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+36
-1
36 additions, 1 deletion
.gitlab-ci.yml
tox.ini
+0
-19
0 additions, 19 deletions
tox.ini
with
36 additions
and
20 deletions
.gitlab-ci.yml
+
36
−
1
View file @
f9260d37
...
...
@@ -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/*
This diff is collapsed.
Click to expand it.
tox.ini
+
0
−
19
View file @
f9260d37
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment