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.
Applied updates and changes for deployment
- Loading branch information
1 parent
6ca131f
commit c983c1e
Showing
18 changed files
with
471 additions
and
414 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,42 @@ | ||
# Build wheel from source using tox. | ||
name: build_wheel | ||
on: [push, pull_request] | ||
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' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- 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 | ||
- 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 | ||
- name: Build Python wheel | ||
run: | | ||
tox -e${{ matrix.toxenv }} |
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 |
---|---|---|
|
@@ -84,18 +84,24 @@ environment: | |
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
CC: clang | ||
CFLAGS: "-I/usr/local/include" | ||
LDFLAGS: "-L/usr/local/lib" | ||
CONFIGURE_OPTIONS: "" | ||
- TARGET: macos-x64-gcc | ||
BUILD_ENVIRONMENT: xcode | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
CC: gcc | ||
CFLAGS: "-I/usr/local/include" | ||
LDFLAGS: "-L/usr/local/lib" | ||
CONFIGURE_OPTIONS: "" | ||
- TARGET: macos-x64-gcc-python | ||
BUILD_ENVIRONMENT: xcode | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
PYTHON: "/usr/local/opt/[email protected]/bin/python3" | ||
PYTHON_CONFIG: "/usr/local/opt/[email protected]/bin/python3-config" | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
CC: gcc | ||
CFLAGS: "-I/usr/local/include" | ||
LDFLAGS: "-L/usr/local/lib" | ||
CONFIGURE_OPTIONS: "--enable-python" | ||
|
@@ -105,6 +111,7 @@ environment: | |
PYTHON: "/usr/local/opt/[email protected]/bin/python3" | ||
PYTHON_CONFIG: "/usr/local/opt/[email protected]/bin/python3-config" | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
CC: gcc | ||
CFLAGS: "-I/usr/local/include" | ||
LDFLAGS: "-L/usr/local/lib" | ||
CONFIGURE_OPTIONS: "--disable-dependency-tracking --prefix=/usr/local --enable-python --with-pyprefix" | ||
|
@@ -140,6 +147,12 @@ environment: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.11 | ||
TOXENV: py311 | ||
- TARGET: macos-tox-py312 | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.12 | ||
TOXENV: py312 | ||
- TARGET: cygwin64-gcc | ||
BUILD_ENVIRONMENT: cygwin64 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ AC_PREREQ([2.71]) | |
|
||
AC_INIT( | ||
[libpff], | ||
[20230906], | ||
[20231022], | ||
[[email protected]]) | ||
|
||
AC_CONFIG_SRCDIR( | ||
|
@@ -219,6 +219,7 @@ AC_CONFIG_FILES([dpkg/changelog]) | |
AC_CONFIG_FILES([libpff/libpff.rc]) | ||
AC_CONFIG_FILES([libpff.pc]) | ||
AC_CONFIG_FILES([libpff.spec]) | ||
AC_CONFIG_FILES([setup.cfg]) | ||
dnl Generate a source configuration file | ||
AC_CONFIG_HEADERS([common/config.h]) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
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,2 +1,15 @@ | ||
[metadata] | ||
name = libpff-python | ||
version = 20231022 | ||
description = Python bindings module for libpff | ||
long_description = Python bindings module for libpff | ||
author = Joachim Metz | ||
author_email = [email protected] | ||
license = GNU Lesser General Public License v3 or later (LGPLv3+) | ||
license_files = COPYING COPYING.LESSER | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Programming Language :: Python | ||
|
||
[options] | ||
python_requires = >=3.7 |
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,15 @@ | ||
[metadata] | ||
name = libpff-python | ||
version = @VERSION@ | ||
description = Python bindings module for libpff | ||
long_description = Python bindings module for libpff | ||
author = Joachim Metz | ||
author_email = [email protected] | ||
license = GNU Lesser General Public License v3 or later (LGPLv3+) | ||
license_files = COPYING COPYING.LESSER | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Programming Language :: Python | ||
|
||
[options] | ||
python_requires = >=3.7 |
Oops, something went wrong.