Closed mwtoews closed 2 years ago
Rewrote the version
to take from the affine.__init__.__version__
, which isn't a problem as there are no dependencies from this file.
Also removed setup.py
, which means the way to build is python -m build
, which builds two files in dist
. See docs here for setup.cfg
-only projects. A small shim setup.py
can be re-added.
Closing with preference to #67
This PR moves most of the static package metadata into a declarative configuration file,
setup.cfg
. It also adds a basicpyproject.toml
file.The only "dynamic" part of
setup.py
that remains is to get the version fromaffine/__init__.py
. This file also serves as a shim ifsetup.py
is expected, even though it hasn't been required for over 5 years now.If the version info is moved to (e.g.)
affine/_version.py
, thensetup.cfg
would only need to specifyattr: affine._version.version
. This can be done here, or later.Other changes:
exclude
forfind
does not seem to change the package structure, but it can be added tosetup.cfg
if needed