We extracted octoprint_setuptools into its own
package on pypi and pull that in on OctoPrint's
install to support plugins gettings installed
non-isolated via setuptools.
Additionally, OctoPrint's setup.py will use it
for clean & translation sub commands, but it's
made optional during install - we don't need
additional commands during a wheel build/install.
Plugins that use pyproject.toml can now add
octoprint-setuptools as a build requirement:
[build-system]
requires = ["setuptools>=40.8.0", "wheel", "octoprint-setuptools"]
build-backend = "setuptools.build_meta"
That way, isolated builds (as triggered by
the existance of pyproject.toml) will work.
And finally, by adding wheel as a dependency
to OctoPrint, we ensure that pip won't try to
install setup.py based plugins in an isolated
environment and fail due to the missing
octoprint_setuptools dependency.
Implements #4682
Work towards fixing #4552
26 lines
385 B
TOML
26 lines
385 B
TOML
[build-system]
|
|
requires = ["setuptools>=40.8.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.black]
|
|
line-length = 90
|
|
include = '''
|
|
|
|
(
|
|
(
|
|
src
|
|
| tests
|
|
| .github
|
|
).*\.pyi?$
|
|
)|(
|
|
setup\.py
|
|
)
|
|
'''
|
|
exclude = '''
|
|
|
|
(
|
|
src/octoprint/vendor # we want to still be able to apply patches from upstream w/o
|
|
# match issues
|
|
)
|
|
'''
|