squirrel-battle/setup.py

56 lines
1.8 KiB
Python
Raw Normal View History

2020-11-19 01:30:29 +00:00
#!/usr/bin/env python3
2020-11-27 15:33:17 +00:00
2021-01-10 09:46:17 +00:00
# Copyright (C) 2020-2021 by ÿnérant, eichhornchen, nicomarg, charlse
2020-11-27 15:33:17 +00:00
# SPDX-License-Identifier: GPL-3.0-or-later
2020-11-28 12:49:28 +00:00
import subprocess
2020-11-19 01:30:29 +00:00
from setuptools import find_packages, setup
with open("README.md", "r") as f:
long_description = f.read()
2020-11-28 12:49:28 +00:00
# Compile messages
2020-12-07 00:01:39 +00:00
for language in ["de", "es", "fr"]:
2020-11-28 12:49:28 +00:00
args = ["msgfmt", "--check-format",
"-o", f"squirrelbattle/locale/{language}/LC_MESSAGES"
"/squirrelbattle.mo",
f"squirrelbattle/locale/{language}/LC_MESSAGES"
"/squirrelbattle.po"]
print(f"Compiling {language} messages...")
subprocess.Popen(args)
2020-11-19 01:30:29 +00:00
setup(
name="squirrel-battle",
2021-01-10 22:57:39 +00:00
version="23.14",
author="ÿnérant, eichhornchen, nicomarg, charlse",
author_email="squirrel-battle@crans.org",
description="Watch out for squirrel's knives!",
2020-11-19 01:30:29 +00:00
long_description=long_description,
long_description_content_type="text/markdown",
2020-11-19 03:45:44 +00:00
url="https://gitlab.crans.org/ynerant/squirrel-battle",
2020-11-19 01:30:29 +00:00
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,
2020-11-28 15:00:17 +00:00
package_data={"squirrelbattle": ["assets/*", "locale/*/*/*.mo"]},
2020-11-19 01:30:29 +00:00
entry_points={
"console_scripts": [
"squirrel-battle = squirrelbattle.bootstrap:Bootstrap.run_game",
]
}
)