-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
23 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
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
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,21 +1,30 @@ | ||
import os | ||
import re | ||
from setuptools import setup, find_packages | ||
|
||
def read_readme(): | ||
with open('README.md') as f: | ||
return f.read() | ||
|
||
def read_version(): | ||
__PATH__ = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(__PATH__, 'breakout_env/__init__.py')) as f: | ||
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError("Unable to find __version__ string") | ||
|
||
setup( | ||
name = 'breakout_env', | ||
packages=find_packages(), | ||
version='1.0.3', | ||
version=read_version(), | ||
description = 'A configurable Breakout environment for reinforcement learning', | ||
long_description = read_readme(), | ||
author = 'SSARCandy', | ||
author_email = '[email protected]', | ||
license = 'MIT', | ||
url = 'https://github.com/SSARCandy/breakout-env', # use the URL to the github repo | ||
# download_url = 'https://github.com/SSARCandy/breakout-env/archive/1.0.0.tar.gz', # I'll explain this in a second | ||
keywords = ['game', 'learning', 'evironment'], # arbitrary keywords | ||
url = 'https://github.com/SSARCandy/breakout-env', | ||
keywords = ['game', 'learning', 'evironment'], | ||
classifiers = [], | ||
install_requires=['numpy>=1.1', 'distribute'], | ||
include_package_data=True | ||
|