Skip to content

Commit

Permalink
CI: Make release distribution (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Jul 31, 2024
1 parent bb803ca commit 69027cb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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/*
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"
Expand Down

0 comments on commit 69027cb

Please sign in to comment.