-
Notifications
You must be signed in to change notification settings - Fork 293
Packaging packages... setuptools style #139
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
Comments
Experimenting a bit with it, I don't think it's currently possible with pipenv. I created this [[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[dev-packages]
[packages]
xyz = {path = "."} However, without pipenv, |
@dschep yeah, looks like you've retraced my steps! When you say that Are you also trying with |
Just Possible workaround:you could set
Possible fix:turn editable requirements into non-editableIt might make sense for the plugin to filter the requirements and remove add option to not use hashesThis would fix #85 allowing the |
As you noticed, I tested the bugfix that #85 references pipenv #1380 and that solution doesn't seem to be totally working yet. Anyway, what's interesting is that when pipenv produces the locked requirements file (on master), it actually just comments out the "-e ." entirely from the requirements.txt file. I.e.
I'm not sure that that's the right solution, either. But it would be the third alternative "get rid of editable requirement all-together". That's effectively the same work around I came to when I opened this issue, I'm just not clear on all the repercussions of doing this. |
Hey 👋 I'm closing this ticket as it looks like it's heavily outdated, we can of course reopen it if needed 👍 |
Uh oh!
There was an error while loading. Please reload this page.
I develop my projects as packages, and find it strange that this workflow isn't supported with
serverless-python-requirements
.As an example, I might have a project
xyz
with a directory structure like this:And during development, I'll use
pip install -e .
, orpython setup.py develop
, or more probablypipenv install "-e ."
.However, when processing the artifact
requirements.txt
that's produced byserverless-python-requirements
I run into two problems:-e
...) is not supported during the transformation to an uploadable zip file..
is not supported.I've somewhat worked around this by disabling pipenv in the plugin options for
serverless-python-requirements
in my serverless.yaml file, and manage a custom requirements.txt file that is really just apip freeze > requirements.txt
and removing the-e .
requirement.What is the expected workflow here?
The text was updated successfully, but these errors were encountered: