@@ -7,36 +7,36 @@ Python packages are released using
7
7
it. Usually it means setup docker and install the package from PyPi (see [ setup
8
8
instructions] ( https://cibuildwheel.pypa.io/en/stable/setup/#local ) ).
9
9
10
- There are additional preparations to be made before running it. First of all
11
- ` libhyperonc ` library should be built and installed in a build environment. By
12
- default library downloads and install version from the ` main ` branch of the
13
- ` trueagi-io/hyperon-experimental ` repository. If one need to use the custom
14
- branch then it is done by passing custom parameters to the
15
- ` install-hyperonc.sh ` script which is called using
10
+ There are additional preparations to be made. First of all it is needed to
11
+ allow building and installing ` libhyperonc ` library on a build environment.
12
+ ` cibuildwheel ` uses isolated docker container for each kind of platform it
13
+ supports. Only code of the Python package is copied into container
14
+ automatically. Code of the ` libhyperonc ` library should be downloaded from
15
+ outside. It means one need to have the code in some repo accessible from the
16
+ container before starting release. The simplest way is to push the changes in
17
+ your GitHub repo fork.
18
+
19
+ By default library downloads and installs version from the ` main ` branch of the
20
+ ` trueagi-io/hyperon-experimental ` repository. Using a custom branch is done by
21
+ passing custom parameters to the ` install-hyperonc.sh ` script through
16
22
[ CIBW_BEFORE_ALL] ( https://cibuildwheel.pypa.io/en/stable/options/#before-all )
17
23
environment variable:
18
24
```
19
25
export CIBW_BEFORE_ALL='sh -c "./python/install-hyperonc.sh -u <git-repo-url> -r <git-branch>"'
20
26
```
21
-
22
27
One should replace ` <git-repo-url> ` and ` <git-branch> ` by the repo URL and
23
- branch which are used in release. It is required because ` cibuildwheel ` uses
24
- isolated docker container for each kind of platform it supports. Only code of
25
- the Python package is copied into container automatically. Code of the
26
- ` libhyperonc ` library should be downloaded from outside. It means one need to
27
- have the code in some repo accessible from the container before starting
28
- release. The simplest way is to push the changes in your GitHub repo fork.
29
-
30
- Also one can start from building the only platform to quickly check whether
31
- release works. This can be done using
28
+ branch which are used in release.
29
+
30
+ Also it is possible to start from building the only platform to quickly check
31
+ whether release works. This can be done using
32
32
[ CIBW_BUILD] ( https://cibuildwheel.pypa.io/en/stable/options/#build-skip )
33
33
variable:
34
34
```
35
35
export CIBW_BUILD=cp37-manylinux_x86_64
36
36
```
37
37
38
38
After exporting the variables above one can start release by executing
39
- ` cibuildwheel ` from the ` ./python ` directory of the repo. See [ cibuildwheel
39
+ ` cibuildwheel ./python ` from the root directory of the repo. See [ cibuildwheel
40
40
documentation] ( https://cibuildwheel.pypa.io/en/stable/ ) for details.
41
41
42
42
## How to update the version
0 commit comments