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

Migrate to new build frontend #183

Open
drebbe-intrepid opened this issue May 25, 2024 · 3 comments
Open

Migrate to new build frontend #183

drebbe-intrepid opened this issue May 25, 2024 · 3 comments

Comments

@drebbe-intrepid
Copy link
Collaborator

We can't currently build with https://pypi.org/project/build/ module as it creates a build environment that strips git repository information. --no-isolation flag doesn't seem to make a difference.

RuntimeError: This does not appear to be a Git project

Creating 'gen/ics/__init__.py'...
Traceback (most recent call last):
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 134, in get_requires_for_build_wheel
    return hook(config_settings)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
    self.run_setup()
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
    exec(code, locals())
  File "<string>", line 19, in <module>
  File "/tmp/build-via-sdist-lbdn3301/ics-908.0/ics_utility.py", line 33, in create_version_py
    pkg_version = get_pkg_version()
                  ^^^^^^^^^^^^^^^^^
  File "/tmp/build-via-sdist-lbdn3301/ics-908.0/ics_utility.py", line 15, in get_pkg_version
    version = dunamai.Version.from_git()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/dunamai/__init__.py", line 1121, in from_git
    _detect_vcs(vcs, path)
  File "/home/drebbe/dev/python_ics/.venv/lib/python3.12/site-packages/dunamai/__init__.py", line 378, in _detect_vcs
    raise RuntimeError(
RuntimeError: This does not appear to be a Git project

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
@drebbe-intrepid drebbe-intrepid changed the title Migrate to new build module Migrate to new build frontend May 25, 2024
@drebbe-intrepid
Copy link
Collaborator Author

@pierreluctg FYI

@drebbe-intrepid
Copy link
Collaborator Author

documentation conf.py still is hard coded, need to update this also.

@drebbe-intrepid
Copy link
Collaborator Author

workflow doesn't trigger when tag is pushed after commit / MR is merged.

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

1 participant