Demo entry 6321307



Submitted by anonymous on Nov 10, 2016 at 23:03
Language: HTML+Django/Jinja. Code size: 3.0 kB.

"""The Tragedy of the Falling Sky's"""

    import pygame  # have this setup beforehand
except ImportError:
    raise SystemExit("unable to import pygame.")

import io
import re
from setuptools import setup
from setuptools import find_packages
from setuptools.command.test import test as TestCommand

def find_version(filename):
    """Uses re to pull out the assigned value to __version__ in filename."""

    with, encoding="utf-8") as version_file:
        version_match ='^__version__ = [\'"]([^\'"]*)[\'"]',
                        , re.M)
    if version_match:
    return "0.0.0"

class PyTest(TestCommand):
    """Shim in pytest to be able to use it with test."""

    def finalize_options(self):
        """Stolen from"""

        self.test_args = ["-v", "-rf", "--cov-report", "term-missing", "--cov",
                          "fallingsky", "test"]
        self.test_suite = True

    def run_tests(self):
        """Also shamelessly stolen."""

        # have to import here, outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        raise SystemExit(errno)

    author="Adam Talsma",
    install_requires=["kezmenu3", "appdirs"],
    entry_points={"console_scripts": ["fallingsky = fallingsky.main:play"]},
    description="A game of falling blocks with RPG elements, uses pygame.",
        "The Tragedy of the Falling Sky intends to be a RPG style block game. "
        "It is still in very early development though, so many features are "
        "missing. Also the artwork is very preliminary and will be improved "
        "upon. Feel free to contribute to the project on GitHub, all pull "
        "requests are welcomed."
    tests_require=["pytest", "pytest-cov"],
    cmdclass={"test": PyTest},
        "Development Status :: 2 - Pre-Alpha",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: Implementation :: CPython",
        "Topic :: Games/Entertainment",
        "Topic :: Games/Entertainment :: Arcade",
        "Topic :: Games/Entertainment :: Puzzle Games",
        "Topic :: Software Development :: Libraries :: pygame",

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).