mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
build(python): remove setuptools_scm dependency
We update version in several .toml and .json files on every release anyway, so updating pyproject.toml is easy. setuptools_scm makes it more difficult to build python packages for software distributions because it requires full git checkout with tags rather than just a worktree. It is also possible to remove or move tags after the release, so git revision no longer pins python package version if setuptools_scm is used.
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
|
requires = ["setuptools>=45"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "deltachat-rpc-client"
|
name = "deltachat-rpc-client"
|
||||||
|
version = "1.136.6"
|
||||||
description = "Python client for Delta Chat core JSON-RPC interface"
|
description = "Python client for Delta Chat core JSON-RPC interface"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 5 - Production/Stable",
|
"Development Status :: 5 - Production/Stable",
|
||||||
@@ -19,9 +20,6 @@ classifiers = [
|
|||||||
"Topic :: Communications :: Chat",
|
"Topic :: Communications :: Chat",
|
||||||
"Topic :: Communications :: Email"
|
"Topic :: Communications :: Email"
|
||||||
]
|
]
|
||||||
dynamic = [
|
|
||||||
"version"
|
|
||||||
]
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
@@ -32,9 +30,6 @@ deltachat_rpc_client = [
|
|||||||
[project.entry-points.pytest11]
|
[project.entry-points.pytest11]
|
||||||
"deltachat_rpc_client.pytestplugin" = "deltachat_rpc_client.pytestplugin"
|
"deltachat_rpc_client.pytestplugin" = "deltachat_rpc_client.pytestplugin"
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
|
||||||
root = ".."
|
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
|
|
||||||
|
|||||||
@@ -495,7 +495,6 @@
|
|||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pkgs.python3Packages.setuptools
|
pkgs.python3Packages.setuptools
|
||||||
pkgs.python3Packages.setuptools_scm
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -513,7 +512,6 @@
|
|||||||
];
|
];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pkgs.python3Packages.setuptools
|
pkgs.python3Packages.setuptools
|
||||||
pkgs.python3Packages.setuptools_scm
|
|
||||||
pkgs.python3Packages.pkgconfig
|
pkgs.python3Packages.pkgconfig
|
||||||
pkgs.python3Packages.cffi
|
pkgs.python3Packages.cffi
|
||||||
pkgs.python3Packages.imap-tools
|
pkgs.python3Packages.imap-tools
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2", "cffi>=1.0.0", "pkgconfig"]
|
requires = ["setuptools>=45", "wheel", "cffi>=1.0.0", "pkgconfig"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "deltachat"
|
name = "deltachat"
|
||||||
|
version = "1.136.6"
|
||||||
description = "Python bindings for the Delta Chat Core library using CFFI against the Rust-implemented libdeltachat"
|
description = "Python bindings for the Delta Chat Core library using CFFI against the Rust-implemented libdeltachat"
|
||||||
readme = "README.rst"
|
readme = "README.rst"
|
||||||
requires-python = ">=3.7"
|
requires-python = ">=3.7"
|
||||||
@@ -26,9 +27,6 @@ dependencies = [
|
|||||||
"pluggy",
|
"pluggy",
|
||||||
"requests",
|
"requests",
|
||||||
]
|
]
|
||||||
dynamic = [
|
|
||||||
"version"
|
|
||||||
]
|
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
"Home" = "https://github.com/deltachat/deltachat-core-rust/"
|
"Home" = "https://github.com/deltachat/deltachat-core-rust/"
|
||||||
@@ -44,11 +42,6 @@ deltachat = [
|
|||||||
"py.typed"
|
"py.typed"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
|
||||||
root = ".."
|
|
||||||
tag_regex = '^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$'
|
|
||||||
git_describe_command = "git describe --dirty --tags --long --match v*.*"
|
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,8 @@ def main():
|
|||||||
"deltachat-jsonrpc/Cargo.toml",
|
"deltachat-jsonrpc/Cargo.toml",
|
||||||
"deltachat-rpc-server/Cargo.toml",
|
"deltachat-rpc-server/Cargo.toml",
|
||||||
"deltachat-repl/Cargo.toml",
|
"deltachat-repl/Cargo.toml",
|
||||||
|
"python/pyproject.toml",
|
||||||
|
"deltachat-rpc-client/pyproject.toml",
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
opts = parser.parse_args()
|
opts = parser.parse_args()
|
||||||
|
|||||||
Reference in New Issue
Block a user