Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Binary Wheel Package
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ASTRON Templates
Python Binary Wheel Package
Commits
9dc7584a
Commit
9dc7584a
authored
1 year ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
Use recommend setup for building wheels on ci
parent
677aecf7
No related branches found
No related tags found
1 merge request
!1
Initial binary wheel setup
Pipeline
#52991
passed with warnings
1 year ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: integration
Pipeline: Python Binary Wheel Package
#52992
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
{{cookiecutter.project_slug}}/.gitlab-ci.yml
+14
-1
14 additions, 1 deletion
{{cookiecutter.project_slug}}/.gitlab-ci.yml
{{cookiecutter.project_slug}}/pyproject.toml
+1
-1
1 addition, 1 deletion
{{cookiecutter.project_slug}}/pyproject.toml
with
25 additions
and
2 deletions
.gitlab-ci.yml
+
10
−
0
View file @
9dc7584a
...
@@ -28,6 +28,16 @@ default:
...
@@ -28,6 +28,16 @@ default:
-
python -m pip install --upgrade pip
-
python -m pip install --upgrade pip
-
pip install --upgrade tox twine
-
pip install --upgrade tox twine
# override package files before script
package_files
:
before_script
:
-
pip install cookiecutter
-
!reference
[
default
,
before_script
]
artifacts
:
expire_in
:
1w
paths
:
-
my_awesome_app/dist/*
# Override artifact directories
# Override artifact directories
run_unit_tests_coverage
:
run_unit_tests_coverage
:
artifacts
:
artifacts
:
...
...
This diff is collapsed.
Click to expand it.
{{cookiecutter.project_slug}}/.gitlab-ci.yml
+
14
−
1
View file @
9dc7584a
...
@@ -79,12 +79,25 @@ run_unit_tests_coverage:
...
@@ -79,12 +79,25 @@ run_unit_tests_coverage:
package_files
:
package_files
:
stage
:
package
stage
:
package
image
:
python:3.8
# make a docker daemon available for cibuildwheel to use
# services:
# - name: docker:dind
# entrypoint: [ "env", "-u", "DOCKER_HOST" ]
# command: [ "dockerd-entrypoint.sh" ]
# variables:
# DOCKER_HOST: tcp://docker:2375/
# DOCKER_DRIVER: overlay2
# # See https://github.com/docker-library/docker/pull/166
# DOCKER_TLS_CERTDIR: ""
artifacts
:
artifacts
:
expire_in
:
1w
expire_in
:
1w
paths
:
paths
:
-
dist/*
-
dist/*
script
:
script
:
-
tox -e build-ci-linux
-
curl -sSL https://get.docker.com/ | sh
-
python -m pip install cibuildwheel==2.13.1 cookiecutter
-
cibuildwheel --platform linux --output-dir dist
package_docs
:
package_docs
:
stage
:
package
stage
:
package
...
...
This diff is collapsed.
Click to expand it.
{{cookiecutter.project_slug}}/pyproject.toml
+
1
−
1
View file @
9dc7584a
...
@@ -11,7 +11,7 @@ name = "{{cookiecutter.project_slug}}"
...
@@ -11,7 +11,7 @@ name = "{{cookiecutter.project_slug}}"
dynamic
=
[
"version"
]
dynamic
=
[
"version"
]
description
=
"{{cookiecutter.description}}"
description
=
"{{cookiecutter.description}}"
readme
=
"README.md"
readme
=
"README.md"
requires-python
=
">
=
3.
7
"
requires-python
=
">
=
3.
8
"
classifiers
=
[
classifiers
=
[
"Development Status :: 4 - Beta"
,
"Development Status :: 4 - Beta"
,
"License :: OSI Approved :: MIT License"
,
"License :: OSI Approved :: MIT License"
,
...
...
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