Skip to content

Commit

Permalink
Build wheels without using setup.py (python -m build) (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower authored Jul 18, 2023
1 parent c2d3a72 commit b9e95b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
with:
python-version: '3.x'
- name: Install dependencies
run: python -m pip install --upgrade setuptools wheel
run: python -m pip install --upgrade setuptools wheel build
- name: Build wheels
run: python setup.py sdist bdist_wheel
run: python -m build --sdist --wheel
- name: Store wheels
uses: actions/upload-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions tests/test_dm_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def test_dm_control_suite_envs():
"It seems a Box observation space is an image but the upper and lower bounds are not in [0, 255]. Generally, CNN policies assume observations are within that range, so you may encounter an issue if the observation values are not.",
"arrays to stack must be passed as a 'sequence' type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.",
"Calling `env.close()` on the closed environment should be allowed, but it raised an exception: _data",
"Calling `env.close()` on the closed environment should be allowed, but it raised an exception: 'Physics' object has no attribute '_data'",
]
]
CHECK_ENV_IGNORE_WARNINGS.append(
Expand Down

0 comments on commit b9e95b8

Please sign in to comment.