mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/python.org/typing_extensions/package.yml
new file: projects/python.org/typing_extensions/test.py
This commit is contained in:
parent
cee8ac5c78
commit
6212446db6
2 changed files with 34 additions and 0 deletions
27
projects/python.org/typing_extensions/package.yml
Normal file
27
projects/python.org/typing_extensions/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/python/typing_extensions/archive/{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
github: python/typing_extensions
|
||||||
|
runtime:
|
||||||
|
env:
|
||||||
|
PYTHONPATH: "{{prefix}}/lib/python/site-packages:$PYTHONPATH"
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
flit.pypa.io: '*'
|
||||||
|
python.org: ^3.11
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
script:
|
||||||
|
- flit build --format wheel
|
||||||
|
- python -m pip install --prefix={{prefix}} dist/typing_extensions-*.whl
|
||||||
|
- run: |
|
||||||
|
ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
||||||
|
ln -s python{{deps.python.org.version.major}} python
|
||||||
|
working-directory: "{{prefix}}/lib"
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
python.org: ^3.11
|
||||||
|
mypy-lang.org: '*'
|
||||||
|
script:
|
||||||
|
- python -c "import typing_extensions"
|
||||||
|
- mypy test.py | grep "Success"
|
7
projects/python.org/typing_extensions/test.py
Normal file
7
projects/python.org/typing_extensions/test.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import typing_extensions
|
||||||
|
|
||||||
|
class Movie(typing_extensions.TypedDict):
|
||||||
|
title: str
|
||||||
|
year: typing_extensions.NotRequired[int]
|
||||||
|
|
||||||
|
m = Movie(title="Grease")
|
Loading…
Reference in a new issue