Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=61.2",
]

[project]
name = "lunatic-python"
version = "1.0"
description = "Two-way bridge between Python and Lua"
readme = "README.md"
license.text = "LGPL"
authors = [
{ name = "Gustavo Niemeyer", email = "gustavo@niemeyer.net" },
]
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
urls.Homepage = "http://labix.org/lunatic-python"

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

[tool.distutils]
bdist_rpm.doc-files = "python.lua LICENSE"
bdist_rpm.use-bzip2 = 2
3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

20 changes: 5 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
import subprocess as commands
else:
import commands
from distutils.core import setup, Extension
from setuptools import setup, Extension
from distutils.sysconfig import get_config_var, get_python_lib, get_python_version

if not os.environ.get("PKG_CONFIG_PATH"): # set this if needed on macOS
os.environ["PKG_CONFIG_PATH"] = get_config_var("LIBPC")

if os.path.isfile("MANIFEST"):
os.unlink("MANIFEST")

Expand Down Expand Up @@ -71,20 +74,7 @@ def pkgconfig(*packages):
lua_pkgconfig = pkgconfig('lua' + LUAVERSION, 'python-' + PYTHONVERSION)
lua_pkgconfig['extra_compile_args'] = ['-I/usr/include/lua'+LUAVERSION, '-DPYTHON_LIBRT="' + str(PYTHON_LIBRT) + '"']

setup(name="lunatic-python",
version="1.0",
description="Two-way bridge between Python and Lua",
author="Gustavo Niemeyer",
author_email="gustavo@niemeyer.net",
url="http://labix.org/lunatic-python",
license="LGPL",
long_description="""\
Lunatic Python is a two-way bridge between Python and Lua, allowing these
languages to intercommunicate. Being two-way means that it allows Lua inside
Python, Python inside Lua, Lua inside Python inside Lua, Python inside Lua
inside Python, and so on.
""",
ext_modules=[
setup(ext_modules=[
Extension("lua-python",
["src/pythoninlua.c", "src/luainpython.c"],
**lua_pkgconfig),
Expand Down