Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2022-12-28 22:29:18 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-01-28 13:24:33 +0300
commit4c57bd71c6665803be2c61445c90fa2295dd993a (patch)
treeb6524efb6a73544ed7ffb71eb737e35749a795fb /pyproject.toml
parente2e40a351f63bb0b6e24889a227ef83ed8df4ff5 (diff)
change: Port to pyproject.toml
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml73
1 files changed, 69 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml
index ce449fe03..09daf3287 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,15 +1,82 @@
[build-system]
requires = [
- "setuptools >= 43.0.0",
+ "setuptools >= 65.0.0",
]
build-backend = "setuptools.build_meta"
+[project]
+name = "gajim"
+description = "A GTK XMPP Client"
+readme = "README.md"
+requires-python = ">=3.10"
+license = {text = "GPL-3.0-or-later"}
+authors = [
+ {name = "Philipp Hörist", email = "philipp@hoerist.com"},
+ {name = "Yann Leboulanger", email = "yann@leboulanger.org"},
+]
+keywords = ["chat", "messaging", "im", "xmpp", "voip"]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Environment :: X11 Applications :: GTK",
+ "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 3.10",
+ "Topic :: Communications :: Chat",
+]
+dependencies = [
+ "css-parser",
+ "keyring",
+ "nbxmpp>=4.0.1,<5.0.0",
+ "packaging",
+ "pillow",
+ "precis-i18n>=1.0.0",
+ "cryptography>=3.4.8",
+ "pycairo>=1.16.0",
+ "PyGObject>=3.42.0",
+]
+dynamic = ["version"]
+
+[project.urls]
+homepage = "https://gajim.org"
+repository = "https://dev.gajim.org/gajim/gajim"
+
+[project.optional-dependencies]
+dev = [
+ "ruff",
+ "codespell[toml]",
+ "nbxmpp @ git+https://dev.gajim.org/gajim/python-nbxmpp.git",
+ "PyGObject-stubs @ git+https://github.com/pygobject/pygobject-stubs.git",
+ "python-gitlab",
+ "sentry-sdk",
+]
+
+[project.scripts]
+gajim-remote = "gajim.gajim_remote:main"
+
+[project.gui-scripts]
+gajim = "gajim.gajim:main"
+
+[tool.setuptools]
+include-package-data = true
+
+[tool.setuptools.packages.find]
+include = ["gajim*"]
+# Necessary so gajim.data is recogniced as namespace package and all files
+# under it are included as package-data
+namespaces = true
+
+[tool.setuptools.package-data]
+"gajim.data" = [
+ "icons/**/index.theme",
+]
+
+[tool.setuptools.dynamic]
+version = {attr = "gajim.__version__"}
[tool.codespell]
skip = "*__pycache__*,build,test,*.egg-info,.git,*.po,*.nsi,*.spec"
ignore-words-list = "claus,pres,ser,trough"
-
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "All"
@@ -80,7 +147,6 @@ include = [
"gajim/plugins/*",
]
-
[tool.ruff]
line-length = 80
@@ -164,7 +230,6 @@ target-version = "py310"
"test/common/test_styling.py" = ["RUF001", "E501"]
"test/common/test_regex.py" = ["RUF001"]
-
[tool.ruff.mccabe]
max-complexity = 15