forked from google-deepmind/meltingpot
-
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.
- Exclude GitHub specifics - Use absolute paths in README.md PiperOrigin-RevId: 637891868 Change-Id: Ibc7a6e4764fcb1a412df443d43d4ae5294ce11f8
- Loading branch information
1 parent
1f795b1
commit 466a136
Showing
2 changed files
with
29 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,19 @@ | |
ASSETS_URL = f'http://storage.googleapis.com/dm-meltingpot/meltingpot-assets-{ASSETS_VERSION}.tar.gz' | ||
|
||
|
||
def _remove_excluded(description: str) -> str: | ||
description, *sections = description.split('<!-- GITHUB -->') | ||
for section in sections: | ||
excluded, included = section.split('<!-- /GITHUB -->') | ||
del excluded | ||
description += included | ||
return description | ||
|
||
|
||
with open('README.md') as f: | ||
LONG_DESCRIPTION = _remove_excluded(f.read()) | ||
|
||
|
||
class BuildPy(build_py.build_py): | ||
"""Command that downloads Melting Pot assets as part of build_py.""" | ||
|
||
|
@@ -80,7 +93,11 @@ def build_assets(self): | |
author='DeepMind', | ||
author_email='[email protected]', | ||
description=( | ||
'A suite of test scenarios for multi-agent reinforcement learning.'), | ||
'A suite of test scenarios for multi-agent reinforcement learning.' | ||
), | ||
description_content_type='text/plain', | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type='text/markdown', | ||
keywords='multi-agent reinforcement-learning python machine-learning', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
|