Skip to content

Commit

Permalink
Accept anything with Buffer Protocol, remove numpy (#100)
Browse files Browse the repository at this point in the history
- Adds support for anything which implements the buffer protocol
- As a result, removes need for numpy and PyBytes and PyByteArray
  implementations in BytesType variants
  • Loading branch information
milesgranger authored Apr 29, 2023
1 parent 4cd4e47 commit b219f1c
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 344 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ jobs:
pip install cramjam --no-index --find-links dist --force-reinstall
pip install -r dev-requirements.txt
make test
- name: Test no numpy installed works
if: matrix.target == 'x86_64'
run: |
pip uninstall numpy -y
python -m pytest tests/test_no_numpy.py
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down
80 changes: 1 addition & 79 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cramjam"
version = "2.7.0-rc1"
version = "2.7.0-rc2"
authors = ["Miles Granger <miles59923@gmail.com>"]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -28,4 +28,3 @@ bzip2 = "^0.4"
lz4 = "^1"
flate2 = "1.0.25"
zstd = "0.11.1+zstd.1.5.2"
numpy = "^0.18"
Loading

0 comments on commit b219f1c

Please sign in to comment.