mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 18:50:43 -06:00
Daylin Morgan
30c756d3e7
This is a mostly small change albeit with addition of more embedded code from pypa/packaging to simplify supporting a requires-python check with PEP723 style syntax.
17 lines
348 B
Python
17 lines
348 B
Python
from viv import SpecifierSet, Version, toml_loads
|
|
|
|
|
|
def test_packaging():
|
|
assert Version("3.6") in SpecifierSet(">=3.6")
|
|
|
|
|
|
def test_tomli():
|
|
assert {"requires-python": ">3.6", "dependencies": ["rich", "typer"]} == toml_loads(
|
|
"""
|
|
requires-python = ">3.6"
|
|
dependencies = [
|
|
"rich",
|
|
"typer"
|
|
]
|
|
"""
|
|
)
|