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

Publish metadata to allow pulp to pulp sync #80

Merged
merged 3 commits into from
Jun 16, 2016

Conversation

asmacdo
Copy link
Contributor

@asmacdo asmacdo commented Jun 3, 2016

Publishes a json metadata file for each python project that contains
metadata for each python package that belongs to it. This is a subset of
the api that PyPI implements, and allows a Pulp to sync from another
Pulp in exactly the same way that it would sync from PyPI itself.

closes #140

Publishes a json metadata file for each python project that contains
metadata for each python package that belongs to it. This is a subset of
the api that PyPI implements, and allows a Pulp to sync from another
Pulp in exactly the same way that it would sync from PyPI itself.

closes pulp#140
@asmacdo
Copy link
Contributor Author

asmacdo commented Jun 3, 2016

@jeremycline jeremycline self-assigned this Jun 10, 2016
for name, packages in projects.items():
project_metadata_path = os.path.join(api_path, name, 'json')
os.makedirs(project_metadata_path)
project_index_metadata_path = os.path.join(project_metadata_path, 'index.html')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof. It's confusing to have a file that's called index.html that just contains JSON.

The PyPI API requires serving json, since we are serving via simple
files, we need to put this json in an index, and index.html would return
the wrong `Content-Type`.
@asmacdo asmacdo merged commit af9f83b into pulp:all-types Jun 16, 2016
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.

None yet

3 participants