-
Notifications
You must be signed in to change notification settings - Fork 124
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
UTF-8 author name leads to Author-email field being encoded #531
Comments
Addendum:
|
This is a function of your build backend - what build backend are you using?
|
Might be related to pypa/wheel#488, pypa/setuptools#3663 |
From my understanding, the As @abravalheri pointed out, that |
Ah, thanks, yes, that For reference, my build system definition: [build-system]
requires = [
"setuptools>=40.8.0",
"wheel"
]
build-backend = "setuptools.build_meta" And apologies, I'm still getting my bearings with the fancy new stuff after coming from a decade of In that case, happy to close this and sub to the |
No worries, happy to help 😊 |
I have a
pyproject.toml
containing my name and email in theauthors
field like this:Running
python -m build
generates the following inMETADATA
:That in turn leads to an error when attempting to upload such a package to testpypi (I haven't yet tried production pypi but I would expect it to behave exactly the same):
Should this maybe rather be
=?utf-8?b?R2luYSBIw6R1w59nZQ==?= <[email protected]>
in thatAuthor-email
field? Or maybe, given that Core metadata specifications says this:just leaving UTF-8 strings as is and including them in the file unencoded would be the best way, but I don't know what side effects that might have.
In my
setup.py
based packages,METADATA
looks like this and that works just fine on upload:So, if push comes to shove, splitting the values up like this might be the easiest solution to this issue, as already mentioned in #501. Being forced to write my name ASCII only certainly feels wrong in 2022 ;)
The text was updated successfully, but these errors were encountered: