Skip to content

Commit

Permalink
Switch to 'pyproject.toml' building spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbueno committed Sep 5, 2024
1 parent ea0157b commit 239111a
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 37 deletions.
57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]
include = ["extrainterpreters"]

[[tool.setuptools."ext-modules"]]
name = "extrainterpreters._memoryboard"
sources = ["src/extrainterpreters/memoryboard.c"]
extra-compile-args = ["-O3",]
language = "c"

[tool.setuptools.dynamic]
version = {attr = "extrainterpreters.__version__"}

[project]
name = "python-extracontext"
dynamic = ["version"]
description = "PEP 554 Subinterpreters usable from Python code"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">= 3.12"
authors = [{ name = "Joao S. O. Bueno" }]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
]

[project.urls]
repository = "https://github.com/jsbueno/extrainterpreters"


[project.optional-dependencies]
dev = [
"pytest",
"black",
"pyflakes",
"pytest-coverage",
]

[tool.pytest.ini_options]
testpaths = "tests"
python_files = "test_*.py"
python_functions = "test_*"
addopts = "-v"

[tool.mypy]
implicit_reexport = true
37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

3 changes: 3 additions & 0 deletions src/extrainterpreters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
)


__version__ = "0.2-beta2"


BFSZ = 10_000_000

running_interpreters = weakref.WeakValueDictionary()
Expand Down

0 comments on commit 239111a

Please sign in to comment.