Skip to content
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

Pants: add some missing external dependencies #5927

Merged
merged 7 commits into from
Mar 10, 2023
Merged

Conversation

cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Mar 9, 2023

Background

This is another part of introducing pants, as discussed in various TSC meetings.

Related PRs can be found in:

Overview of this PR

I noticed a few deps that were not accounted for, so I added them to the BUILD metadata and regenerated the lockfile.

This re-introduces the pysocks dep to st2client so that the pants BUILD metadata also has the change introduced in:

These deps are for tools that will never end up in a wheel, so pants will only ever use these if it has to run these tools for some reason:

  • pika is used by tools/direct_queue_publisher.py
  • graphviz is used by tools/st2-analyze-links.py and tools/visualize_action_chain.py

Adding the graphviz dep revealed a bug added in c805e33 where an update meant to fix usage of the networkx library inadvertently also changed usage of the graphviz library. This reverts the graphviz portion of that commit.

I also noted that st2actions/conf/logging.conf needs the python-json-logger dep (which is already in the lockfile).

Finally, I noticed some code that imports gevent in a try/except ImportError block. Apparently there was some WIP work to allow using gevent instead of eventlet. I added a commented-out python_requirement for this and a TODO to explain where I think support is still lacking. I left it commented out, because pants does not have a good way to support optional dependencies yet. At some point maybe we can revisit switching (or allow switching) from eventlet to gevent.

Pants documentation

@cognifloyd cognifloyd added this to the pants milestone Mar 9, 2023
@cognifloyd cognifloyd self-assigned this Mar 9, 2023
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines. Requires some effort to review. label Mar 9, 2023
@cognifloyd cognifloyd requested a review from a team March 10, 2023 06:38
@cognifloyd cognifloyd merged commit a43c70b into master Mar 10, 2023
@cognifloyd cognifloyd deleted the pants-external-reqs branch March 10, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external dependency pantsbuild size/L PR that changes 100-499 lines. Requires some effort to review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants