From fc60e78cc02db4639ff79e41a7a3d5f305507b16 Mon Sep 17 00:00:00 2001 From: tshimizu <38872132+takuto-shimizu@users.noreply.github.com> Date: Sat, 11 May 2024 17:49:24 +0900 Subject: [PATCH 1/3] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a8a76c7f..dc4f1875 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["flit"] build-backend = "flit.buildapi" [project] -name = "py-project-toml" +name = "my_samples" authors = [ {name = "Daniel Ciborowski", email = "dciborow@microsoft.com"}, ] From 7293bd6b327e1cc8b766ae895133881b67d420eb Mon Sep 17 00:00:00 2001 From: tshimizu <38872132+takuto-shimizu@users.noreply.github.com> Date: Sat, 11 May 2024 19:59:34 +0900 Subject: [PATCH 2/3] Update pyproject.toml --- pyproject.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dc4f1875..86af76de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["flit"] build-backend = "flit.buildapi" [project] -name = "my_samples" +name = "py-project-toml" authors = [ {name = "Daniel Ciborowski", email = "dciborow@microsoft.com"}, ] @@ -313,3 +313,15 @@ overgeneral-exceptions= [ "BaseException", "Exception" ] + +[tool.poetry] +name = "mySamplePack" +version = "0.1.0" +description = "" +authors = ["shimizu"] +readme = "README.md" + + +packages = [ + { include = "src/python_package" } +] From 549f8f32426b56be075686ac5b11b67593a2af3a Mon Sep 17 00:00:00 2001 From: tshimizu <38872132+takuto-shimizu@users.noreply.github.com> Date: Sat, 11 May 2024 20:01:10 +0900 Subject: [PATCH 3/3] Create package-build.yml --- .github/workflows/package-build.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/package-build.yml diff --git a/.github/workflows/package-build.yml b/.github/workflows/package-build.yml new file mode 100644 index 00000000..df3a1239 --- /dev/null +++ b/.github/workflows/package-build.yml @@ -0,0 +1,34 @@ + +name: Python Build +on: push +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.9] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + env: + SUPER_SECRET: ${{ secrets.SuperSecret }} + - name: Update pip + run: | + python -m pip install --upgrade pip + - name: Install Poetry + run: | + pip install poetry + poetry install --no-interaction + - name: Pack Build + run: | + poetry build + poetry self add artifacts-keyring + - name: Pack publish + run: | + poetry config repositories.azure https://pkgs.dev.azure.com/takshimizu/_packaging/mySamplePack/pypi/upload/ --local + poetry config http-basic.azure tmp_token ${{ env.SUPER_SECRET }} --local + poetry publish -r azure