Skip to content

Commit d2e61c7

Browse files
committed
Remove test folder in CI to not include it in the pypi package
1 parent da186c3 commit d2e61c7

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ jobs:
417417
- name: Install uv
418418
run: pip install uv
419419

420+
- name: Remove test folder to not include it in package
421+
run: rm -rf test
422+
420423
- name: Build package
421424
run: uv build
422425

.github/workflows/docker-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
docker exec -i test_container bash -c "cd python-sc2 && uv run python test/run_example_bots_vs_computer.py"
174174
175175
- name: Login to DockerHub
176-
if: github.ref == 'refs/heads/develop'
176+
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
177177
uses: docker/login-action@v2
178178
with:
179179
username: ${{ secrets.DOCKERHUB_USERNAME }}

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ classifiers = [
1616
"Operating System :: POSIX :: Linux",
1717
"Operating System :: Microsoft :: Windows",
1818
"Operating System :: MacOS :: MacOS X",
19-
"License :: OSI Approved :: MIT License",
2019
"Programming Language :: Python :: 3",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
@@ -26,6 +25,7 @@ classifiers = [
2625
"Programming Language :: Python :: 3.14",
2726
]
2827
readme = "README.md"
28+
license-files = ["LICENSE"]
2929

3030
dependencies = [
3131
"aiohttp>=3.11.10",
@@ -70,7 +70,6 @@ dev = [
7070
]
7171

7272
[tool.setuptools]
73-
license-files = []
7473
package-dir = { sc2 = "sc2", s2clientprotocol = "s2clientprotocol" }
7574

7675
[tool.setuptools.package-data]

0 commit comments

Comments
 (0)