Closed and-semakin closed 2 years ago
In the poetry docs, they have an example of using extras
:
[tool.poetry.dependencies]
# These packages are mandatory and form the core of this package’s distribution.
mandatory = "^1.0"
# A list of all of the optional dependencies, some of which are included in the
# below `extras`. They can be opted into by apps.
psycopg2 = { version = "^2.7", optional = true }
mysqlclient = { version = "^1.3", optional = true }
[tool.poetry.extras]
mysql = ["mysqlclient"]
pgsql = ["psycopg2"]
And in aioboto3
's pyproject.toml
: https://github.com/terrycain/aioboto3/blob/13c56a6a5a1a87f79c1b998cc76b01ce72fddaef/pyproject.toml#L24-L32
The only difference I can see is that you specify the allowed version range again. I mean chalice>=1.24.0
instead of just chalice
. Could it be the root of the issue?
Yes, I confirm, removing the version specifier should resolve the issue.
It's the original PKG-INFO
we have at the moment (I extracted it from .tar.gz
artifact produced by poetry build
):
Provides-Extra: chalice
Provides-Extra: s3cse
Requires-Dist: aiobotocore[boto3] (==1.4.2)
Requires-Dist: chalice (>=1.24.0)
Requires-Dist: cryptography (>=2.3.1)
And this one is generated if we remove versions:
Provides-Extra: chalice
Provides-Extra: s3cse
Requires-Dist: aiobotocore[boto3] (==1.4.2)
Requires-Dist: chalice (>=1.24.0); extra == "chalice"
Requires-Dist: cryptography (>=2.3.1); extra == "s3cse"
Oh good spot. Yeah the version should not be in the extras section as that just specifies which dependencies it should pull in.
v9.2.2 is out :smile:
Thanks! Probably, it could make sense to yank release 9.2.1, so people don’t accidentally install it, as it is superseded by 9.2.2.
Yep good shout
Description
As far as I can see, there is experimental support for Chalice now. I develop a traditional (I mean, not serverless) asynchronous ASGI web application. I don't need Chalice but
aioboto3
still installs it and seems like there is no easy way to avoid it.I see, that you've already defined
chalice
as an extra dependency but for some reason, it doesn't work.See:
Note, I didn't request any extras but I still have chalice installed.
Thanks for your work by the way!