Skip to content

Commit

Permalink
Initial fork of PyDuckling built against the latest version of Meta's…
Browse files Browse the repository at this point in the history
… Duckling (#1)

This is a fork of the original pyduckling-native library. There are differences to the original:
* Build against the latest version of [Duckling](https://github.com/facebook/duckling)
* Supported Python versions range from 3.8 to 3.12
* x86_64 Linux only, but contributions welcome if you dare to take on the challenge

Internally some other things have changed as well:
* Updated to latest Maturin v1.4.0
  * Adapted Rust code to work with latest Maturin/Rust compiler
* Removed `GHC_VERSION` constant since Duckling will always be build with the same GHC version as the corresponding Duckling version
* Introduced Docker-based build pipeline
* Publish packages as manylinux/musllinux wheels
* Minor changes to various Markdown files
  • Loading branch information
phihos authored Feb 14, 2024
1 parent 3dde5dc commit a388dbe
Show file tree
Hide file tree
Showing 42 changed files with 1,240 additions and 853 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Dockerfile
.cache
8 changes: 0 additions & 8 deletions .github/scripts/build_ffi.sh

This file was deleted.

60 changes: 0 additions & 60 deletions .github/scripts/build_linux_wheels.sh

This file was deleted.

26 changes: 0 additions & 26 deletions .github/scripts/build_mac_wheels.sh

This file was deleted.

10 changes: 0 additions & 10 deletions .github/scripts/build_pyduckling.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .github/scripts/run_tests.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .github/stack/stack.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build
on:
push: {}
pull_request: {}
release:
types: [ published ]
jobs:
build-and-test:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Cache build dependencies
uses: actions/cache@v4
env:
cache-name: cache-build-deps
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}
path: |
.cache
duckling-ffi/.stack-work
- name: Run build script
run: |
./build.sh
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: wheels
path: |
target/wheels/*.tar.gz
target/wheels/*.whl
publish:
needs: build-and-test
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: Download wheels
uses: actions/download-artifact@v4
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: target/wheels/
password: ${{ secrets.PYPI_API_TOKEN }}
43 changes: 0 additions & 43 deletions .github/workflows/linux-wheels.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/mac-tests.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/mac-wheels.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/rust.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

Loading

0 comments on commit a388dbe

Please sign in to comment.