Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new release? #26

Closed
ThomasWaldmann opened this issue Mar 2, 2022 · 15 comments
Closed

new release? #26

ThomasWaldmann opened this issue Mar 2, 2022 · 15 comments

Comments

@ThomasWaldmann
Copy link
Collaborator

is there something left to do for a new pypi release which we can help with @dcwatson?

guess we can't do much about #23 because that is in libdeflate project scope, not in this project's scope (besides maybe doing an update of the subrepo later, IF relevant tuning happened there).

@ThomasWaldmann
Copy link
Collaborator Author

changelog - shall we help? next release is 0.4.0?

@ThomasWaldmann
Copy link
Collaborator Author

ThomasWaldmann commented Mar 3, 2022

#29 is a good change and ready to merge into master, should get into next release i guess.

@ThomasWaldmann
Copy link
Collaborator Author

ThomasWaldmann commented Mar 5, 2022

looks like @dcwatson is busy right now, so i'll just work on a changelog PR...

see #30.

@ThomasWaldmann
Copy link
Collaborator Author

btw, @dcwatson, if you like to increase the "bus factor" a bit, you could add me as addtl. maintainer (or owner) for deflate on pypi.org.

my username there is: ThomasWaldmann

i would also offer to do next release in case you don't have time.

@ThomasWaldmann
Copy link
Collaborator Author

#29 will need a changelog entry after merge.

@dcwatson
Copy link
Owner

dcwatson commented Mar 9, 2022

Biggest blocker (in my estimation) is probably Windows support. Need to make sure this tests/builds wheels on Windows in addition to macOS and Linux. It would also be good to have CI for #29 where we could make sure both paths work, but if that's prohibitive I'm fine doing it manually for now.

@ThomasWaldmann
Copy link
Collaborator Author

when i did some tags recently, it started the wheel build. so guess you could just merge and tag to trigger that.

i'll add a changelog entry now to the PR, so that todo is also done.

@ThomasWaldmann
Copy link
Collaborator Author

as long as pypi pkgconfig is NOT installed in your build action, it should fall back to the bundled code, so same behaviour as before.

@ThomasWaldmann
Copy link
Collaborator Author

found a nice cibuildwheel option to run tests... - trying that in the PR...

@ThomasWaldmann
Copy link
Collaborator Author

can we do a release ASAP? i have 1,2 PRs at borgbackup blocked by this...

@dcwatson
Copy link
Owner

Sorry for the radio silence, everyone in my house has been sick the past week.

I think this is pretty much ready to go. In thinking about it some more tonight, I think we should break out two packages, deflate and deflate-binary (like what psycopg2 did). Being able to configure how libdeflate is compiled or linked is great, but having pre-built binary wheels is also great for containers and places without compilers. So for 0.4 and forward, I think I will just skip building the wheels for the deflate package, call it the compiled version, and investigate how to make a deflate-binary package happen.

I know you seem to be in a hurry for a new release. Do you have any problem with a 0.4.0 release without binary wheels, until I can figure out a script for building a deflate-binary package from this repo?

@ThomasWaldmann
Copy link
Collaborator Author

ThomasWaldmann commented Mar 14, 2022

Oh, i wish you all a quick recovery!

Timing is relaxed now, because I solved the issue in another way:

In borg, we already do a lot of interfacing to C libraries via Cython (e.g. to lz4, zstd, xxh64), so I decided to just do it in the same way for libdeflate. It's more consistent like that, was pretty easy (as it is only the one wrapper for crc32) and avoids adding a python dependency for deflate.

deflate python pkg was very useful to us for evaluating libdeflate performance on misc. platforms. On macOS, we'll use zlib.crc32 now, on Linux and all other platforms we'll use libdeflate_crc32.

@ThomasWaldmann
Copy link
Collaborator Author

About the binary package / wheels: I don't have strong opinions here.

@william-silversmith
Copy link

Hi all! Would it be possible to get a new release of py310 and py311 wheels? Not super urgent, but would be good! Just need to bump the cibuildwheel version for GHA.

I know it's been a while, but I hope you're feeling better dcwatson!

@dcwatson
Copy link
Owner

Finally pushed out 0.4.0 to PyPI, including pre-built wheels for Python 3.8-3.11 on all platforms. I still think it's worth splitting into two separate packages (source vs. binary) but it's been long enough...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants