Skip to content

Commit 6a7e0ae

Browse files
Add MANIFEST.in to support python -m build and add sdist to pypi (#563)
1 parent ac78802 commit 6a7e0ae

File tree

10 files changed

+66
-33
lines changed

10 files changed

+66
-33
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- uses: actions/setup-python@v5
2929
with:
30-
python-version: '3.10'
30+
python-version: '3.12'
3131
- uses: pre-commit/[email protected]
3232

3333
build-scratch:
@@ -308,9 +308,9 @@ jobs:
308308

309309
- run: ls
310310

311-
- name: Build
311+
- name: Install ALE wheel
312312
# wildcarding doesn't work for some reason, therefore, update the project version here
313-
run: python -m pip install ale_py-0.10.0-${{ matrix.wheel-name }}.whl
313+
run: python -m pip install ale_py-0.10.1-${{ matrix.wheel-name }}.whl
314314

315315
- name: Install Gymnasium and pytest
316316
run: python -m pip install gymnasium>=1.0.0a2 pytest

.github/workflows/pypi.yml

+28-7
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,40 @@ jobs:
8686
id-token: write
8787

8888
steps:
89+
# create the `ale_py-*.*.*.tar.gz` for source building
90+
- uses: actions/checkout@v4
91+
- uses: actions/setup-python@v5
92+
with:
93+
python-version: '3.12'
94+
- run: pip install setuptools
95+
- run: python setup.py sdist
96+
97+
- uses: actions/download-artifact@v4
98+
with:
99+
name: wheels-windows-latest-AMD64
100+
path: dist
101+
102+
- uses: actions/download-artifact@v4
103+
with:
104+
name: wheels-ubuntu-latest-x86_64
105+
path: dist
106+
107+
- uses: actions/download-artifact@v4
108+
with:
109+
name: wheels-macos-12-x86_64
110+
path: dist
111+
89112
- uses: actions/download-artifact@v4
90113
with:
91-
name: |
92-
wheels-windows-latest-AMD64/
93-
wheels-ubuntu-latest-x86_64/
94-
wheels-macos-12-x86_64/
95-
wheels-macos-12-arm64/
96-
path: wheels
114+
name: wheels-macos-12-arm64
115+
path: dist
116+
117+
- run: ls dist/
97118

98119
- name: Publish to PyPi test
99120
uses: pypa/gh-action-pypi-publish@release/v1
100121
with:
101122
user: __token__
102123
password: ${{ secrets.PYPI_TOKEN }}
103-
packages-dir: wheels/
124+
packages-dir: dist/
104125
print-hash: true

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
9+
## [0.10.1](https://github.com/Farama-Foundation/Arcade-Learning-Environment/compare/v0.10.0...v0.10.1) - 2024-10-26
10+
11+
Revert change to requirements that `numpy < 2.0` and add support for building from source distribution, `tar.gz` (though not recommended).
12+
813
## [0.10.0](https://github.com/Farama-Foundation/Arcade-Learning-Environment/compare/v0.9.1...v0.10.0) - 2024-10-23
914

1015
In v0.10, ALE now has its own dedicated website, https://ale.farama.org/ with Atari's documentation being moved from Gymnasium.

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ project(ale VERSION ${ALE_DEFAULT_VERSION}
6565
add_subdirectory(src/ale)
6666

6767
# Only include tests in the main project
68-
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
69-
enable_testing()
70-
add_subdirectory(tests)
71-
endif()
68+
# if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
69+
# enable_testing()
70+
# add_subdirectory(tests)
71+
# endif()

MANIFEST.in

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# MANIFEST.in
2+
include version.txt
3+
include vcpkg.json
4+
include CMakeLists.txt
5+
recursive-include cmake *
6+
include scripts/*
7+
recursive-include src *

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ visualization
6060
:hidden:
6161
:caption: Development
6262
63-
Github <https://github.com/Farama-Foundation/arcade-Learning-Environment>
63+
Github <https://github.com/Farama-Foundation/Arcade-Learning-Environment>
6464
release_notes/index
65-
Contribute to the Docs <https://github.com/Farama-Foundation/arcade-Learning-Environment/blob/main/docs/README.md>
65+
Contribute to the Docs <https://github.com/Farama-Foundation/Arcade-Learning-Environment/blob/main/docs/README.md>
6666
```

docs/release_notes/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Release Notes
77

88
```{eval-rst}
99
.. changelog::
10-
:github: https://github.com/Farama-Foundation/Arcade-Learning-Environment
10+
:github: https://github.com/Farama-Foundation/Arcade-Learning-Environment/releases
1111
:pypi: https://pypi.org/project/ale-py/
1212
:changelog-url:
1313
```

pyproject.toml

+14-14
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ requires-python = ">=3.8"
1414
license = {text = "GPLv2"}
1515
keywords = ["reinforcement-learning", "arcade-learning-environment", "atari"]
1616
authors = [
17-
{name = "Marc G. Bellemare"},
18-
{name = "Yavar Naddaf"},
19-
{name = "Joel Veness"},
20-
{name = "Michael Bowling"},
17+
{name = "Marc G. Bellemare"},
18+
{name = "Yavar Naddaf"},
19+
{name = "Joel Veness"},
20+
{name = "Michael Bowling"},
2121
]
2222
maintainers = [
23-
{name = "Farama Foundation", email = "[email protected]"},
24-
{name = "Jesse Farebrother", email = "[email protected]"},
23+
{name = "Farama Foundation", email = "[email protected]"},
24+
{name = "Jesse Farebrother", email = "[email protected]"},
2525
]
2626
classifiers = [
2727
"Development Status :: 5 - Production/Stable",
@@ -37,17 +37,17 @@ classifiers = [
3737
"Topic :: Scientific/Engineering :: Artificial Intelligence",
3838
]
3939
dependencies = [
40-
"numpy<2.0",
41-
"importlib-metadata>=4.10.0; python_version < '3.10'",
42-
"importlib-resources; python_version < '3.9'",
43-
"typing-extensions; python_version < '3.11'"
40+
"numpy>1.20",
41+
"importlib-metadata>=4.10.0; python_version < '3.10'",
42+
"importlib-resources; python_version < '3.9'",
43+
"typing-extensions; python_version < '3.11'"
4444
]
4545
dynamic = ["version"]
4646

4747
[project.optional-dependencies]
4848
test = [
49-
"pytest>=7.0",
50-
"gymnasium>=1.0.0a1",
49+
"pytest>=7.0",
50+
"gymnasium>=1.0.0a1",
5151
]
5252

5353
[project.urls]
@@ -57,8 +57,8 @@ changelog = "https://github.com/Farama-Foundation/Arcade-Learning-Environment/bl
5757

5858
[tool.setuptools]
5959
packages = [
60-
"ale_py",
61-
"ale_py.roms",
60+
"ale_py",
61+
"ale_py.roms",
6262
]
6363
package-dir = {ale_py = "src/ale/python"}
6464
package-data = {"ale_py" = ["py.typed", "*.pyi", "**/*.pyi"], "ale_py.roms" = ["md5.json", "*.bin"]}

vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
33
"name": "arcade-learning-environment",
4-
"version": "0.10.0",
4+
"version": "0.10.1",
55
"dependencies": [
66
"zlib"
77
],

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.0
1+
0.10.1

0 commit comments

Comments
 (0)