From 0ad57621b80999b146d13c4c5c43805d69f13fa9 Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 15:51:45 -0600 Subject: [PATCH 01/13] instructions for Alpine --- README.rst | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 6f5d232e..f614a622 100644 --- a/README.rst +++ b/README.rst @@ -38,12 +38,23 @@ If you are running a Linux distro that does not support `ManyLinux1 `: .. code:: shell - $ apk add --update python3 py-pip python3-dev cmake gcc g++ openssl-dev build-base - $ pip3 install uamqp --no-binary :all: + $ git clone https://github.com/Azure/azure-uamqp-python.git + + open pyproject.toml and make the following changes + + 1. Under [tool.cibuildwheel] + + a. Change skip = ["*-musllinux*", "pp*"] to skip = ["manylinux*","pp*"] + b. If you want to build for a specific python version for ex. py39, add this line right after the line above build = "cp39-musllinux_x86_64" + If left blank cibuildwheel will generate wheels for all supported python versions. For more check the `options `__ + 2. pip install dev_requirements.txt + 3. Make sure docker is running + 4. cibuildwheel --platform linux + 5. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine + If you are running Red Hat, you can install from source: From 4580ac770c452c16ba3025aa723ed3bc9e34fbc0 Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 15:56:05 -0600 Subject: [PATCH 02/13] formatting --- README.rst | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index f614a622..4cfd2d81 100644 --- a/README.rst +++ b/README.rst @@ -43,17 +43,18 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ +1. Under [tool.cibuildwheel] + a. Change skip = ["*-musllinux*", "pp*"] to skip = ["manylinux*","pp*"] + b. If you want to build for a specific python version for ex. py39, add this line right after the line above build = "cp39-musllinux_x86_64" + If left blank cibuildwheel will generate wheels for all supported python versions. For more check the `options `__ +.. code:: shell 2. pip install dev_requirements.txt - 3. Make sure docker is running +3. Make sure docker is running +.. code:: shell 4. cibuildwheel --platform linux - 5. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine +5. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine If you are running Red Hat, you can install from source: From a8c759b84f306951d956936bf7c2a031823ded7f Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 15:58:09 -0600 Subject: [PATCH 03/13] more formatting --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index 4cfd2d81..69a67699 100644 --- a/README.rst +++ b/README.rst @@ -49,11 +49,15 @@ open pyproject.toml and make the following changes a. Change skip = ["*-musllinux*", "pp*"] to skip = ["manylinux*","pp*"] b. If you want to build for a specific python version for ex. py39, add this line right after the line above build = "cp39-musllinux_x86_64" If left blank cibuildwheel will generate wheels for all supported python versions. For more check the `options `__ + .. code:: shell 2. pip install dev_requirements.txt + 3. Make sure docker is running + .. code:: shell 4. cibuildwheel --platform linux + 5. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine From 04aa30c417dbd13489088f345de150d832042c97 Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 15:58:58 -0600 Subject: [PATCH 04/13] fix --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 69a67699..af67c7ac 100644 --- a/README.rst +++ b/README.rst @@ -51,11 +51,13 @@ open pyproject.toml and make the following changes If left blank cibuildwheel will generate wheels for all supported python versions. For more check the `options `__ .. code:: shell + 2. pip install dev_requirements.txt 3. Make sure docker is running .. code:: shell + 4. cibuildwheel --platform linux 5. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine From b91194cbb15d5e7734a2c8855e5b0e1efd269140 Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:01:34 -0600 Subject: [PATCH 05/13] tweaks --- README.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index af67c7ac..652df1a7 100644 --- a/README.rst +++ b/README.rst @@ -43,21 +43,21 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ +2. After those changes install cibuildwheel .. code:: shell - 2. pip install dev_requirements.txt + 2. pip install cibuildwheel -3. Make sure docker is running +3. Make sure docker is running and run the following .. code:: shell - + 4. cibuildwheel --platform linux 5. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine From 8b993e46286c615eb5fdc1042a40662824fa561f Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:02:44 -0600 Subject: [PATCH 06/13] change command --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 652df1a7..06248ef1 100644 --- a/README.rst +++ b/README.rst @@ -43,11 +43,11 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ + ii. If you want to build for a specific python version for ex. py39, add this line right after the line above build = "cp39-musllinux_x86_64". If left blank cibuildwheel will generate wheels for all supported python versions. For more check the `options `__ 2. After those changes install cibuildwheel .. code:: shell From 639ed18a8b7de30cbf7c0a41b1882c3cad1ceefc Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:03:34 -0600 Subject: [PATCH 07/13] wording --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 06248ef1..6f9e8c7f 100644 --- a/README.rst +++ b/README.rst @@ -47,9 +47,10 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ + ii. If you want to build for a specific python version for ex. py39, add this line right after the line above build = "cp39-musllinux_x86_64". If left blank cibuildwheel will generate wheels for all supported python versions. For more information check the `options `__ 2. After those changes install cibuildwheel + .. code:: shell 2. pip install cibuildwheel From bd94b6c0dfb9fbb1989e8cc394dbcedfea41120e Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:05:03 -0600 Subject: [PATCH 08/13] compress steps --- README.rst | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index 6f9e8c7f..a03628fc 100644 --- a/README.rst +++ b/README.rst @@ -49,19 +49,14 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ -2. After those changes install cibuildwheel +2. After those changes install cibuildwheel and get it to generate a wheel .. code:: shell - 2. pip install cibuildwheel + $ pip install cibuildwheel + $ cibuildwheel --platform linux -3. Make sure docker is running and run the following - -.. code:: shell - - 4. cibuildwheel --platform linux - -5. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine +3. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine If you are running Red Hat, you can install from source: From 6517cee31f2cd36786bc5a9600c353ce9a24b5bc Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:06:33 -0600 Subject: [PATCH 09/13] fix spelling --- README.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.rst b/README.rst index a03628fc..75844a37 100644 --- a/README.rst +++ b/README.rst @@ -49,14 +49,13 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ -2. After those changes install cibuildwheel and get it to generate a wheel +2. After those changes install cibuildwheel and get it to generate a wheel in the wheelhouse folder. .. code:: shell $ pip install cibuildwheel $ cibuildwheel --platform linux -3. That will kickstart the process and generate a wheel for you in the wheelhouse folder, which can be used with Alpine If you are running Red Hat, you can install from source: From 80790fb88b8c97ecbe72267f937e9d04604b0e70 Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:08:19 -0600 Subject: [PATCH 10/13] fix rst errors --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 75844a37..c79a1bf6 100644 --- a/README.rst +++ b/README.rst @@ -38,7 +38,8 @@ If you are running a Linux distro that does not support `ManyLinux1 `: +If you are running Alpine, you can build a wheel using `cibuildwheel `__: + .. code:: shell $ git clone https://github.com/Azure/azure-uamqp-python.git From d19d2b46653deaa0142e62c771cef8e8cd42610f Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:09:10 -0600 Subject: [PATCH 11/13] fix --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c79a1bf6..7cc0214b 100644 --- a/README.rst +++ b/README.rst @@ -50,7 +50,7 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ -2. After those changes install cibuildwheel and get it to generate a wheel in the wheelhouse folder. +2. install cibuildwheel and get it to generate a wheel in the wheelhouse folder. .. code:: shell From 1b69ad7e2282189c2c767a2c5d865538fa69e1f2 Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:12:35 -0600 Subject: [PATCH 12/13] better wording --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 7cc0214b..cffdc762 100644 --- a/README.rst +++ b/README.rst @@ -48,7 +48,7 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ + ii. If you want to build for a specific python version for ex. py39, add this line right after the line above build = "cp39-musllinux_x86_64". By default wheels for all supported python versions will be built. For more information check the `options `__ 2. install cibuildwheel and get it to generate a wheel in the wheelhouse folder. From 08f3517a20321720a3d65bb9627622ef8c0e53de Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Thu, 15 Dec 2022 16:14:52 -0600 Subject: [PATCH 13/13] wording --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index cffdc762..a368e677 100644 --- a/README.rst +++ b/README.rst @@ -50,7 +50,7 @@ If you are running Alpine, you can build a wheel using `cibuildwheel `__ -2. install cibuildwheel and get it to generate a wheel in the wheelhouse folder. +2. install cibuildwheel and run it to generate a wheel in the wheelhouse folder. .. code:: shell