about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2020-03-03 21:24:41 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2020-03-03 21:48:00 +0700
commitb90e6c272c1f76da43992323ffd0f148f759f408 (patch)
tree0cbec0dee9f9c4e234fc6cecbd9d83e885cc4089
parent5e5778d814c3d76cf74aa4e660d5fbaeeeb50c82 (diff)
downloadbrutalmaze-b90e6c272c1f76da43992323ffd0f148f759f408.tar.gz
Switch to flit for build
-rw-r--r--MANIFEST.in1
-rw-r--r--brutalmaze/__init__.py4
-rw-r--r--pyproject.toml31
-rwxr-xr-xsetup.py31
m---------wiki0
5 files changed, 34 insertions, 33 deletions
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
-Subproject 55bec877617541436935290adedb7760b115557
+Subproject 7375e5e6615dc11b9baccca059f258dbaf30f66