Skip to content

Commit

Permalink
Merge pull request #3 from vwxyzjn/version
Browse files Browse the repository at this point in the history
Setup github actions to publish on PyPi
  • Loading branch information
vwxyzjn authored Jan 7, 2022
2 parents 6241be2 + ed1ba15 commit 9e274ed
Show file tree
Hide file tree
Showing 9 changed files with 2,892 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gym_robotics/_version.py export-subst
28 changes: 28 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build

on:
push:
paths-ignore:
- 'README.md'
- 'docker/**'
jobs:
build-n-publish:
if: startsWith(github.ref, 'refs/tags')
name: Build
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Build a source tarball
run: python setup.py sdist
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include versioneer.py
include gym_robotics/_version.py
5 changes: 5 additions & 0 deletions gym_robotics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,8 @@ def _merge(a, b):
),
max_episode_steps=100,
)


from . import _version

__version__ = _version.get_versions()["version"]
Loading

0 comments on commit 9e274ed

Please sign in to comment.