Switch to modern Python build system
Remove setuptools and use pyproject.toml instead.
This commit is contained in:
parent
34149fe933
commit
fc740927cc
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ debian/pvc-*/
|
|||||||
debian/*.log
|
debian/*.log
|
||||||
debian/*.substvars
|
debian/*.substvars
|
||||||
debian/files
|
debian/files
|
||||||
|
client-cli/build/
|
||||||
|
21
client-cli/pyproject.toml
Normal file
21
client-cli/pyproject.toml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "pvc"
|
||||||
|
version = "0.9.107"
|
||||||
|
dependencies = [
|
||||||
|
"Click",
|
||||||
|
"PyYAML",
|
||||||
|
"lxml",
|
||||||
|
"colorama",
|
||||||
|
"requests",
|
||||||
|
"requests-toolbelt",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
packages = ["pvc.cli", "pvc.lib"]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
pvc = "pvc.cli.cli:cli"
|
@ -1,20 +0,0 @@
|
|||||||
from setuptools import setup
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="pvc",
|
|
||||||
version="0.9.107",
|
|
||||||
packages=["pvc.cli", "pvc.lib"],
|
|
||||||
install_requires=[
|
|
||||||
"Click",
|
|
||||||
"PyYAML",
|
|
||||||
"lxml",
|
|
||||||
"colorama",
|
|
||||||
"requests",
|
|
||||||
"requests-toolbelt",
|
|
||||||
],
|
|
||||||
entry_points={
|
|
||||||
"console_scripts": [
|
|
||||||
"pvc = pvc.cli.cli:cli",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
)
|
|
2
debian/compat
vendored
2
debian/compat
vendored
@ -1 +1 @@
|
|||||||
9
|
13
|
||||||
|
5
debian/rules
vendored
5
debian/rules
vendored
@ -7,13 +7,14 @@ export DH_VERBOSE = 1
|
|||||||
dh $@ --with python3
|
dh $@ --with python3
|
||||||
|
|
||||||
override_dh_python3:
|
override_dh_python3:
|
||||||
cd $(CURDIR)/client-cli; pybuild --system=distutils --dest-dir=../debian/pvc-client-cli/
|
cd $(CURDIR)/client-cli; pybuild --system=pyproject --dest-dir=../debian/pvc-client-cli/
|
||||||
mkdir -p debian/pvc-client-cli/usr/lib/python3
|
mkdir -p debian/pvc-client-cli/usr/lib/python3
|
||||||
mv debian/pvc-client-cli/usr/lib/python3*/* debian/pvc-client-cli/usr/lib/python3/
|
mv debian/pvc-client-cli/usr/lib/python3*/* debian/pvc-client-cli/usr/lib/python3/
|
||||||
rm -r $(CURDIR)/client-cli/.pybuild $(CURDIR)/client-cli/pvc.egg-info
|
rm -r $(CURDIR)/client-cli/.pybuild $(CURDIR)/client-cli/pvc.egg-info
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
find . -name "__pycache__" -o -name ".pybuild" -exec rm -fr {} + || true
|
find $(CURDIR) -name "__pycache__" -o -name ".pybuild" -exec rm -fr {} + || true
|
||||||
|
rm -r $(CURDIR)/client-cli/build
|
||||||
|
|
||||||
# If you need to rebuild the Sphinx documentation
|
# If you need to rebuild the Sphinx documentation
|
||||||
# Add spinxdoc to the dh --with line
|
# Add spinxdoc to the dh --with line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user