-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration in
pyproject.toml
(#35)
- Loading branch information
Showing
22 changed files
with
305 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
(config)= | ||
# Configuration | ||
|
||
`pyodide pack` can be configured via a `pyproject.toml` file in the root of your project, or in a any of the parent directories. | ||
|
||
Below is an example of configuration with default values. In most cases, the defaults should be fine, and you can only include fields you want to change. | ||
|
||
|
||
```toml | ||
[tool.pyodide_pack] | ||
requires = [] | ||
include_paths = [] | ||
|
||
[tool.pyodide_pack.py] | ||
strip_module_docstrings = false | ||
strip_docstrings = false | ||
py_compile = false | ||
|
||
[tool.pyodide_pack.so] | ||
drop_unused_so = true | ||
``` | ||
|
||
|
||
## Configuration options | ||
|
||
### `requires` | ||
|
||
List of dependencies to load. This list is passed to micropip, so it can be any valid micropip specifier. | ||
|
||
### `include_paths` | ||
|
||
List of paths to include in the bundle. This is useful for including files that were otherwise excluded by `pyodide pack` | ||
|
||
### `py.strip_module_docstrings` | ||
|
||
Whether to strip module docstrings. Default: `false` | ||
|
||
### `py.strip_docstrings` | ||
|
||
Whether to strip docstrings. Default: `false` | ||
|
||
### `py.py_compile` | ||
|
||
Whether to compile python files. Default: `false` | ||
|
||
### `so.drop_unused_so` | ||
|
||
Whether to drop unused `.so` files. Default: `true` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool.pyodide_pack] | ||
requires = ["snowballstemmer"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool.pyodide_pack] | ||
requires = ["pandas"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[tool.pyodide_pack] | ||
requires = [ | ||
"numpy", | ||
"scikit-learn" | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[tool.pyodide_pack] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool.pyodide_pack] | ||
requires = ["sympy"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.