Prepare PyPI deployment

This commit is contained in:
Yohann D'ANELLO 2020-11-19 02:30:29 +01:00
parent d0ee9ec562
commit a7afc0c577
2 changed files with 49 additions and 0 deletions

6
.gitignore vendored
View File

@ -8,6 +8,12 @@ venv/
.pytest_cache/ .pytest_cache/
__pycache__ __pycache__
*.pyc
# Ignore build data
build/
dist/
*.egg-info/
# Don't commit settings # Don't commit settings
settings.json settings.json

43
setup.py Normal file
View File

@ -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",
]
}
)