Skip to content

Commit

Permalink
Include third-party licenses in distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
ariebovenberg committed Jul 5, 2024
1 parent bb50c3f commit a575cee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
matrix:
include:
# manylinux targets
- os: linux
target: x86_64
- os: linux
target: x86
- os: linux
target: x86_64
target: aarch64
- os: linux
target: armv7
- os: linux
target: ppc64le
- os: linux
target: s390x
- os: linux
target: aarch64

# musllinux targets
- os: linux
Expand Down Expand Up @@ -64,11 +64,11 @@ jobs:
with:
python-version: '3.12'
architecture: ${{ matrix.python-architecture || 'x64' }}
- run: |
pip install -U twine
sed -i ${{ (matrix.os == 'macos' && '""') || '' }} 's/build-backend = "setuptools.build_meta"/build-backend = "maturin"/' pyproject.toml
sed -i ${{ (matrix.os == 'macos' && '""') || '' }} 's/^requires = \["setuptools", .*]/requires = \["maturin>=1.0,<2.0"\]/' pyproject.toml
tail pyproject.toml
- run: pip install -U twine
- name: Generate third-party license information
run: |
cargo install cargo-3pl --version 0.1.3
cargo 3pl > LICENSE-THIRD-PARTY
- name: build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -88,6 +88,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate third-party license information
run: |
cargo install cargo-3pl --version 0.1.3
cargo 3pl > LICENSE-THIRD-PARTY
- name: Build sdist
run: |
pip install build twine
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ will help you adjust to any API changes.
> versions. After 1.0, backwards compatibility of pickles will be maintained
> as much as possible.

## License

**Whenever** is licensed under the MIT License.
The binary wheels contain Rust dependencies which are licensed under MIT or Apache 2.0.
These licenses are included in the wheels and source distributions.

## Acknowledgements

This project is inspired by the following projects. Check them out!
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ find = { where = ["pysrc"] }
# extension from source distributions.
# However, we also use maturin to build the binary distributions (wheels)
# since it is *very* convenient for this purpose.
# During wheel building, we set build-backend to `maturin`
[tool.maturin]
python-source = "pysrc"
module-name = "whenever._whenever"
Expand Down

0 comments on commit a575cee

Please sign in to comment.