-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
91 lines (82 loc) · 3.03 KB
/
pyproject.toml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[build-system]
requires = [
"setuptools>=41.0.1",
"scikit-build>=0.11.1",
# Note: it is important that numpy is pinned to the minimum version at
# build time, because while the numpy ABI is forward compatible, it is
# not backwards compatible.
"numpy==1.23.2 ; python_version < '4.0' and python_version >= '3.11'",
"numpy==1.21.6 ; python_version < '3.11' and python_version >= '3.10'",
"numpy==1.21.6 ; python_version < '3.10' and python_version >= '3.9'",
"numpy==1.21.6 ; python_version < '3.9' and python_version >= '3.8'",
"ninja>=1.10.2",
"cmake>=3.21.2",
"cython>=0.29.24",
]
[tool.xcookie]
url = 'https://github.com/GERSL/pycold'
tags = [ "github", "binpy", "cv2"]
mod_name = "pycold"
repo_name = "pycold"
rel_mod_parent_dpath = "src/python"
os = [
#"osx",
"linux",
#"win",
#"all"
]
min_python = 3.8
author = "Su Ye"
enable_gpg = false
defaultbranch = "devel"
author_email = "remotesensingsuy@gmail.com"
description = "python implementation of COntinuous monitoring of Land disturbances algorithm"
dev_status = "beta"
license = "Apache 2"
ci_pypi_live_password_varname = 'PYPI'
ci_pypi_test_password_varname = 'PYPY_TEST'
[tool.cibuildwheel]
# Options for this section are documented here
# https://cibuildwheel.readthedocs.io/en/stable/options/
build = "cp38-* cp39-* cp310-* cp311-*"
#build = "cp310-manylinux_x86_64"
build-frontend = "build"
skip = "*-win32 *-musllinux_* *i686 pp*"
archs = ["x86_64"]
#archs = ["i686"]
build-verbosity = 1
test-requires = ["-r requirements/tests.txt", "-r requirements/headless.txt"]
test-command = "python {project}/run_tests.py"
# Use custom manylinux images to get precompiled build-time deps
manylinux-x86_64-image = "quay.io/erotemic/manylinux2014_x86_64_for:zlib-build-fortran-gsl"
manylinux-i686-image = "quay.io/erotemic/manylinux2014_i686_for:zlib-build-fortran-gsl"
#[tool.cibuildwheel.linux]
# Uncomment to work with official manylinux images
#before-build = "yum install gcc gcc-c++ make zlib-devel gcc-gfortran libgomp blas-devel -y && curl https://ftp.gnu.org/gnu/gsl/gsl-2.7.1.tar.gz > gsl.tar.gz && tar xfv gsl.tar.gz && cd gsl-2.7.1 && ./configure --prefix=/usr --disable-static && make && make install"
#before-build = "yum install libgomp blas-devel -y"
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "-p no:doctest --xdoctest --xdoctest-style=google --ignore-glob=setup.py --ignore-glob=dev"
norecursedirs = ".git ignore build __pycache__ dev _skbuild"
filterwarnings = [
"default",
"ignore:.*No cfgstr given in Cacher constructor or call.*:Warning",
"ignore:.*Define the __nice__ method for.*:Warning", "ignore:.*private pytest class or function.*:Warning",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
".* # pragma: no cover",
".* # nocover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"^ *raise",
"^ *pass *$",
"if __name__ == .__main__.:",
]
omit = ["*/setup.py",]