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

Implement the ability to parse setup.py requirements #182

Closed
wants to merge 1 commit into from
Closed

Implement the ability to parse setup.py requirements #182

wants to merge 1 commit into from

Conversation

demosdemon
Copy link

Should satisfy part of #137.

@demosdemon
Copy link
Author

Tests will fail until #181 is merged.

old_setup = module.setup
module.setup = setup

exec(self.content, globals())
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm afraid we can't to that as it allows to execute arbitrary python :(

The code runs on pyup.io and if someone crafts a setup.py that runs some malicious python code, he/she can basically take over the service.

@demosdemon
Copy link
Author

closing this, I'm gonna revisit parsing this later

@demosdemon demosdemon closed this Feb 1, 2017
@demosdemon demosdemon deleted the parse-setupdotpy branch February 1, 2017 16:55
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.

2 participants