-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (54 loc) · 1.82 KB
/
pyproject.toml
File metadata and controls
68 lines (54 loc) · 1.82 KB
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
[tool.poetry]
name = "pythonmonkey"
version = "0" # automatically set by poetry-dynamic-versioning
description = ""
authors = ["Caleb Aikens <caleb@distributive.network>", "Tom Tang <xmader@distributive.network>", "Wes Garland <wes@distributive.network>", "Hamada Gasmallah <hamada@distributive.network>"]
readme = "README.md"
packages = [
{ include = "pythonmonkey", from = "python" },
]
include = [
# Linux and macOS
"python/pythonmonkey/pythonmonkey.so",
"python/pythonmonkey/libmozjs*",
# Windows
"python/pythonmonkey/pythonmonkey.pyd",
"python/pythonmonkey/mozjs-*.dll",
# include all files for source distribution
{ path = "src", format = "sdist" },
{ path = "include", format = "sdist" },
{ path = "cmake", format = "sdist" },
{ path = "tests", format = "sdist" },
{ path = "CMakeLists.txt", format = "sdist" },
{ path = "*.sh", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.8"
pminit = { version = "*", allow-prereleases = true }
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
bump = true
[tool.poetry.build]
script = "build.py"
generate-setup-file = false
[tool.poetry.scripts]
pmjs = "pythonmonkey.cli.pmjs:main"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
pip = "^23.1.2"
numpy = [
# numpy hasn't released for Python 3.12 yet on PyPI
# TODO: use the PyPI build once the wheels are released for Python 3.12
{version = "^2.0.0.dev0", allow-prereleases = true, source = "anaconda", python = "3.12.*"},
{version = "^1.24.3", python = "<3.12"},
]
pminit = { path = "./python/pminit", develop = true }
[[tool.poetry.source]]
name = "anaconda"
url = "https://pypi.anaconda.org/pythonmonkey/simple"
priority = "explicit"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning==0.24.0"]
build-backend = "poetry_dynamic_versioning.backend"