diff --git a/.github/workflows/publish_pypi.yaml b/.github/workflows/publish_pypi.yaml index db2cc2a66c..ffa4ed9a3b 100644 --- a/.github/workflows/publish_pypi.yaml +++ b/.github/workflows/publish_pypi.yaml @@ -21,7 +21,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v2 with: - python-version: 3.10 + python-version: 3.10.x - name: Install dependencies run: pip install setuptools wheel twine --user - name: verify git tag vs. version @@ -35,14 +35,14 @@ jobs: python setup.py bdist_wheel - name: Publish distribution 📦 to Test PyPI if: startsWith(github.ref, 'refs/tags') && contains(github.ref, 'test') - uses: actions/gh-action-pypi-publish@717ba43cfbb0387f6ce311b169a825772f54d295 + uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.TEST_PYPI_PASSWORD }} repository_url: https://test.pypi.org/legacy/ packages_dir: ${{ matrix.package-path }}/dist/ - name: Publish distribution 📦 to Production PyPI if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, 'test') - uses: actions/gh-action-pypi-publish@717ba43cfbb0387f6ce311b169a825772f54d295 + uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.PYPI_PASSWORD }} packages_dir: ${{ matrix.package-path }}/dist/ diff --git a/.github/workflows/publish_pypi_python_api.yaml b/.github/workflows/publish_pypi_python_api.yaml index 8591bb6aa0..72b5c36196 100644 --- a/.github/workflows/publish_pypi_python_api.yaml +++ b/.github/workflows/publish_pypi_python_api.yaml @@ -21,7 +21,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v2 with: - python-version: 3.10 + python-version: 3.10.x - name: Install dependencies run: pip install setuptools wheel twine --user - name: verify git tag vs. version diff --git a/ml-agents-envs/setup.py b/ml-agents-envs/setup.py index b1b13659cf..3fa6915437 100644 --- a/ml-agents-envs/setup.py +++ b/ml-agents-envs/setup.py @@ -29,10 +29,16 @@ def run(self): sys.exit(info) +# Get the long description from the README file +with open(os.path.join(here, "README.md"), encoding="utf-8") as f: + long_description = f.read() + setup( name="mlagents_envs", version=VERSION, description="Unity Machine Learning Agents Interface", + long_description=long_description, + long_description_content_type="text/markdown", url="https://github.com/Unity-Technologies/ml-agents", author="Unity Technologies", author_email="ML-Agents@unity3d.com",