-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackages.yaml.example
More file actions
93 lines (79 loc) · 2.45 KB
/
packages.yaml.example
File metadata and controls
93 lines (79 loc) · 2.45 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Example packages.yaml configuration
# This file demonstrates various ways to specify packages with advanced options
packages:
# Simple package from PyPI (latest version)
- name: requests
# Package with specific version
- name: numpy
version: "==1.24.0"
# Package with version constraint
- name: pandas
version: ">=2.0.0"
# Package with alias (creates indexes for both names)
# Useful when the PyPI package name differs from the desired index name
- name: pyyaml
alias: PyYAML
# Package with host dependencies (libraries needed on the build system)
- name: cffi
host_dependencies:
- libffi-dev
patches:
- https://github.com/flet-dev/mobile-forge/raw/python3.12/recipes/cffi/patches/mobile.patch
# Package with multiple host dependencies
- name: cryptography
host_dependencies:
- libssl-dev
- libffi-dev
- cargo
- rustc
# Package with host dependencies for image processing
- name: pillow
host_dependencies:
- libjpeg-dev
- libpng-dev
- libtiff-dev
- libfreetype6-dev
- liblcms2-dev
- libwebp-dev
# Package with pip dependencies (Python packages needed for building)
- name: some-package
pip_dependencies:
- setuptools>=40
- wheel
- cython
patches:
- https://example.com/fix-build.patch
- https://example.com/mobile-support.patch
# Package with build dependencies (other packages that must be built first)
# This is useful when post-compilation tests need pre-built packages
- name: package-with-tests
build_dependencies:
- cffi
- numpy
# This package will wait for cffi and numpy to finish building before starting
# Package from custom URL (tarball)
- name: custom-package
source: url
url: https://example.com/custom-package-1.0.0.tar.gz
# Package from Git repository
- name: git-package
source: git
url: https://github.com/user/repo.git
# Package from Git with specific branch/tag
- name: git-package-branch
source: git
url: https://github.com/user/repo.git@v1.0.0
# Complex example with all options
- name: complex-package
version: ">=1.0.0,<2.0.0"
source: pypi
host_dependencies:
- libffi-dev
- libssl-dev
pip_dependencies:
- setuptools
- wheel
build_dependencies:
- cffi
# Note: For backward compatibility, you can still use packages.txt
# The system will automatically detect which format you're using