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

feat(pip_setup): copy extract.py to repo #6768

Merged
merged 8 commits into from
Jul 18, 2020
Merged

feat(pip_setup): copy extract.py to repo #6768

merged 8 commits into from
Jul 18, 2020

Conversation

viceice
Copy link
Member

@viceice viceice commented Jul 17, 2020

  • copy extract.py to repo and call from there
  • write extract result to file instead of stdout

closes: #6766

@viceice
Copy link
Member Author

viceice commented Jul 17, 2020

tested against real repo with and without docker. 🙃

data/extract.py Outdated
Comment on lines 28 to 29
with open('renovate-python-report.json', 'w', encoding='utf-8') as f:
json.dump(kwargs, f, ensure_ascii=False, indent=2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to clean this up afterwards?

Copy link
Member Author

Choose a reason for hiding this comment

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

Don't think so, we do the same with gradle (no cleanup)

JamieMagee
JamieMagee previously approved these changes Jul 17, 2020
@rarkins
Copy link
Collaborator

rarkins commented Jul 17, 2020

Do we need to make the file name sufficiently unique?

@viceice
Copy link
Member Author

viceice commented Jul 17, 2020

Adapted from gradle manager, maybe it's better to write to cacheDir to not interferre with repo? or to <localDir>/.git/renovate ?

@viceice
Copy link
Member Author

viceice commented Jul 17, 2020

I think this is fine now. We will hopefully have a js based manager soon. 🙃

@viceice viceice changed the title fix(pip_setup): copy extract.py to repo feat(pip_setup): copy extract.py to repo Jul 17, 2020
Copy link
Collaborator

@rarkins rarkins left a comment

Choose a reason for hiding this comment

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

LGTM assuming it's been tested both with and without Docker

@viceice viceice merged commit e3da371 into master Jul 18, 2020
@viceice viceice deleted the fix/pip-setup branch July 18, 2020 08:03
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 21.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running renovate/renovate:slim CLI with binary-source docker will fail for pip extractions
4 participants