ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
64 stars 35 forks source link

chore: List required dependencies #1057

Closed kesara closed 7 months ago

kesara commented 8 months ago

file: requirements.txt is only supported by setuptools>=62.6.

Fixes #1049

kesara commented 8 months ago

The current set of changes uses pyproject.toml more. But this lets us keep requirements in a single place. The only downside is when installing on the system (without using venv) xml2rfc doesn't install the dependencies under Ubuntu 22.04 LTS. It works fine when installed within a venv.

Using pip bare is warning users as well:

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
kesara commented 7 months ago

It seems like we have to define requirements in setup.cfg as a list to make this particular version setup happy.