Skip to content

Deprecation warnings for pkg_resources in setup.py and dash-separated options in setup.cfg #39

@zcernigoj

Description

@zcernigoj

When installing openeo-pg-parser-python, I encounter these deprecation warnings

[pipenv.exceptions.InstallError]:   × python setup.py egg_info did not run successfully.
[pipenv.exceptions.InstallError]:   │ exit code: 1
[pipenv.exceptions.InstallError]:   ╰─> [78 lines of output]
[pipenv.exceptions.InstallError]:       /tmp/pip-install-2jvyexwz/openeo-pg-parser_51e94a2d9f0f4fa89d9e5a06eca60a06/setup.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
[pipenv.exceptions.InstallError]:         from pkg_resources import require, VersionConflict
[pipenv.exceptions.InstallError]:       /home/<username>/.local/share/virtualenvs/rest-2FLE_efx/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:               Usage of dash-separated 'author-email' will not be supported in future
[pipenv.exceptions.InstallError]:               versions. Please use the underscore name 'author_email' instead.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               By 2023-Sep-26, you need to update your project and remove deprecated calls
[pipenv.exceptions.InstallError]:               or your builds will no longer be supported.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:         opt = self.warn_dash_deprecation(opt, section)
[pipenv.exceptions.InstallError]:       /home/<username>/.local/share/virtualenvs/rest-2FLE_efx/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:               Usage of dash-separated 'long-description' will not be supported in future
[pipenv.exceptions.InstallError]:               versions. Please use the underscore name 'long_description' instead.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               By 2023-Sep-26, you need to update your project and remove deprecated calls
[pipenv.exceptions.InstallError]:               or your builds will no longer be supported.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:         opt = self.warn_dash_deprecation(opt, section)
[pipenv.exceptions.InstallError]:       /home/<username>/.local/share/virtualenvs/rest-2FLE_efx/lib/python3.9/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:               Requirements should be satisfied by a PEP 517 installer.
[pipenv.exceptions.InstallError]:               If you are using pip, you can try `pip install --use-pep517`.
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:         dist.fetch_build_eggs(dist.setup_requires)
[pipenv.exceptions.InstallError]:       /home/<username>/.local/share/virtualenvs/rest-2FLE_efx/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:               Usage of dash-separated 'author-email' will not be supported in future
[pipenv.exceptions.InstallError]:               versions. Please use the underscore name 'author_email' instead.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               By 2023-Sep-26, you need to update your project and remove deprecated calls
[pipenv.exceptions.InstallError]:               or your builds will no longer be supported.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:         opt = self.warn_dash_deprecation(opt, section)
[pipenv.exceptions.InstallError]:       /home/<username>/.local/share/virtualenvs/rest-2FLE_efx/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
[pipenv.exceptions.InstallError]:       !!
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:               Usage of dash-separated 'long-description' will not be supported in future
[pipenv.exceptions.InstallError]:               versions. Please use the underscore name 'long_description' instead.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               By 2023-Sep-26, you need to update your project and remove deprecated calls
[pipenv.exceptions.InstallError]:               or your builds will no longer be supported.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:               See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
[pipenv.exceptions.InstallError]:               ********************************************************************************
[pipenv.exceptions.InstallError]:           

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