forked from libyal/libpff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Everlaw/feature/publish-wheels
Publish wheels
- Loading branch information
Showing
20 changed files
with
66 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
"schedule:weekly" | ||
], | ||
"timezone": "America/Los_Angeles", | ||
"includePaths": [".github/**"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
# Build wheel from source using tox. | ||
name: build_wheel | ||
on: [push, pull_request] | ||
on: [push] | ||
permissions: read-all | ||
jobs: | ||
build_wheel: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- python-version: '3.7' | ||
toxenv: 'py37' | ||
- python-version: '3.8' | ||
toxenv: 'py38' | ||
- python-version: '3.9' | ||
toxenv: 'py39' | ||
- python-version: '3.10' | ||
toxenv: 'py310' | ||
- python-version: '3.11' | ||
toxenv: 'py311' | ||
- python-version: '3.12' | ||
toxenv: 'py312' | ||
runs-on: [self-hosted, libpff] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install build dependencies | ||
run: | | ||
sudo add-apt-repository universe && | ||
sudo add-apt-repository -y ppa:deadsnakes/ppa && | ||
sudo apt-get update && | ||
sudo apt-get install -y autoconf automake autopoint build-essential git libtool pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools | ||
- name: Install tox | ||
run: | | ||
python3 -m pip install tox | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | ||
- name: Download test data | ||
run: | | ||
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi | ||
- name: Prepare build | ||
run: | | ||
./synclibs.sh --use-head && ./autogen.sh && ./configure && make sources >/dev/null | ||
- name: Build Python wheel | ||
- name: Create virtual environment | ||
run: | | ||
rm -rf venv | ||
python3 -m venv venv | ||
echo "$(pwd)/venv/bin" >> $GITHUB_PATH | ||
- name: Install Python dependencies | ||
run: | | ||
python3 -m pip install \ | ||
'build' \ | ||
'mypy' \ | ||
'setuptools>=65' \ | ||
'wheel' | ||
- name: Build libpff-python wheel | ||
run: | | ||
python3 -m build --no-isolation --outdir=dist --wheel | ||
python3 -m pip install --no-index --find-links=dist libpff-python | ||
python3 tests/runtests.py | ||
- name: Build pypff-stubs wheel | ||
working-directory: stubs | ||
run: | | ||
python3 -m build --outdir=dist --wheel | ||
python3 -m pip install --no-index --find-links=dist pypff-stubs | ||
mypy --strict -c 'import pypff; reveal_type(pypff.file)' | ||
- name: Upload wheels | ||
run: | | ||
tox -e${{ matrix.toxenv }} | ||
./upload-wheel.sh dist/libpff_python*.whl | ||
./upload-wheel.sh stubs/dist/pypff_stubs*.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
*.egg-info/ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,3 @@ class items: | |
def __getitem__(self) -> item: ... | ||
|
||
def __name__(self) -> str: ... | ||
|
||
def __doc__(self) -> str: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.