Skip to content

Fix ParamSpec ellipsis default for <3.10 #590

Fix ParamSpec ellipsis default for <3.10

Fix ParamSpec ellipsis default for <3.10 #590

Workflow file for this run

name: Test packaging
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
wheel:
name: Test wheel install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3
- name: Install pypa/build
run: |
# Be wary of running `pip install` here, since it becomes easy for us to
# accidentally pick up typing_extensions as installed by a dependency
python -m pip install --upgrade build
python -m pip list
- name: Build and install wheel
run: |
python -m build .
export path_to_file=$(find dist -type f -name "typing_extensions-*.whl")
echo "::notice::Installing wheel: $path_to_file"
pip install -vvv $path_to_file
python -m pip list
- name: Attempt to import typing_extensions
run: python -c "import typing_extensions; print(typing_extensions.__all__)"
sdist:
name: Test sdist install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3
- name: Install pypa/build
run: |
# Be wary of running `pip install` here, since it becomes easy for us to
# accidentally pick up typing_extensions as installed by a dependency
python -m pip install --upgrade build
python -m pip list
- name: Build and install sdist
run: |
python -m build .
export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
echo "::notice::Installing sdist: $path_to_file"
pip install -vvv $path_to_file
python -m pip list
- name: Attempt to import typing_extensions
run: python -c "import typing_extensions; print(typing_extensions.__all__)"