Fix dependencies, remove check function and add license
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
name: python-flit-core
|
||||
description: A PEP 517 build backend for packages using Flit
|
||||
version: 3.9.0
|
||||
revision: 2
|
||||
revision: 3
|
||||
url: https://pypi.org/project/flit-core/
|
||||
license: BSD-3-Clause
|
||||
architecture: any
|
||||
depends: ["python3"]
|
||||
make_depends: ["python3"]
|
||||
type: source
|
||||
|
||||
@@ -15,17 +15,14 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
make check
|
||||
python3 -m flit_core.wheel
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
pip3 install --root="$BPM_OUTPUT" --ignore-installed --no-index --no-user --find-links dist flit_core
|
||||
python3 bootstrap_install.py --install-root "$BPM_OUTPUT" dist/flit_core-"$BPM_PKG_VERSION"-py3-none-any.whl
|
||||
|
||||
# Install package license
|
||||
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-flit-core/LICENSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user