diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-02-11 20:20:48 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-02-11 20:30:22 +0100 |
commit | 95da899f079c805109427db3a99f218aa5c992dd (patch) | |
tree | 169d4ab811b229aacd955078e5cd50f886e5cc3e | |
parent | 27edf9ced3b02529015ec4a0cf0bf61f390e0fbb (diff) |
Modernize packaging
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | pyproject.toml | 3 | ||||
-rw-r--r-- | setup.cfg | 20 | ||||
-rw-r--r-- | setup.py | 11 |
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(), -) |