summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml3
-rw-r--r--setup.cfg20
-rw-r--r--setup.py11
3 files changed, 23 insertions, 11 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..fed528d
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..1298f8d
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,20 @@
+[metadata]
+name = cameltris
+version = 0.1
+author = Olivier Gayot
+author_email = olivier.gayot@sigexec.com
+
+description = "Tetris clone"
+url = https://git.sigexec.com/cgit.cgi/cameltris.git
+classifiers =
+ Programming Language :: Python :: 3
+ License :: BSD-3
+ Operating System :: POSIX :: Linux
+
+[options]
+packages = find:
+python_requires = >= 3.9
+
+[options.entry_points]
+console_scripts =
+ cameltris = cameltris.__main__:main
diff --git a/setup.py b/setup.py
deleted file mode 100644
index f69a305..0000000
--- a/setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from setuptools import setup, find_packages
-
-
-setup(
- name = 'cameltris',
- description = "Tetris clone",
- version = '0.1',
- author = 'Olivier Gayot',
- author_email = 'olivier.gayot@sigexec.com',
- packages = find_packages(),
-)