Skip to content

Setuptools not accepting - in variable names #80

@cmbfuquaaccertify

Description

@cmbfuquaaccertify

When trying to install through pip, I get errors:
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'requirements-file' in 'metadata' (setup.cfg), please use the underscore name 'requirements_file' instead.
!!

          ********************************************************************************
          Usage of dash-separated 'requirements-file' will not be supported in future
          versions. Please use the underscore name 'requirements_file' instead.
  
          By 2026-Mar-03, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.
  
          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************
  
  !!
    opt = self._enforce_underscore(opt, section)
  error in maprdb_python_client setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=2.7.*'

I was able to fix it by manually downloading the file and changing the '-' to '_' and removing the .* in the python requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions