-
Notifications
You must be signed in to change notification settings - Fork 94
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
setup.py: generate single line description= #37
Conversation
5929d76
to
0a2efbd
Compare
Testing the build here -> https://travis-ci.com/mithro/TinyFPGA-Bootloader/builds/97766350 |
0a2efbd
to
d0dd9fb
Compare
I tried to be clever and it backfired. Trying again at https://travis-ci.com/mithro/TinyFPGA-Bootloader/builds/97766679 |
Ha... HTTPError: 400 Client Error: Invalid value for classifiers. Error: 'Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7' is not a valid choice for this field for url: https://upload.pypi.org/legacy/ |
The output looks better -> https://pypi.org/project/tinyprog/1.0.24.dev17/ |
The Summary: field (from description=) needs to be a single line, so replace newlines with spaces, and strip trailing white space.
Ahh, you don't have my newer setuptools... |
c93c077
to
4f9064a
Compare
This now works! https://pypi.org/project/tinyprog/1.0.24.dev18/ |
@mithro, the Summary: field (from description=) needs to be a single line, so
replace newlines with spaces, and strip trailing white space.
Existing PyPI
PKG-INFO
has:but AFAICT we need:
as generated when we strip out these stray newlines in the
description=
values.python setup.py sdist
seems to produce sensible lookingPKG-INFO
now, but I've obviously not tried uploading this to PyPI. At minimum I think it should be better than now.Ewen