Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building issues with Python 3.11. #14

Merged
merged 5 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 10 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
types: [published]

jobs:
build_wheels:
name: Build wheel
build_wheel_and_sdist:
name: Build wheel and tar.gz
runs-on: ubuntu-latest

steps:
Expand All @@ -15,32 +15,18 @@ jobs:
with:
python-version: '3.10'
- name: Install dependencies
run: pip install wheel
- name: Build wheel
run: pip wheel -w wheels .
- uses: actions/upload-artifact@v3
run: pip install build
- name: Build wheel and sdist
run: python -m build
- uses: actions/upload-artifact@v4
with:
name: artifact
path: ./wheels/python_binexport*.whl

build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build sdist
run: |
python -m pip install -U pip build
python -m build --sdist
- uses: actions/upload-artifact@v3
with:
name: artifact
path: dist/*.tar.gz
path: |
./dist/python_binexport*.whl
./dist/*.tar.gz

upload_pypi:
needs: [build_wheels, build_sdist]
needs: build_wheel_and_sdist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ __pycache__/
*$py.class

build/
dist/
*.egg-info/
/venv/
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ version = "0.2.1"
description = "Python wrapper to manipulate binexport files (protobuf)"
readme = { file = "README.md", content-type = "text/markdown" }
authors = [{ name = "Quarkslab", email = "[email protected]" }]
license = {text = "AGPL-3.0"}
requires-python = ">=3.9"
dependencies = [
"python-magic",
"python-magic-bin; os_name=='nt'",
Expand All @@ -29,8 +31,8 @@ Repository = "https://github.com/quarkslab/python-binexport"
Documentation = "https://quarkslab.github.io/diffing-portal/exporter/binexport.html#python-binexport"
"Bug Tracker" = "https://github.com/quarkslab/python-binexport/issues"

[tools.setuptools]
script-files = ["bin/binexporter"]
[project.scripts]
binexporter = 'binexport.__main__:main'

[tool.black]
line-length = 100
Expand Down
38 changes: 0 additions & 38 deletions setup.py

This file was deleted.

File renamed without changes.