-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setuptools support and distribution meta data
- Loading branch information
1 parent
07caa3c
commit 836f9c2
Showing
4 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include LICENSE.rst | ||
graft examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) |