Add version.txt to package

This commit is contained in:
Antonin RAFFIN 2020-05-07 12:19:29 +02:00
parent 98e05cf578
commit 73afaf157c
3 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,7 @@
Changelog Changelog
========== ==========
Pre-Release 0.6.0a (WIP) Pre-Release 0.6.0a1 (WIP)
------------------------------ ------------------------------

View file

@ -4,7 +4,7 @@ import subprocess
from setuptools import setup, find_packages from setuptools import setup, find_packages
with open(os.path.join('stable_baselines3', 'version.txt'), 'r') as file_handler: with open(os.path.join('stable_baselines3', 'version.txt'), 'r') as file_handler:
__version__ = file_handler.read() __version__ = file_handler.read().strip()
long_description = """ long_description = """
@ -70,6 +70,9 @@ model = PPO('MlpPolicy', 'CartPole-v1').learn(10000)
setup(name='stable_baselines3', setup(name='stable_baselines3',
packages=[package for package in find_packages() packages=[package for package in find_packages()
if package.startswith('stable_baselines3')], if package.startswith('stable_baselines3')],
package_data={
'stable_baselines3': ['py.typed', 'version.txt']
},
install_requires=[ install_requires=[
'gym[classic_control]>=0.11', 'gym[classic_control]>=0.11',
'numpy', 'numpy',

View file

@ -1 +1 @@
0.6.0a0 0.6.0a1