fungus / setup.py

The default branch has multiple heads

#!/usr/bin/env python
# encoding: utf-8

#    Copyright © 2008 Arne Babenhauserheide
# 
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>

"""Fungus - A simple scene based game engine building on pyglet.
"""

# We use the advanced setuptools. 
from setuptools import setup, find_packages
#from distutils.core import setup
# If we have one or more packages, we also need to import find packages  
# It is currently not necessary. 
# The corresponding line in setup() is commented out, too. 
# from setuptools import find_packages

__version__ = "0.1.1"

# Create the description from the docstrings 

# The name for PyPI
NAME = __doc__.split("\n")[0].split(" - ")[0]

# The one line description for PyPI is the part after the dash (" - ") in the first line of this files docstring.. 
DESCRIPTION = __doc__.split("\n")[0].split(" - ")[1:]

# The longer description can be built from various sources. 

# The second and following lines of this files doocstring
LONG_DESCRIPTION = "\n".join(__doc__.split("\n")[1:])

from fungus_game import __doc__ as fungus_game__doc__
# The docstring in the main file (module). 
LONG_DESCRIPTION += "\n\n" + "\n".join(fungus_game__doc__.split("\n")[3:])

# And the Changelog from Changelog.txt
# Load the changelog data
try: 
    f = open("Changelog.txt", "r")
    __changelog__ = f.readlines()
    __changelog__ = ["  " + line for line in __changelog__]
    __changelog__ = "\n".join(__changelog__)
    f.close()
except: 
    __changelog__ == ""
LONG_DESCRIPTION += "\n\nChangelog: \n" + __changelog__


# Fire up setup with these values.i- must be modified. 
setup(name=NAME,
      version=__version__,
      description=DESCRIPTION,
      long_description=LONG_DESCRIPTION, 
      author='Phillip Schoenherr and Arne Babenhauserheide',
      author_email='arne_bab@web.de',
      keywords=["game engine", "pyglet"], 
      license="GNU GPL-3 or later", 
      platforms=["any"], 
      requires = ["pyglet"], 
      # package data
      packages = find_packages('.'), 
      #packages = ['graphics'],
      package_dir = {'graphics': 'graphics'},
      package_data = {'': ['*.png', '*.wav*']},
      # All classifiers can be found via python setup.py register --list-classifiers
      classifiers = [
            "License :: OSI Approved :: GNU General Public License (GPL)",
            "Programming Language :: Python",
            "Operating System :: OS Independent",
            "Intended Audience :: Developers", 
            "Intended Audience :: End Users/Desktop", 
            "Environment :: Console", 
            "Development Status :: 3 - Alpha",
	    "Topic :: Games/Entertainment"
            ],
      url='http://freehg.org/u/ArneBab/fungus',
      py_modules=['fungus_core', 'fungus_scene', 'fungus_swarm', 'fungus_audio_scene', 'fungus_01_intro', 'fungus_game'],
      scripts=["fungus_game.py"]
     )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.