-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathpyproject.toml
82 lines (67 loc) · 2.39 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
[tool.poetry]
name = "pythonmonkey"
version = "0" # automatically set by poetry-dynamic-versioning
description = "Seamless interop between Python and JavaScript."
authors = ["Distributive Corp. <[email protected]>"]
license = "MIT"
homepage = "https://pythonmonkey.io/"
documentation = "https://docs.pythonmonkey.io/"
repository = "https://github.com/Distributive-Network/PythonMonkey"
readme = "README.md"
packages = [
{ include = "pythonmonkey", from = "python" },
]
include = [
# Linux and macOS
{ path = "python/pythonmonkey/pythonmonkey.so", format = ["sdist", "wheel"] },
{ path = "python/pythonmonkey/libmozjs*", format = ["sdist", "wheel"] },
# Windows
{ path = "python/pythonmonkey/pythonmonkey.pyd", format = ["sdist", "wheel"] },
{ path = "python/pythonmonkey/mozjs-*.dll", format = ["sdist", "wheel"] },
# 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" },
{ path = "mozcentral.version", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.8"
pyreadline3 = { version = "^3.4.1", platform = "win32" }
aiohttp = { version = "^3.9.5", extras = ["speedups"] }
pminit = { version = ">=0.4.0", allow-prereleases = true }
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
bump = true
[tool.poetry-dynamic-versioning.substitution]
# Set the project version number in CMakeLists.txt
files = [ "CMakeLists.txt" ]
patterns = [ '(set\(PYTHONMONKEY_VERSION ")0("\))' ]
[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 = [
{version = "^2.1.0", python = ">=3.10"},
{version = "^2.0.1", python = ">=3.9,<3.10"}, # NumPy 2.1.0 drops support for Python 3.9
{version = "^1.24.3", python = ">=3.8,<3.9"}, # NumPy 1.25.0 drops support for Python 3.8
]
pminit = { path = "./python/pminit", develop = true }
[build-system]
requires = ["poetry-core>=1.1.1", "poetry-dynamic-versioning==1.1.1"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.autopep8]
max_line_length=120
ignore="E111,E114,E121" # allow 2-space indents
verbose=true
indent-size=2
aggressive=3
exit-code=true