Miserlou/Zappa

Allow user to exclude packages from .py trimming

Open

#635 aberto em 30 de jan. de 2017

Ver no GitHub
 (3 comments) (1 reaction) (0 assignees)Python (1.286 forks)batch import
help wanted

Métricas do repositório

Stars
 (11.903 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Context

Zappa excludes .py files as it packages up Python directories if a .pyc/.pyo exists. However some tools need to find the .py file, in my case Pyramid's plugin extension locator.

Expected Behavior

The zipped package should have .py files if needed as some Python packages expect to find them.

Actual Behavior

All .py files are removed.

Possible Fix

Provide a zappa settings option to specify packages that should be excluded from this process.

Steps to Reproduce

  1. Package up anything that has .pyc files
  2. Look at the resulting zip that has no .py files.

Guia do colaborador