From 4fcc6e5be2da380911bf20b378ae9c614b8e7faa Mon Sep 17 00:00:00 2001 From: Mikucat Date: Tue, 16 Jan 2024 11:42:04 +0800 Subject: [PATCH] chore: use pyproject.toml --- bindings/Python/.gitignore | 3 +++ bindings/Python/pyproject.toml | 3 +++ bindings/Python/setup.cfg | 7 +++++++ bindings/Python/setup.py | 6 ------ 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 bindings/Python/.gitignore create mode 100644 bindings/Python/pyproject.toml create mode 100644 bindings/Python/setup.cfg delete mode 100644 bindings/Python/setup.py diff --git a/bindings/Python/.gitignore b/bindings/Python/.gitignore new file mode 100644 index 0000000..3bb8821 --- /dev/null +++ b/bindings/Python/.gitignore @@ -0,0 +1,3 @@ +dist/ +build/ +*.egg-info/ diff --git a/bindings/Python/pyproject.toml b/bindings/Python/pyproject.toml new file mode 100644 index 0000000..fed528d --- /dev/null +++ b/bindings/Python/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/bindings/Python/setup.cfg b/bindings/Python/setup.cfg new file mode 100644 index 0000000..5d17592 --- /dev/null +++ b/bindings/Python/setup.cfg @@ -0,0 +1,7 @@ +[metadata] +name = judger +version = 2.2.0 +description = python wrapper of libjudger + +[options] +packages = find: diff --git a/bindings/Python/setup.py b/bindings/Python/setup.py deleted file mode 100644 index e43de32..0000000 --- a/bindings/Python/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -from distutils.core import setup, Extension - -setup(name='judger', - version='2.1', - packages=["_judger"])