-
Notifications
You must be signed in to change notification settings - Fork 88
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? #88
Comments
We can do it in a few hours indeed. Just need to think about the version number. Because of the big change, maybe we can jump to 2.0 or try to track freetype version number. @madig @anthrotype @HinTak Any recommendation/comment on this? |
i'm not sure it's a good idea to use freetype's own version number. It's true we always want to bump the wrapper's version whenever the wrapped library (or libraries) is updated, like in this case. But we may well have bugfixes or new features added to the wrapper which don't entail updating the embedded libs' versions. You could in theory use post releases for that (e.g. |
I get your point. We still need a version number that convey (more or less) the idea of the big change that happened (while the API remains the same). |
i'm ok with 2.0.0 |
in that case, semver-strictly speaking, 1.3.0 would be the correct number. But you're free to chose what you prefer. I was just commenting on the suggestion to use the same version as the FreeType library. |
I suppose you can track FreeType and keep your own version number, i.e. if FT introduces a backwards compatible change in the API via a minor version, you can increment your minor version as well. Same with major and patch versions. Incremented Harfbuzz versions can probably be tracked the same way? Or just as a patch number since it isn't directly exposed. |
Let's say 2.0.0 then. |
Are there any news on this? |
Totally forgot... Will do today, sorry for the delay. |
Done. |
https://travis-ci.org/rougier/freetype-py/jobs/397335218 "PyPI upload failed." 😢
|
https://travis-ci.org/rougier/freetype-py/jobs/397335217 This job seems to fail to bundle FT and thus uploads freetype_py-2.0-py3-none-any.whl, which then conflicts with the next job. |
Restarting the Travis job just to check. |
It seems to have just passed.... |
"Skipping a deployment with the pypi provider because this is not a tagged commit" Ugh. I'd need to dig into this later... PyPI now has a partially updated file list: https://pypi.org/project/freetype-py/#files. The unbundled wheel should be a universal one, so it gets the py2-py3 tag 🤔 |
The certificate on https://nipy.bic.berkeley.edu/ is expired. |
...which is fixed upstream. You should update the multibuild submodule. |
So... maybe I'll just tag "2.0.0" after I merged #90 so we can overwrite what's on PyPI. |
you can't overwrite what's on PyPI. You can delete uploaded files, but to upload new ones you always need to bump the version, otherwise it fails. It's by design. You could keep the same version and use a PEP440 "post-release" specifier: e.g. "2.0.0.post1" |
Yes, but the current version is "2.0", so maybe "2.0.0" works? 😁 |
no. versions are normalized. 2.0 == 2.0.0 |
Alright, universal, Linux and macOS wheels are online. Just the Window wheels don't deploy: https://ci.appveyor.com/project/rougier/freetype-py/build/job/plkg08phf91jct69 😠 Looks like some shell expansion issue. |
try removing the hack that uses powershell should expand the glob pattern |
and maybe tag a .post2 release. I know, it's super frustrating, but once you get it right it pays off. Well, at least until something else breaks as Travis/Appveyor/multibuild/etc. change over time. |
the cmd/twine hack required because twine used to log to stderr (which tripped powershell), but the latest prints to stdout so it works |
looking at https://pypi.org/project/freetype-py/2.0.0.post1/#files I don't see the source distribution (either .tar.gz or .zip) uploaded. There should be one for platforms for which we don't have pre-built wheels, so they can build from source and depending on the env variable use the system library or build the embedded one. Also, do we actually need to also upload to PyPI the wheel without the embedded DLL? ie. the one ending with tag |
Ah, thanks. Can't find any reference to deploy_script in https://www.appveyor.com/docs/build-configuration/#build-pipeline though... will keep on_success. Oh yes, I forgot the sdist. Hm. One more matrix entry then or some fudging. I'd keep Wheels for unbundled distribution because PyPA says so: https://packaging.python.org/guides/distributing-packages-using-setuptools/#wheels |
just add a Line 69 in e1de05b
but then, is not clear which wheel (with bundled lib, or unbundled universal) is going to take precendence and under which circumstances. I presume, if a platform supports one of the available platform-specific wheels, those will be automatically selected, and the one with 'none' ABI flag will only be used for non-supported platforms, with no means from a pip command line to select which? I think this is not very good. Better to use wheels only for true binary distributions, and the sdist for pure-python-without-bunded-native-lib sources. |
note that when you do |
Wouldn't that build 3 sdists and make deploy fail? 🤔
https://www.python.org/dev/peps/pep-0425/#id1 recommends that installers go from specific to pure wheels. Let's just hope that pip honors this 😀 |
Well that didn't work. |
it will work with the sdist package wasn't uploaded though: this line: Line 63 in 93751dc
is not valid bash: https://travis-ci.org/rougier/freetype-py/jobs/399574506#L513 also you want to build the sdist package only once, not for every build. Build it with python 3.6 only, by setting some env variable (e.g. |
and then of course you would run |
https://ci.appveyor.com/project/rougier/freetype-py/build/job/klm4xknx13vox2oc ... groan. So either the whl is not in dist or the shell expansion doesn't work here. |
It is in dist, otherwise Appveyor could not upload the 'artifacts" here: https://ci.appveyor.com/project/rougier/freetype-py/build/1.0.95/job/klm4xknx13vox2oc/artifacts given this: Line 68 in 89496f2
don't add more hacks on top of hacks |
Hm. PowerShell doesn't do expansion by itself, the cmdlet has to do it...
|
use the snippet I linked to above. it doesn't use powershell, but runs inside cmd.exe like the rest of the appveyor commands if it works for cibuildwheel-autopypi-example, it will work for us too! |
Let's hope. |
Thanks! |
Finally!
…On Tue, 3 Jul 2018, 18:51 bgermann, ***@***.***> wrote:
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#88 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAXPndEjIvKRiN7jdmPkRn9sJk61Icpeks5uC68NgaJpZM4Uia_S>
.
|
When will there be a new release based on #79?
The text was updated successfully, but these errors were encountered: