Skip to content

Remove pkg_resources import from setup.py #584

@pacesm

Description

@pacesm

Remove pkg_resources import from setup.py:

eoxserver/setup.py

Lines 3 to 11 in 742d08b

import pkg_resources
with open('requirements.txt', 'r') as reqs:
install_requires = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(reqs)
]

It breaks installation with newer Python and newer setuptools versions.

Python 3.12 has removed pkg_resources from the standard library and moved it to setuptools (https://docs.python.org/3/whatsnew/3.12.html)

The latest setuptools v82.0.0 removed pkg_resources (https://setuptools.pypa.io/en/stable/history.html#v82-0-0).

Proposed solution: just read the requirements.txt lines into a list of strings and let setuptools do the parsing.

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