FS#76618 - [python-awscrt] package should use the pypi archive, not github releases archive

Attached to Project: Community Packages
Opened by Damjan Georgievski (damjan) - Friday, 18 November 2022, 15:50 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Sunday, 18 December 2022, 04:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Chih-Hsuan Yen (yan12125)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

for more context, see
https://github.com/awslabs/aws-crt-python/issues/412

but the meat of the issue is that the source doesn't have the proper version in the package metadata,
but the released package on pypi should have it.
This task depends upon

Closed by  Chih-Hsuan Yen (yan12125)
Sunday, 18 December 2022, 04:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  aws-cli-v2 2.9.8-1
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 19 November 2022, 06:07 GMT
Thanks for raising the issue. From https://github.com/awslabs/aws-crt-python/issues/412#issuecomment-1320195594,

> The CLI v2 doesn't support installing awscrt directly from dev and will require a version between awscrt<=0.14.0,>=0.12.4 which can be found on PyPI (or installed with pip).

The issue appears more about that the python-awscrt package provides a version not supported by aws-cli-v2. PyPI/pip is mentioned as an installation method instead of a requirement. The README file (https://github.com/awslabs/aws-crt-python#installation) also mentions GitHub as a possible installation method.

There is a technical issue about downgrading the python-awscrt package to <= 0.14.0 - Python 3.11 is officially supported with awscrt >= 0.15.0 [1]. I need to investigate whether 0.14.0 works on Python 3.11 or not, so that python-awscrt will not be broken when Arch moves to Python 3.11.

[1] https://github.com/awslabs/aws-crt-python/pull/402
Comment by Chih-Hsuan Yen (yan12125) - Sunday, 20 November 2022, 08:17 GMT
Older awscrt can be built on Python 3.11, but several tests fail and changes for 3.11 in newer awscrt are non-trivial. Hopefully upstream can support newer awscrt: https://github.com/aws/aws-cli/issues/5943
Comment by Chih-Hsuan Yen (yan12125) - Sunday, 18 December 2022, 04:48 GMT
awscrt is updated in [1] (part of aws-cli-v2 2.9.8). It's also added to upstream dependbot [2], so it's likely the latest awscrt will be supported by aws-cli-v2.

[1] https://github.com/aws/aws-cli/pull/7522
[2] https://github.com/aws/aws-cli/pull/7521

Loading...