Fix dependencies, remove check function and add license

This commit is contained in:
2025-05-12 14:26:47 +03:00
parent 56481aba8e
commit 319fc50cde
2 changed files with 6 additions and 10 deletions
+1 -2
View File
@@ -1,10 +1,9 @@
name: python-flit-core name: python-flit-core
description: A PEP 517 build backend for packages using Flit description: A PEP 517 build backend for packages using Flit
version: 3.9.0 version: 3.9.0
revision: 2 revision: 3
url: https://pypi.org/project/flit-core/ url: https://pypi.org/project/flit-core/
license: BSD-3-Clause license: BSD-3-Clause
architecture: any architecture: any
depends: ["python3"] depends: ["python3"]
make_depends: ["python3"]
type: source type: source
+5 -8
View File
@@ -15,17 +15,14 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD python3 -m flit_core.wheel
}
# 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
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { 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
} }