You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transparency log entry created with index: 156083276
Uploading distributions to https://upload.pypi.org/legacy/
Uploading topostats-2.3.0-py3-none-any.whl
Uploading topostats-2.3.0.tar.gz
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
File too large. Limit for project 'topostats' is 100 MB. See
https://pypi.org/help/#file-size-limit for more information.
On building locally this is indeed the case, the resulting file is 143Mb. Why? Because the build is including a bunch of
files it shouldn't...
This hasn't caused problems in the past but recent work, and primarily the tests to accompany them have expanded the
directory size of tests/ which is the prime source of bloat.
Which should have only looked in topostats but clearly I've not understood the structure correctly.
Documentation
clearly states that this can happen using a "flat" layout as we do here in TopoStats but the way to avoid this is to
correctly configure the include / exclude options so they need revising.
At the same time though we can, I think, safely remove the assets/ directory which contains some images of screenshots
using and IDE that were used as instructions.
Remove assets/ directory.
Correctly configure tool.setuptools.packages.find to include only topostats/ and exclude...
tests/
.* files
.github/
.docs/
.notebooks/
The text was updated successfully, but these errors were encountered:
Confusingly the documentation
seems to indicate that test / tests are part of the FlatLayoutModuleFinder.DEFAUT_EXCLUDE set which contradicts
the later statement in that page and also doesn't appear to be the case here!
Also we have namespaces = false included which according to the note under finding simple
packages "will prevent
any folder without an __init__.py file from being scanned." and yet we have multiple such folders (assets/ notebooks/ etc. see above) being included.
Investigation
Manually calling setuptools.find_packages() with the arguments defined in pyproject.toml (see above)...
In attempting to make the
v2.3.0
release the upload to PyPI failed to to the resulting.tar.gz > 100Mb
log
On building locally this is indeed the case, the resulting file is 143Mb. Why? Because the build is including a bunch of
files it shouldn't...
Note the presence of...
tests/*
assets/*
.*
files (multiple)docs/*
notebooks/*
This hasn't caused problems in the past but recent work, and primarily the tests to accompany them have expanded the
directory size of
tests/
which is the prime source of bloat.Our current configuration for
setuptools
and finding packages resides inpyproject.toml
and reads...Which should have only looked in
topostats
but clearly I've not understood the structure correctly.Documentation
clearly states that this can happen using a "flat" layout as we do here in TopoStats but the way to avoid this is to
correctly configure the
include
/exclude
options so they need revising.At the same time though we can, I think, safely remove the
assets/
directory which contains some images of screenshotsusing and IDE that were used as instructions.
assets/
directory.tool.setuptools.packages.find
to include onlytopostats/
and exclude...tests/
.*
files.github/
.docs/
.notebooks/
The text was updated successfully, but these errors were encountered: