From b90e6c272c1f76da43992323ffd0f148f759f408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Tue, 3 Mar 2020 21:24:41 +0700 Subject: [PATCH] Switch to flit for build --- MANIFEST.in | 1 - brutalmaze/__init__.py | 4 +++- pyproject.toml | 31 +++++++++++++++++++++++++++++++ setup.py | 31 ------------------------------- wiki | 2 +- 5 files changed, 35 insertions(+), 34 deletions(-) delete mode 100644 MANIFEST.in create mode 100644 pyproject.toml delete mode 100755 setup.py diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 8141d86..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -include LICENSE screenshot.png diff --git a/brutalmaze/__init__.py b/brutalmaze/__init__.py index 5b5144f..538c489 100644 --- a/brutalmaze/__init__.py +++ b/brutalmaze/__init__.py @@ -1 +1,3 @@ -"""Brutal Maze is a minimalist thrilling shoot 'em up game.""" +"""Minimalist thrilling shoot 'em up game with minimalist art style""" + +from .game import __version__ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5be1f72 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,31 @@ +[build-system] +requires = ['flit_core >=2,<3'] +build-backend = 'flit_core.buildapi' + +[tool.flit.metadata] +module = 'brutalmaze' +author = 'Nguyễn Gia Phong' +author-email = 'mcsinyx@disroot.org' +home-page = 'https://github.com/McSinyx/brutalmaze' +requires = ['appdirs', 'pygame>=1.9', 'setuptools'] +description-file = 'README.rst' +classifiers = [ + 'Development Status :: 4 - Beta', + 'Environment :: MacOS X', + 'Environment :: Win32 (MS Windows)', + 'Environment :: X11 Applications', + 'Intended Audience :: End Users/Desktop', + 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', + 'Natural Language :: English', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3 :: Only', + 'Topic :: Games/Entertainment :: Arcade'] +keywords = 'pygame,shmup,maze,ai-challenges' +license = 'AGPLv3+' + +[tool.flit.entrypoints.console_scripts] +brutalmaze = "brutalmaze.game:main" + +[tool.flit.sdist] +exclude = ['docs', 'wiki'] diff --git a/setup.py b/setup.py deleted file mode 100755 index 4b350f9..0000000 --- a/setup.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python3 -from setuptools import setup - -with open('README.rst') as f: - long_description = f.read() - -setup( - name='brutalmaze', - version='0.9.0', - description="Minimalist thrilling shoot 'em up game", - long_description=long_description, - url='https://github.com/McSinyx/brutalmaze', - author='Nguyễn Gia Phong', - author_email='vn.mcsinyx@gmail.com', - license='AGPLv3+', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: MacOS X', - 'Environment :: Win32 (MS Windows)', - 'Environment :: X11 Applications', - 'Intended Audience :: End Users/Desktop', - 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', - 'Natural Language :: English', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Topic :: Games/Entertainment :: Arcade'], - keywords='pygame shmup arcade-game maze ai-challenges', - packages=['brutalmaze'], - install_requires=['appdirs', 'pygame>=1.9'], - package_data={'brutalmaze': ['icon.png', 'soundfx/*.ogg', 'settings.ini']}, - entry_points={'console_scripts': ['brutalmaze = brutalmaze.game:main']}) diff --git a/wiki b/wiki index 55bec87..7375e5e 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 55bec877617541436935290adedb7760b1155570 +Subproject commit 7375e5e6615dc11b9baccca059f258dbaf30f667