Skip to content

Commit 671a25e

Browse files
authored
Add Python 3.10 Wheel (#187)
* add py310 * test * use pyenv instead of github action provided python * test * bump version
1 parent e399e58 commit 671a25e

File tree

8 files changed

+17
-10
lines changed

8 files changed

+17
-10
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.python-version }}
1212
strategy:
1313
matrix:
14-
python-version: [3.7, 3.8, 3.9]
14+
python-version: ['3.7', '3.8', '3.9', '3.10']
1515
steps:
1616
- name: Cancel previous run
1717
uses: styfle/cancel-workflow-action@0.9.1
@@ -22,9 +22,11 @@ jobs:
2222
with:
2323
go-version: '^1.17.3'
2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
26-
with:
27-
python-version: ${{ matrix.python-version }}
25+
run: |
26+
pyenv global ${{ matrix.python-version }}-dev
27+
# uses: actions/setup-python@v2
28+
# with:
29+
# python-version: ${{ matrix.python-version }}
2830
- name: Install dependencies
2931
run: |
3032
python -m pip install --upgrade pip setuptools wheel

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ If you find EnvPool useful, please cite it in your publications.
188188

189189
```latex
190190
@article{envpool,
191-
title={EnvPool: A Highly Parallel Reinforcement Learning Environment Execution Engine},
191+
title={Env{P}ool: A Highly Parallel Reinforcement Learning Environment Execution Engine},
192192
author={Weng, Jiayi and Lin, Min and Huang, Shengyi and Liu, Bo and Makoviichuk, Denys and Makoviychuk, Viktor and Liu, Zichen and Song, Yufan and Luo, Ting and Jiang, Yukun and Xu, Zhongwen and Yan, Shuicheng},
193193
journal={arXiv preprint arXiv:2206.10558},
194194
year={2022}

docker/dev-cn.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG HOME=/root
55
ARG PATH=$PATH:$HOME/go/bin
66

77
RUN apt-get update \
8-
&& apt-get install -y python3-pip python3-dev golang-1.16 clang-format-11 git wget \
8+
&& apt-get install -y python3-pip python3-dev golang-1.16 clang-format-11 git wget swig \
99
&& rm -rf /var/lib/apt/lists/*
1010
RUN ln -s /usr/bin/python3 /usr/bin/python
1111
RUN ln -sf /usr/lib/go-1.16/bin/go /usr/bin/go

docker/dev.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG HOME=/root
55
ARG PATH=$PATH:$HOME/go/bin
66

77
RUN apt-get update \
8-
&& apt-get install -y python3-pip python3-dev golang-1.16 clang-format-11 git wget \
8+
&& apt-get install -y python3-pip python3-dev golang-1.16 clang-format-11 git wget swig \
99
&& rm -rf /var/lib/apt/lists/*
1010
RUN ln -s /usr/bin/python3 /usr/bin/python
1111
RUN ln -sf /usr/lib/go-1.16/bin/go /usr/bin/go

docker/release.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y software-properties-common && add-apt-r
1212
RUN apt-get update \
1313
&& apt-get install -y git curl wget gcc-9 g++-9 build-essential patchelf make libssl-dev zlib1g-dev \
1414
libbz2-dev libreadline-dev libsqlite3-dev llvm \
15-
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
15+
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev swig \
1616
python3.7 python3.8 python3.9 python3.10 \
1717
python3.7-dev python3.8-dev python3.9-dev python3.10-dev \
1818
python3.8-distutils python3.9-distutils python3.10-distutils

docs/content/build.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ It also requires **Python version >= 3.7**:
8686
sudo apt install -y python3-dev python3-pip
8787
sudo ln -sf /usr/bin/python3 /usr/bin/python
8888
89+
Install CUDA to enable XLA: see https://developer.nvidia.com/cuda-downloads
90+
91+
Install other dependencies: see
92+
`Dockerfile <https://github.com/sail-sg/envpool/tree/main/docker>`_.
93+
8994

9095
Build Wheel
9196
-----------

envpool/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
register,
2424
)
2525

26-
__version__ = "0.6.3.post1"
26+
__version__ = "0.6.4"
2727
__all__ = [
2828
"register",
2929
"make",

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = envpool
3-
version = 0.6.3.post1
3+
version = 0.6.4
44
author = "EnvPool Contributors"
55
author_email = "sail@sea.com"
66
description = "C++-based high-performance parallel environment execution engine (vectorized env) for general RL environments."

0 commit comments

Comments
 (0)