diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..aa90ce3 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include LICENSE.rst +graft examples diff --git a/esper/__init__.py b/esper/__init__.py index 2897de1..a741954 100644 --- a/esper/__init__.py +++ b/esper/__init__.py @@ -1,9 +1,8 @@ from .world import CachedWorld, World from .templates import Processor -__version__ = "0.9.2" -__author__ = "Benjamin Moran" -__license__ = "MIT" -__copyright__ = "Benjamin Moran" +from .meta import (author as __author__, version as __version__, + license as __license__) +__copyright__ = __author__ __all__ = ("CachedWorld", "Processor", "World") diff --git a/esper/meta.py b/esper/meta.py new file mode 100644 index 0000000..1ba13fa --- /dev/null +++ b/esper/meta.py @@ -0,0 +1,36 @@ +# -*- coding:utf-8 -*- +# +# meta.py - release information for the esper distribution +# +"""Esper is a lightweight Entity System for Python, with a focus on performance. +""" + +name = 'esper' +version = '0.9.2' +description = __doc__.splitlines()[0] +keywords = 'ecs,entity component system' +author = "Benjamin Moran" +license = "MIT" +#author_email = '' +url = 'https://github.com/benmoran56/esper' +download_url = url + '/releases' +platforms = 'POSIX, Windows, MacOS X' +classifiers = """\ +Development Status :: 4 - Beta +Intended Audience :: Developers +License :: OSI Approved :: MIT License +Operating System :: OS Independent +Programming Language :: Python +Programming Language :: Python :: 3 +Programming Language :: Python :: 3.2 +Programming Language :: Python :: 3.3 +Programming Language :: Python :: 3.4 +Programming Language :: Python :: 3.5 +Topic :: Games/Entertainment +Topic :: Software Development :: Libraries :: Python Modules +""" +classifiers = [c.strip() for c in classifiers.splitlines() + if c.strip() and not c.startswith('#')] +try: # Python 2.x + del c +except: pass diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..8b92393 --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import os +import sys + +from setuptools import setup, find_packages + + +# read meta-data from esper/meta.py +setup_opts = {} +meta_info = os.path.join('esper', 'meta.py') +exec(compile(open(meta_info).read(), meta_info, 'exec'), {}, setup_opts) + +readme = open('README.rst').read() + +setup( + long_description=readme, + packages=find_packages(exclude=['docs']), + **setup_opts +)