-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
84 lines (71 loc) · 2.76 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
[build-system]
requires = [
"wheel",
"setuptools>=61.0.0",
"setuptools-scm",
"numpy==2.1.3; python_version>='3.10' and platform_python_implementation!='PyPy'",
# PyPy specific requirements
"numpy==2.1.3; python_version=='3.10' and platform_python_implementation=='PyPy'",
]
build-backend = "setuptools.build_meta"
[project]
name = "polyagamma"
authors = [
{name = "Zolisa Bleki", email = "[email protected]"}
]
description = "Efficiently generate samples from the Polya-Gamma distribution using a NumPy/SciPy compatible interface."
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = ["numpy >= 1.19.0"]
license = {text = "BSD 3-Clause License"}
keywords = ['polya-gamma distribution', 'polya-gamma random sampling']
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: BSD License",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: MacOS :: MacOS X",
"Typing :: Typed",
]
[project.urls]
source = "https://github.com/zoj613/polyagamma"
tracker = "https://github.com/zoj613/polyagamma/issues"
[tool.setuptools]
packages = ["polyagamma"]
[tool.setuptools.exclude-package-data]
# these get excluded from the wheel distribution only
polyagamma = ["*.pyx", "_polyagamma.c"]
[tool.setuptools.package-data]
polyagamma = ["_polyagamma.c"]
[tool.setuptools_scm]
version_file = "polyagamma/_version.py"
[tool.coverage.run]
plugins = ["Cython.Coverage"]
omit = ["polyagamma/_version.py"]
[tool.cibuildwheel]
build-verbosity = 3
archs = ["auto64"]
# Numpy only supports Pypy 3.9 on x85_64 currently for the supported versions so we need to skip building wheels on Pypy for later versions
# We also skip musllinux wheels for the aarch64 architecture because building a wheel takes hours.
skip = ["pp31*", "pp3*_aarch64", "*-musllinux_aarch64"]
# The test-command string is not parsed correctly on windows so we skip testing the wheel for now.
# ARM64 wheels on MacOS currently can't be test with cibuildwheels, so we skip testing until it can be supoorted.
test-skip = ["*-win*", "*-macosx_arm64"]
before-test = "pip install numpy --pre"
test-command = [
"python -c 'from polyagamma import random_polyagamma;print(random_polyagamma());'"
]
environment = { SETUPTOOLS_SCM_DEBUG = 1 }
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"]
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
[[tool.cibuildwheel.overrides]]
# To avoid errors building numpy for the musllinux linux wheels, we install blas.
select = "*-musllinux*"
before-all = "apk add openblas-dev"