-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add packaging information and versions
To make it easier to deploy the package, the travis script has been extended and additional package information has been added.
- Loading branch information
Showing
6 changed files
with
77 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '0.0.0' |
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,17 @@ | ||
import re | ||
import sys | ||
|
||
|
||
def parse_version(git_version): | ||
m = re.search('v(.+)', git_version) | ||
return m.group(1) | ||
|
||
|
||
def update_version(git_version): | ||
v = parse_version(git_version) | ||
with open('gym_quickcheck/_version.py', 'w') as f: | ||
f.write(f"__version__ = '{v}'\n") | ||
|
||
|
||
if __name__ == "__main__": | ||
update_version(sys.argv[1]) |
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,7 +1,46 @@ | ||
import subprocess | ||
import sys | ||
from pathlib import Path | ||
|
||
from setuptools import setup, find_packages | ||
|
||
setup(name='gym_quickcheck', | ||
version='0.0.0', | ||
here = Path(__file__).absolute().parent | ||
|
||
error = subprocess.call(['make', 'meta']) | ||
if error: | ||
print(f"failed to run 'make meta' with error: {error}") | ||
sys.exit(-1) | ||
|
||
with open(here / Path('README.md'), encoding='utf-8') as f: | ||
long_description = f.read().replace('\r\n', '\n') | ||
|
||
_version = {} | ||
with open(here / Path('gym_quickcheck/_version.py', mode='r')) as f: | ||
exec(f.read(), _version) | ||
|
||
setup( | ||
name='gym_quickcheck', | ||
version=_version['__version__'], | ||
description='Gym environments that allow for coarse but fast testing of AI agents.', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/SwamyDev/gym-quickcheck', | ||
author='Bernhard Raml', | ||
author_email='pypi-reinforcment@googlegroups.com', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
'Topic :: Software Development :: Testing' | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3', | ||
], | ||
packages=find_packages(include='gym_quickcheck'), | ||
install_requires=['gym'], | ||
extras_require={'test': ['pytest']}) | ||
extras_require={'test': ['pytest']}, | ||
keywords='OpeanAI gym testing continuous integration', | ||
project_urls={ | ||
'Bug Reports': 'https://github.com/SwamyDev/gym-quickcheck/issues', | ||
'Source': 'https://github.com/SwamyDev/gym-quickcheck', | ||
}, | ||
) |