-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
79 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Test packaging | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
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: | | ||
cd typing_extensions | ||
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: | | ||
cd typing_extensions | ||
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__)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include CHANGELOG LICENSE README.rst | ||
include src_py3/typing_extensions.py | ||
include src_py3/test_typing_extensions.py | ||
include src/typing_extensions.py | ||
include src/test_typing_extensions.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,3 @@ classifiers = [ | |
[[project.authors]] | ||
name = "Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Michael Lee" | ||
email = "[email protected]" | ||
|
||
# This tells Flit that the module is stored in the src_py3 directory. | ||
[tool.flit.module] | ||
name = "src_py3/typing_extensions" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters