Skip to content

Conversation

@DaniilRoman
Copy link

#822

Here's what it looks like when it passes:

Screenshot 2025-03-03 at 19 08 35

And here's what it looks like when it doesn't pass:

Screenshot 2025-03-03 at 20 08 07

with:
python-version: '3.7'

- name: Cache Poetry
Copy link
Contributor

Choose a reason for hiding this comment

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

This may be problematic as we have gitignore for poetry.lock. In this case, it won't invalid the cache right?

Copy link
Author

@DaniilRoman DaniilRoman Mar 4, 2025

Choose a reason for hiding this comment

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

It's a good point, we need to have poetry.lock in order to cache this properly and we could even use this config cache: 'poetry' of actions/setup-python@v4 GitHub action (here's this docs section).

Without having poetry.lock we can only cache based on pyptoject.toml which doesn't cover transitive dependencies.
I've also thought about generating poetry.lock on CI but for this we need to have poetry first and when we install poetry, it installs dependencies as well - so, it wouldn't work

What about removing poetry.lock from .gitignore and creating it and managing for the future changes? 🤔
Or is it good enough to create a hash key based on myproject.toml instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

Quick check shows it got excluded by #246. @dimas-b / @snazy can you provide more context on why we exclude that?

- name: Check Licenses
working-directory: regtests/client/python
run: |
pip-licenses --partial-match --fail-on="GPL;AGPL;LGPL;SSPL;EPL"
Copy link
Contributor

Choose a reason for hiding this comment

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

@jbonofre can u help review if this rule is sufficient?

@github-actions
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Apr 24, 2025
@github-actions github-actions bot closed this Apr 30, 2025
@github-project-automation github-project-automation bot moved this from PRs In Progress to Done in Basic Kanban Board Apr 30, 2025
HonahX added a commit that referenced this pull request May 23, 2025
Adds CI for python client. It does not include caching poetry step for now since we do not have poetry.lock (it is in .gitignore), see relevant discussion in: #1102 (comment), #1096 (comment), we can add that later
@MonkeyCanCode
Copy link
Contributor

@DaniilRoman Let us know if u would like to continue the PR above. As we are getting ready to release the python client as distribution, it may be wise to add license check such as the one listed in this PR.
cc @flyrain @eric-maynard @HonahX

@flyrain
Copy link
Contributor

flyrain commented Sep 15, 2025

Agreed with @MonkeyCanCode, we will also need a license file for any third-party python lib/file shipped in the binary distribution.

@MonkeyCanCode
Copy link
Contributor

Agreed with @MonkeyCanCode, we will also need a license file for any third-party python lib/file shipped in the binary distribution.

Here is the sample PR based on the work done in this one: #2580

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants