Skip to content

Commit b2199d6

Browse files
committed
adopt myst, mdformat
- markdown for docs - use mdformat to format markdown (way easier than prettier) can't use colon_fenc with mdformat_myst yet
1 parent 1e5bd42 commit b2199d6

25 files changed

+1610
-1694
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
exclude: ^zmq/eventloop/minitornado/
22
repos:
3-
- repo: https://github.com/pre-commit/mirrors-prettier
4-
rev: v2.5.1
3+
- repo: https://github.com/executablebooks/mdformat
4+
rev: 0.7.13 # Use the ref you want to point at
55
hooks:
6-
- id: prettier
6+
- id: mdformat
7+
# Optionally add plugins
8+
additional_dependencies:
9+
- mdformat-black
10+
- mdformat-myst
711
- repo: https://github.com/PyCQA/flake8
812
rev: 4.0.1
913
hooks:

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ For more detail on building pyzmq, see [our Wiki](https://github.com/zeromq/pyzm
4848

4949
We build wheels for macOS, Windows, and Linux, so you can get a binary on those platforms with:
5050

51-
pip install pyzmq
51+
```
52+
pip install pyzmq
53+
```
5254

5355
but compiling from source with `pip install pyzmq` should work in most environments.
5456
Especially on macOS, make sure you are using the latest pip (≥ 8), or it may not find the right wheels.
@@ -57,17 +59,21 @@ If the wheel doesn't work for some reason, or you want to force pyzmq to be comp
5759
(this is often preferable if you already have libzmq installed and configured the way you want it),
5860
you can force installation with:
5961

60-
pip install --no-binary=:all: pyzmq
62+
```
63+
pip install --no-binary=:all: pyzmq
64+
```
6165

6266
When compiling pyzmq (e.g. installing with pip on Linux),
6367
it is generally recommended that zeromq be installed separately,
6468
via homebrew, apt, yum, etc:
6569

66-
# Debian-based
67-
sudo apt-get install libzmq3-dev
70+
```
71+
# Debian-based
72+
sudo apt-get install libzmq3-dev
6873
69-
# RHEL-based
70-
sudo yum install libzmq3-devel
74+
# RHEL-based
75+
sudo yum install libzmq3-devel
76+
```
7177

7278
If this is not available, pyzmq will _try_ to build libzmq as a Python Extension,
7379
though this is not guaranteed to work.
@@ -79,9 +85,11 @@ Building pyzmq from the git repo (including release tags on GitHub) requires Cyt
7985
pyzmq 16 drops support Python 2.6 and 3.2.
8086
If you need to use one of those Python versions, you can pin your pyzmq version to before 16:
8187

82-
pip install 'pyzmq<16'
88+
```
89+
pip install 'pyzmq<16'
90+
```
8391

84-
For libzmq 2.0.x, use 'pyzmq<2.1'
92+
For libzmq 2.0.x, use 'pyzmq\<2.1'
8593

8694
pyzmq-2.1.11 was the last version of pyzmq to support Python 2.5,
8795
and pyzmq ≥ 2.2.0 requires Python ≥ 2.6.

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cython>=0.29
22
enum-tools[sphinx]>=0.9
33
gevent
4+
myst-parser[linkify]
45
pygments>=2.6
56
sphinx>=3.0.4
67
sphinx-rtd-theme==0.5.*

0 commit comments

Comments
 (0)