Skip to content
Open
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
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:

test:
runs-on: ${{ matrix.os }}
needs: package-sdist
strategy:
fail-fast: false
matrix:
Expand All @@ -32,22 +33,25 @@ jobs:
["3.14t", "py314t"],
]
steps:
- name: Set git to use LF on Windows
if: runner.os == 'Windows'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v5
with:
submodules: recursive
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version[0] }}
allow-prereleases: true
- uses: actions/download-artifact@v6
with:
name: sdist
path: dist/
- name: Extract source package
shell: bash
run: |
mkdir source
tar -xzf dist/*.tar.gz -C source --strip-components=1
- name: Run tests
working-directory: source
shell: bash
run: |
python -m pip install tox
tox -e ${{ matrix.python-version[1] }}
tox -e ${{ matrix.python-version[1] }} --installpkg ../dist/*.tar.gz

package-sdist:
runs-on: ubuntu-latest
Expand Down
9 changes: 8 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ recursive-include libbrotli/c/dec *.c *.h *.cc
recursive-include libbrotli/c/common *.c *.h *.cc
recursive-include libbrotli/c/include *.c *.h *.cc

# Include test files
# Include test files, dependencies, and fixtures
include tox.ini test_requirements.txt
recursive-include test/ *.py

recursive-include libbrotli/tests/testdata *
# Exclude datasets and alternate encodings unused by brotlicffi's tests,
# saving about 12 MB of uncompressed test data.
exclude libbrotli/tests/testdata/bb.binast libbrotli/tests/testdata/random_chunks
exclude libbrotli/tests/testdata/*.compressed.*
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ libraries together to support Brotli with multiple Python implementations.
License
-------

The source code of BrotliCFFI is available under the MIT license. Brotli itself
is made available under the Version 2.0 of the Apache Software License. See the
LICENSE and libbrotli/LICENSE files for more information.
The source code of BrotliCFFI and Brotli itself are available under the MIT
license. See the LICENSE and libbrotli/LICENSE files for more information.

Authors
-------
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ markers =
[metadata]
license_files =
LICENSE
libbrotli/LICENSE
Loading