Skip to content

Handle all requirement flags properly and strip -e flags #507

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

Merged
merged 3 commits into from
Oct 2, 2020

Conversation

jacksgt
Copy link
Contributor

@jacksgt jacksgt commented Apr 19, 2020

This PR addresses two issues:

I have also added an additional test patch that verifies this behavior.

@bsamuel-ui
Copy link
Contributor

@jacksgt Please see #550

Previously, there were various with installing editable packages in
different python / pip versions.
serverless#240

This adds logic to strip out all '-e' editable flags from the
requirements.txt file and issues a warning to the CLI.

fixes serverless#240
@jacksgt jacksgt force-pushed the pr-editable branch 6 times, most recently from 56cea06 to 0dee94c Compare October 2, 2020 19:31
Previously, requirements with the -e flag where completely ignored
serverless#36

With the latest patch, the -e flag are stripped out, but the
requirement itself is preserved.

This patch adds a check to test this desired behavior.
@jacksgt
Copy link
Contributor Author

jacksgt commented Oct 2, 2020

@bsamuel-ui Hey, I rebased this PR onto master and updated all the tests as necessary (async test, prettier etc.).
All tests are passing now. Are any other steps necessary before merging?

Have a great weekend!

@bsamuel-ui bsamuel-ui merged commit ab1bbbc into serverless:master Oct 2, 2020
@bsamuel-ui
Copy link
Contributor

Nope, it's good to go!

@jacksgt
Copy link
Contributor Author

jacksgt commented Oct 2, 2020

Great, thanks!

@jacksgt jacksgt deleted the pr-editable branch October 2, 2020 21:18
Twista pushed a commit to Twista/serverless-python-requirements that referenced this pull request Nov 19, 2020
Handle all requirement flags properly and strip -e flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants