Bug 265360 - [NEW PORT] devel/awscli2: Universal Command Line Interface for Amazon Web Services
Summary: [NEW PORT] devel/awscli2: Universal Command Line Interface for Amazon Web Ser...
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-21 16:27 UTC by Bryan Frimin
Modified: 2026-08-05 09:56 UTC (History)
6 users (show)

See Also:


Attachments
0001-devel-awscli2-initial-import.patch (3.77 KB, patch)
2022-07-21 16:27 UTC, Bryan Frimin
no flags Details | Diff
Update to 2.36.15 (18.61 KB, patch)
2026-08-04 02:03 UTC, Norikatsu Shigemura
no flags Details | Diff
cleanup 2.36.15 (17.16 KB, patch)
2026-08-05 09:56 UTC, Norikatsu Shigemura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Frimin 2022-07-21 16:27:37 UTC
Created attachment 235410 [details]
0001-devel-awscli2-initial-import.patch

AWS CLI v2 port :-)
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2022-07-21 20:16:42 UTC
Any reason why we shouldn't migrate devel/awscli ?
Comment 2 Bryan Frimin 2022-07-21 20:49:49 UTC
(In reply to Daniel Engberg from comment #1)
Yes, awscli v1 continues to be maintained by AWS. It's why I create a new port for the v2.
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2022-07-22 11:11:48 UTC
Okay, https://github.com/aws/aws-cli/issues/5294 just adds to the confusion :/
Comment 4 Bryan Frimin 2022-07-22 13:42:50 UTC
(In reply to Daniel Engberg from comment #3)

As far as I know, AWS didn't communicate the discontinuation of the v1. Indeed, it continues to release patches on the v1 (c.f. https://github.com/aws/aws-cli/tags).

As AWS currently maintains the AWS CLI v1, it seems essential to allow FreeBSD users to choose between both versions.
Comment 5 Juraj Lutter freebsd_committer freebsd_triage 2022-09-09 15:26:59 UTC
As bhughes seems to not respond, I might want to step up, update the port:

- Bump to latest v1 version
- Move to sysutils
- Rename to py-awscli

Any thoughts?
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2022-09-15 20:34:18 UTC
(In reply to Juraj Lutter from comment #5)
Sounds reasonable to me
Comment 7 Juraj Lutter freebsd_committer freebsd_triage 2022-09-15 20:49:49 UTC
See review D36519
Comment 8 Juraj Lutter freebsd_committer freebsd_triage 2022-09-16 20:22:20 UTC
The review has been updated to:

- Rename devel/awscli to sysutils/py-aws-cli1
- Add sysutils/pw-aws-cli (AWS CLI v2)

Makefile in OP's patch has been modified slightly.
Comment 9 Daniel Engberg freebsd_committer freebsd_triage 2025-02-22 08:12:07 UTC
Friendly ping
Comment 10 Juraj Lutter freebsd_committer freebsd_triage 2025-03-11 08:49:13 UTC
Could OP rebase on latest main branch, please?
Comment 11 Juraj Lutter freebsd_committer freebsd_triage 2025-03-11 09:16:40 UTC
ALso, do-build target contents is invalid. I'd suggest to switch to PEP517.
Comment 12 Norikatsu Shigemura freebsd_committer freebsd_triage 2026-03-02 16:21:32 UTC
https://reviews.freebsd.org/D55616

Oops sorry. I created a new review.
Comment 13 John W. O'Brien 2026-04-04 21:31:59 UTC
See also bug #293705.
Comment 14 Norikatsu Shigemura freebsd_committer freebsd_triage 2026-08-04 02:03:24 UTC
Created attachment 273425 [details]
Update to 2.36.15

Update to 2.36.15

* Disable launching a browser by default for `aws login` / `aws sso login`.
  For FreeBSD users, launching a browser is generally not desirable.
  When no graphical browser is available, AWS CLI falls back to `w3m`, but this does not work in practice.
* Fix a build failure caused by a version mismatch between `pip` and `ensurepip` (the embedded `pip` bundled with Python).
* Relax version constraints for several Python modules.
* Adjust the test suite so that `make test` passes.
  * Skip integration tests.
  * Ignore unnecessary warnings (known issues).
  * Fix tests related to the `XDG_*` environment variables.
  * https://github.com/aws-cloudformation/resource-provider-enhanced-schemas/pull/27
  * As a result, the unit tests now pass successfully.
* Work around dependency issues with older package versions.
  * Introduce `devel/py-wcwidth0214` because the current `devel/py-wcwidth` is too new and is incompatible.
  * Make `devel/py-prompt-toolkit-wcwidth0214` depend on `devel/py-wcwidth0214` accordingly.
  * This is a temporary workaround and needs further discussion. Comments are welcome.
    At least, make devel/py-prompt-toolkit-wcwidth0214 a slave port of devel/py-prompt-toolkit.
* Fix `make check-plist` consistency errors.
Comment 15 Norikatsu Shigemura freebsd_committer freebsd_triage 2026-08-05 09:56:02 UTC
Created attachment 273477 [details]
cleanup 2.36.15

* "make test" more PASSED
* no longer needs temporary workaround following ports:
  devel/py-wcwidth0214
  devel/py--prompt-toolkit-wcwidth0214