-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.yml
More file actions
26 lines (24 loc) · 798 Bytes
/
build.yml
File metadata and controls
26 lines (24 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
imports:
- path: pyproject.toml
as: project
- path: ../common.build.yml
as: common
vars:
version: $(${common.get_version} ${PROJECT_DIR})
package_name: $(echo ${project.name} | tr '-' '_')
build_dir: ${PROJECT_DIR}/${package_name}
dist_dir: ${PROJECT_DIR}/dist
rules:
build:
tags:
- build
required-files:
- ${PROJECT_DIR}/src/**/*.py
expected-files:
- ${PROJECT_DIR}/dist/${package_name}-${version}-py3-none-any.whl
- ${PROJECT_DIR}/dist/${package_name}-${version}.tar.gz
commands:
- cp -r ${PROJECT_DIR}/src ${build_dir}
- ${common.create_metadata} ${build_dir} -v ${version}
- MSM_WEB_SERVER_VERSION=${version} ${PYTHON} -m build --wheel --sdist --outdir ${dist_dir} ${PROJECT_DIR}
- rm -rf ${build_dir}