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

Prevent flattening certain upload fields #138

Merged
merged 2 commits into from
Oct 4, 2015
Merged

Prevent flattening certain upload fields #138

merged 2 commits into from
Oct 4, 2015

Conversation

sigmavirus24
Copy link
Member

The gpg_signature field needs to be passed to MultipartEncoder with a
tuple as the value. This was flattening it causing PyPI to receive two
parts with the same name and parsing them into a list.

The values need to otherwise be flattened because in some cases the
MultipartEncoder cannot handle a sequence value that isn't meant to be a
file-like part (e.g., platform).

Closes #137

The gpg_signature field needs to be passed to MultipartEncoder with a
tuple as the value. This was flattening it causing PyPI to receive two
parts with the same name and parsing them into a list.

The values need to otherwise be flattened because in some cases the
MultipartEncoder cannot handle a sequence value that isn't meant to be a
file-like part (e.g., platform).

Closes #137
@sigmavirus24 sigmavirus24 added this to the 1.6.3 milestone Oct 1, 2015
This will ideally prevent #137 from regressing.
sigmavirus24 added a commit that referenced this pull request Oct 4, 2015
Prevent flattening certain upload fields
@sigmavirus24 sigmavirus24 merged commit 02eb2b2 into master Oct 4, 2015
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

Successfully merging this pull request may close these issues.

1 participant