Skip to content

Commit 7a03145

Browse files
Updated push to pypi gha.
1 parent 7091c46 commit 7a03145

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/publish_pypi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python 3.10
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: 3.10
24+
python-version: 3.10.x
2525
- name: Install dependencies
2626
run: pip install setuptools wheel twine --user
2727
- name: verify git tag vs. version
@@ -35,14 +35,14 @@ jobs:
3535
python setup.py bdist_wheel
3636
- name: Publish distribution 📦 to Test PyPI
3737
if: startsWith(github.ref, 'refs/tags') && contains(github.ref, 'test')
38-
uses: actions/gh-action-pypi-publish@717ba43cfbb0387f6ce311b169a825772f54d295
38+
uses: pypa/gh-action-pypi-publish@master
3939
with:
4040
password: ${{ secrets.TEST_PYPI_PASSWORD }}
4141
repository_url: https://test.pypi.org/legacy/
4242
packages_dir: ${{ matrix.package-path }}/dist/
4343
- name: Publish distribution 📦 to Production PyPI
4444
if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, 'test')
45-
uses: actions/gh-action-pypi-publish@717ba43cfbb0387f6ce311b169a825772f54d295
45+
uses: pypa/gh-action-pypi-publish@master
4646
with:
4747
password: ${{ secrets.PYPI_PASSWORD }}
4848
packages_dir: ${{ matrix.package-path }}/dist/

.github/workflows/publish_pypi_python_api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python 3.10
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: 3.10
24+
python-version: 3.10.x
2525
- name: Install dependencies
2626
run: pip install setuptools wheel twine --user
2727
- name: verify git tag vs. version

ml-agents-envs/setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ def run(self):
2929
sys.exit(info)
3030

3131

32+
# Get the long description from the README file
33+
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
34+
long_description = f.read()
35+
3236
setup(
3337
name="mlagents_envs",
3438
version=VERSION,
3539
description="Unity Machine Learning Agents Interface",
40+
long_description=long_description,
41+
long_description_content_type="text/markdown",
3642
url="https://github.com/Unity-Technologies/ml-agents",
3743
author="Unity Technologies",
3844
author_email="[email protected]",

0 commit comments

Comments
 (0)