From 69027cb183b9ed27a3bf3eb3d8a6a7562b8ca9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Srokosz?= Date: Wed, 31 Jul 2024 18:57:56 +0200 Subject: [PATCH] CI: Make release distribution (#10) --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ pyproject.toml | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a0fa27a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: "Build drakpdb distribution packages" +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.8 + - name: Build source distribution + run: | + pip install -U setuptools + python3 setup.py sdist + - name: Build wheel distribution + run: | + pip install cibuildwheel==2.19.2 + python -m cibuildwheel --output-dir dist --archs x86_64 --platform linux + - uses: actions/upload-artifact@v4 + with: + name: drakpdb-wheels + path: ./dist/* diff --git a/pyproject.toml b/pyproject.toml index 537644f..5c42686 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,12 +19,13 @@ dependencies = [ "requests>2.32.2", "tqdm", ] +requires-python = ">=3.8" [project.scripts] drakpdb = "drakpdb.main:main" [tool.setuptools] -packages = ["drakpdb", "drakpdb.pdbparse"] +packages = ["drakpdb", "drakpdb.pdbparse", "drakpdb.pdbparse._undname"] [tool.black] exclude = "drakpdb/pdbparse/*"