Don't depend on __pkginfo__ in cubicweb
CubicWeb and its cubes are using a file pkginfo
. This file is not standard at all.
Should it be kept ? or should we migrate ?
To migration, we could use a pyproject.toml
and a setup.cfg
containing basically what we have in the pkginfo
.
the basics would be:
for pyproject.toml
[build-system]
requires = ["setuptools >= 40.6.0", "wheel"]
build-backend = "setuptools.build_meta"
the setup.cfg
[metadata]
name = my_super_cube
version = attr: my_super_cube.__version__
description = Implementation of an awesome cube
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8
the setup.py
#!/usr/bin/env python
import setuptools
if __name__ == "__main__":
setuptools.setup()
then, to list the dependancies, a simple requirements.in
and a requirements.txt
produced with pip-tools
(https://github.com/jazzband/pip-tools)