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

hatchling requires pathspec #432

Closed
jhgoebbert opened this issue Aug 27, 2022 · 3 comments
Closed

hatchling requires pathspec #432

jhgoebbert opened this issue Aug 27, 2022 · 3 comments

Comments

@jhgoebbert
Copy link

hatchling requires pathspec which is not mentioned in its pyproject.toml

https://github.com/pypa/hatch/blob/master/backend/src/hatchling/builders/config.py#L4

@ofek
Copy link
Collaborator

ofek commented Aug 27, 2022

@jhgoebbert
Copy link
Author

Thank you. I have overlooked that.

@KOLANICH
Copy link

Doesn't work for me (global paths have been replaced with relative ones within the log):

virtualenv --no-seed ./env
. ./env/bin/activate

# next line installs basic packages needed for building and installing packages
python3 -m ipi bootstrap packaging

then

python3 -m pip list

outputs

build             0.9.0
flit_core         3.7.1
packaging         21.4.dev0
pep517            0.13.0
pip               23.0.dev0
setuptools        65.5.1.dev6+g9635115.post.20221027
setuptools-scm    0.1.dev1+g9a79676
tomli             2.0.1
typing_extensions 4.4.0
wheel             0.38.0
git clone https://github.com/pypa/hatch --depth=1
cd hatch/backend/

git log --pretty=%H -1

dcdbdf1

python3 -m build -nwx .
* Building wheel...
Traceback (most recent call last):
  File "../../env/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 353, in <module>
    main()
  File "../../env/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "../../env/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 251, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
  File "./src/hatchling/ouroboros.py", line 73, in build_wheel
    from hatchling.builders.wheel import WheelBuilder
  File "./src/hatchling/builders/wheel.py", line 12, in <module>
    from hatchling.builders.config import BuilderConfig
  File "./src/hatchling/builders/config.py", line 4, in <module>
    import pathspec
ModuleNotFoundError: No module named 'pathspec'

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

No branches or pull requests

3 participants