diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f67a201 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: "Make drakpdb distribution" +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + release_pypi: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - name: Build source distribution + run: 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: cibw-wheels + path: ./dist/* diff --git a/pyproject.toml b/pyproject.toml index 537644f..270bfb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ drakpdb = "drakpdb.main:main" [tool.setuptools] -packages = ["drakpdb", "drakpdb.pdbparse"] +packages = ["drakpdb", "drakpdb.pdbparse", "drakpdb.pdbparse._undname"] [tool.black] exclude = "drakpdb/pdbparse/*"