pycontribs / jenkinsapi

A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
http://pypi.python.org/pypi/jenkinsapi
MIT License
857 stars 483 forks source link

Correctly specify python version #858

Open micwoj92 opened 3 months ago

micwoj92 commented 3 months ago

From: https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#python-requirement

pyproject.toml requires dash, where underscore is used in case of setup.py or setup.cfg

This prevented from building using setuptools:

ValueError: invalid pyproject.toml config: `project`.
configuration error: `project` must not contain {'requires_python'} properties

Where using flit backend it would give message:

Unexpected names under [project]: requires_python