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

ValueError: Value for packages expected to be a table, found 'find:' #64

Closed
jpmckinney opened this issue Dec 2, 2022 · 2 comments
Closed

Comments

@jpmckinney
Copy link

Given:

[options]
packages = find:

[options.packages.find]
where=src
include=mypackage*
exclude=mypackage.tests*

Like at https://setuptools.pypa.io/en/latest/userguide/quickstart.html#package-discovery

Errors with:

[ERROR] ValueError: Value for `packages` expected to be a table, found 'find:'
@abravalheri
Copy link
Owner

Hi @jpmckinney, I cannot reproduce this error:

> docker run --rm -it python:3.10-bullseye /bin/bash

cd /tmp
cat <<EOF > setup.cfg
[options]
packages = find:

[options.packages.find]
where=src
include=mypackage*
exclude=mypackage.tests*
EOF

pip install --user 'ini2toml[full]==0.11.3'
/root/.local/bin/ini2toml setup.cfg  # You can also use `python -m ini2toml setup.cfg`

# [build-system]
# requires = ["setuptools>=61.2"]
# build-backend = "setuptools.build_meta"
# 
# [project]
# dynamic = ["version"]
# 
# [tool.setuptools]
# include-package-data = false
# 
# [tool.setuptools.packages.find]
# where = ["src"]
# include = ["mypackage*"]
# exclude = ["mypackage.tests*"]
# namespaces = false

Could you please provide a minimal reproducer (like the example above) that is able to show the error happening?

@jpmckinney
Copy link
Author

Hmm, I can't reproduce now either – not sure what I was doing differently at the time.

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

No branches or pull requests

2 participants