File: pyproject.toml

package info (click to toggle)
python-pygit2 1.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,880 kB
  • sloc: ansic: 12,379; python: 11,602; sh: 205; makefile: 26
file content (76 lines) | stat: -rw-r--r-- 2,666 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[build-system]
requires = ["setuptools", "wheel"]

[tool.cibuildwheel]
enable = ["pypy"]
skip = "*musllinux_ppc64le"

archs = ["native"]
build-frontend = "default"
dependency-versions = "pinned"
environment = {LIBGIT2_VERSION="1.9.1", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.3.3", LIBGIT2="/project/ci"}

before-all = "sh build.sh"
test-command = "pytest"
test-sources = ["test", "pytest.ini"]
before-test = "pip install -r {project}/requirements-test.txt"
# Will avoid testing on emulated architectures (specifically ppc64le)
test-skip = "*-*linux_ppc64le"

[tool.cibuildwheel.linux]
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib64 auditwheel repair -w {dest_dir} {wheel}"

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib auditwheel repair -w {dest_dir} {wheel}"

[tool.cibuildwheel.macos]
archs = ["universal2"]
environment = {LIBGIT2_VERSION="1.9.1", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.3.3", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"}
repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"

[tool.cibuildwheel.windows]
environment.LIBGIT2_SRC = "build/libgit2_src"
environment.LIBGIT2_VERSION = "1.9.1"
before-all = "powershell -File build.ps1"

[[tool.cibuildwheel.overrides]]
select="*-win_amd64"
inherit.environment="append"
environment.CMAKE_GENERATOR = "Visual Studio 17 2022"
environment.CMAKE_GENERATOR_PLATFORM = "x64"
environment.CMAKE_INSTALL_PREFIX = "C:/libgit2_install_x86_64"
environment.LIBGIT2 = "C:/libgit2_install_x86_64"

[[tool.cibuildwheel.overrides]]
select="*-win32"
inherit.environment="append"
environment.CMAKE_GENERATOR = "Visual Studio 17 2022"
environment.CMAKE_GENERATOR_PLATFORM = "Win32"
environment.CMAKE_INSTALL_PREFIX = "C:/libgit2_install_x86"
environment.LIBGIT2 = "C:/libgit2_install_x86"

[[tool.cibuildwheel.overrides]]
select="*-win_arm64"
inherit.environment="append"
environment.CMAKE_GENERATOR = "Visual Studio 17 2022"
environment.CMAKE_GENERATOR_PLATFORM = "ARM64"
environment.CMAKE_INSTALL_PREFIX = "C:/libgit2_install_arm64"
environment.LIBGIT2 = "C:/libgit2_install_arm64"

[tool.ruff]
extend-exclude = [ ".cache", ".coverage", "build", "site-packages", "venv*"]
target-version = "py311"  # oldest supported Python version

[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "UP035", "UP007"]

[tool.ruff.format]
quote-style = "single"

[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git*'
check-hidden = true
# ignore-regex = ''
ignore-words-list = 'devault,claus'