Skip to content

Makefile: generate and install requirements.txt files for Python plugins #7864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

rustyrussell
Copy link
Contributor

Doesn't automate the install, but at least provides some tools for users to install the requirements on their systems

See-also: #7665

@vincenzopalazzo vincenzopalazzo force-pushed the install-requirements.txt-file branch from d7ad639 to 17722fd Compare November 24, 2024 09:59
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 17722fd

Modified the commit body to make the CI happy, now lets wait the CI

@vincenzopalazzo
Copy link
Collaborator

some of the CI failure liek the mac os looks like unrelated

tools/generate-wire.py --page impl tools/test/test_gen.h test_type < tools/test/test_cases > tools/test/test_gen.c
echo '#include "test_gen.h"' > tools/test/print_gen.c
tools/generate-wire.py -P --page impl tools/test/print_gen.h test_type < tools/test/test_cases >> tools/test/print_gen.c
xgettext plugins/bkpr/statements_gettextgen.po
sql-rewrite plugins/bkpr/db_sqlite3_sqlgen.c
sql-rewrite plugins/bkpr/db_postgres_sqlgen.c
genidx doc/index.rst
cd plugins/wss-proxy && poetry export --without-hashes > ../../plugins/wss-proxy-requirements.txt
/bin/sh: poetry: command not found
rm external/build-arm64-apple-darwin23.6.0/libwally-core-build/src/secp256k1/libsecp256k1.la
make: *** [plugins/wss-proxy-requirements.txt] Error 127

@rustyrussell rustyrussell added this to the v25.02 milestone Nov 26, 2024
@rustyrussell rustyrussell force-pushed the install-requirements.txt-file branch from 17722fd to ae6fab1 Compare February 6, 2025 02:58
@rustyrussell
Copy link
Contributor Author

Rebased on master: wss is now the only Python plugin!

@rustyrussell rustyrussell force-pushed the install-requirements.txt-file branch 2 times, most recently from b3a4cbf to aee36cc Compare February 6, 2025 04:20
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rustyrussell rustyrussell force-pushed the install-requirements.txt-file branch 5 times, most recently from 3017b8a to 4fdd249 Compare February 12, 2025 04:10
…nts.txt

Without this:
```
cd plugins/wss-proxy && poetry export --without-hashes > ../../plugins/wss-proxy-requirements.txt

The command "export" does not exist.
make: *** [plugins/wss-proxy-requirements.txt] Error 1
```

Signed-off-by: Rusty Russell <[email protected]>
…ins.

Doesn't automate the install, but at least provides some tools for users
to install the requirements on their systems

Changelog-Added: Install: we now supply requirements.txt file for Python plugin (i.e. wss-proxy).
See-also: ElementsProject#7665
Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell force-pushed the install-requirements.txt-file branch from 4fdd249 to 498238b Compare February 13, 2025 02:25
@endothermicdev
Copy link
Collaborator

This is definitely getting us in the right direction. I think poetry-plugin-export has a v1.9.0, but for poetry we want a v1.8.5 or v2.0.0.

@rustyrussell
Copy link
Contributor Author

Let's defer this, there are bigger fish to fry...

@endothermicdev endothermicdev force-pushed the install-requirements.txt-file branch from 03947f7 to 148e918 Compare February 14, 2025 02:17
@endothermicdev endothermicdev modified the milestones: v25.02, v25.05 Feb 14, 2025
@rustyrussell
Copy link
Contributor Author

It's in Rust now, so I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants