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

Fix packaging #526

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Fix packaging #526

merged 2 commits into from
Nov 21, 2024

Conversation

teocns
Copy link
Contributor

@teocns teocns commented Nov 21, 2024

  1. Explicit packages definition; fixes global package install error

➜  agentops git:(otel-exporter) uv sync --all-extras
Resolved 75 packages in 2.08s
  × Failed to build `agentops @ file:///Users/noob/agentops`
  ╰─▶ Build backend failed to determine requirements with `build_editable()` (exit status: 1)

      [stderr]
      error: Multiple top-level packages discovered in a flat-layout: ['dev', 'agentops'].

      To avoid accidental inclusion of unwanted files or directories,
      setuptools will not proceed with this build.

      If you are trying to create a single distribution with multiple packages
      on purpose, you should not rely on automatic discovery.
      Instead, consider the following options:

      1. set up custom discovery (`find` directive with `include` or `exclude`)
      2. use a `src-layout`
      3. explicitly set `py_modules` or `packages` with a list of names

      To find more information, look for "package discovery" on setuptools docs.

  1. Fixes deps: uv sync --all-extras fails due to langchain & python 3.7 #524

  2. profit: uv sync --all-extras now passes

@teocns teocns marked this pull request as ready for review November 21, 2024 23:17
@teocns teocns requested a review from areibman November 21, 2024 23:17
Copy link
Contributor

@areibman areibman left a comment

Choose a reason for hiding this comment

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

Great

@teocns teocns merged commit 517c93e into main Nov 21, 2024
1 check passed
@teocns teocns deleted the fix-packaging branch November 21, 2024 23:51
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.

deps: uv sync --all-extras fails due to langchain & python 3.7
2 participants