From a7afc0c577a34ba93d6e97cbb6063e38d2398f20 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 19 Nov 2020 02:30:29 +0100 Subject: [PATCH] Prepare PyPI deployment --- .gitignore | 6 ++++++ setup.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 99e64f0..53db978 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,12 @@ venv/ .pytest_cache/ __pycache__ +*.pyc + +# Ignore build data +build/ +dist/ +*.egg-info/ # Don't commit settings settings.json diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e0f8b35 --- /dev/null +++ b/setup.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python3 +import os + +from setuptools import find_packages, setup + +with open("README.md", "r") as f: + long_description = f.read() + +setup( + name="squirrel-battle", + version="1.0.0", + author="ynerant", + author_email="ynerant@crans.org", + description="Watch out for squirrel's knifes!", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://gitlab.crans.org/ynerant/dungeon-battle", + packages=find_packages(), + license='GPLv3', + classifiers=[ + "Development Status :: 4 - Beta", + "Environment :: Console :: Curses", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Natural Language :: French", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Topic :: Games/Entertainment", + ], + python_requires='>=3.6', + include_package_data=True, + data_files=["squirrelbattle/assets/" + file + for file in os.listdir("squirrelbattle/assets")], + entry_points={ + "console_scripts": [ + "squirrel-battle = squirrelbattle.bootstrap:Bootstrap.run_game", + ] + } + +)