Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exclude pre-compiled packages matching excludes list#2075

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
MickaelBergem wants to merge1 commit intoMiserlou:master
base:master
Choose a base branch
Loading
fromMickaelBergem:master

Conversation

@MickaelBergem
Copy link

Description

There are some locally installed packages I don't want to install on my lambda function, such as coverage or mypy. They are in theexcludes but somehow are still included in the final ZIP. This change prevents ignored packages from being included in the final ZIP file, resulting for me in a 30% reduction of the lambda size.

This works fine for me locally using Python3.7 and Python3.8

One caveat I just discovered is that patterns (likepackagename*) will not be interpreted and will be used as plain strings.

Resulting output:

Downloading and installing dependencies..                                                                                                                                     - psycopg2==2.7.7: Using locally cached manylinux wheel                                                                                                                      - pip==19.0.3: ignored, skipping...                                                                                                                                          - mypy==0.720: ignored, skipping...                                                                                                                                          - markupsafe==1.1.1: Using locally cached manylinux wheel                                                                                                                    - ipdb==0.12.3: ignored, skipping...                                                                                                                                         - cryptography==2.8: Warning! Using precompiled lambda package version 1.9 instead!                                                                                          - coverage==4.5.4: ignored, skipping...                                                                                                                                      - cffi==1.13.2: Using locally cached manylinux wheel                                                                                                                         - sqlite==python3: Using precompiled lambda package                                                                                                                         Packaging project as zip.

GitHub Issues

I have not opened a GitHub issue first, I'm happy to do it if it's really required, but a PR likely describes more what I want to do :)

There are some locally installed packages I don't want to install on mylambda function, such as coverage or mypy for instance. This changeprevents ignored packages from being included in the final ZIP file, savingme about 30% of the lambda size.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 73.047% when pullingfa76166 on MickaelBergem:master into80a6881 on Miserlou:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 73.047% when pullingfa76166 on MickaelBergem:master into80a6881 on Miserlou:master.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@MickaelBergem@coveralls

[8]ページ先頭

©2009-2025 Movatter.jp