Skip to content

Commit

Permalink
Add setuptools support and distribution meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
SpotlightKid committed Jan 11, 2016
1 parent 07caa3c commit 836f9c2
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 4 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,2 @@
include LICENSE.rst
graft examples
7 changes: 3 additions & 4 deletions 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")
36 changes: 36 additions & 0 deletions 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
21 changes: 21 additions & 0 deletions 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
)

0 comments on commit 836f9c2

Please sign in to comment.