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

Does not install #13

Open
Luthaf opened this issue May 30, 2023 · 0 comments
Open

Does not install #13

Luthaf opened this issue May 30, 2023 · 0 comments

Comments

@Luthaf
Copy link
Contributor

Luthaf commented May 30, 2023

It looks like the new pyproject.toml is wrong:

$ pip install git+https://github.com/serfg/sparse_accumulation
Collecting git+https://github.com/serfg/sparse_accumulation
  Cloning https://github.com/serfg/sparse_accumulation to /private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-req-build-usiiqsy_
  Running command git clone --filter=blob:none --quiet https://github.com/serfg/sparse_accumulation /private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-req-build-usiiqsy_
  Resolved https://github.com/serfg/sparse_accumulation to commit e60242681ac5796e49d0ce29a6e7026be04e8304
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [97 lines of output]
      /private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
        config = read_configuration(filepath, True, ignore_option_errors, dist)
      configuration error: `project.license` must be valid exactly by one definition (0 matches found):

          - keys:
              'file': {type: string}
            required: ['file']
          - keys:
              'text': {type: string}
            required: ['text']

      DESCRIPTION:
          `Project license <https://peps.python.org/pep-0621/#license>`_.

      GIVEN VALUE:
          {}

      OFFENDING RULE: 'oneOf'

      DEFINITION:
          {
              "oneOf": [
                  {
                      "properties": {
                          "file": {
                              "type": "string",
                              "$$description": [
                                  "Relative path to the file (UTF-8) which contains the license for the",
                                  "project."
                              ]
                          }
                      },
                      "required": [
                          "file"
                      ]
                  },
                  {
                      "properties": {
                          "text": {
                              "type": "string",
                              "$$description": [
                                  "The license of the project whose meaning is that of the",
                                  "`License field from the core metadata",
                                  "<https://packaging.python.org/specifications/core-metadata/#license>`_."
                              ]
                          }
                      },
                      "required": [
                          "text"
                      ]
                  }
              ]
          }
      Traceback (most recent call last):
        File "/Users/guillaume/code/tests/LE-ACE/virtualenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/guillaume/code/tests/LE-ACE/virtualenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/guillaume/code/tests/LE-ACE/virtualenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 24, in <module>
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
          dist.parse_config_files()
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 908, in parse_config_files
          pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 66, in apply_configuration
          config = read_configuration(filepath, True, ignore_option_errors, dist)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 129, in read_configuration
          validate(subset, filepath)
        File "/private/var/folders/nz/mgmqnhrj4mzfjlnqbgn02t780000gn/T/pip-build-env-pttwzihh/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 55, in validate
          raise ValueError(f"{error}\n{summary}") from None
      ValueError: invalid pyproject.toml config: `project.license`.
      configuration error: `project.license` must be valid exactly by one definition (0 matches found):

          - keys:
              'file': {type: string}
            required: ['file']
          - keys:
              'text': {type: string}
            required: ['text']

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Ping @ylliu610 @frostedoyster

I'm not sure why CI did not pick this up, is CI still using the old setup.py based build system?

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