mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
* Deprecate pyscript output attribute * Update code blocks so they work * Small tweaks to styling and use html to warning * Fix broken test from bad conflict resolution * lowercase pyodide
17 lines
1.6 KiB
Markdown
17 lines
1.6 KiB
Markdown
# `version_info`
|
|
|
|
`PyScript.version_info` is a `namedtuple` representing the current version of PyScript. It can be used to compare whether current version precedes or follows a desired version. For a human-readable version of the same info, see [`__version__`](__version__.md)
|
|
|
|
```sh
|
|
>>> pyscript.version_info
|
|
version_info(year=2023, month=2, minor=1, releaselevel='dev')
|
|
```
|
|
|
|
## Version Fields
|
|
| **parameter** | **CalVer equivalent field** | **example value** | **description** |
|
|
|-----------------|-----------------------------|---------------|------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| `year` | Full year (YYYY) | 2023 | The year of the release; when printed or represented as a string, always written with 4 digits |
|
|
| `month` | Short Month (MM) | 2 | The month of the release; when printed or represented as a string, written with 1 or 2 digits as necessary |
|
|
| `minor` | | 1 | The incremental number of the release for this month; when printed or represented as a string, written with 1 or two digits as necessary |
|
|
| `releaselevel` | | 'dev' | A string representing the qualifications of this build |
|