Skip to content

Commit

Permalink
fix: make local installation work again with pip 23.2 and above
Browse files Browse the repository at this point in the history
Surprise, Python doesn't support `-SNAPSHOT` versions like Maven
does! Moreover, pip version 23.2 removed support for versions
which don't conform to PEP 440.

So we make the snapshot version conformant by using the `.dev`
suffix (equivalent to `.dev0`) which basically serves the same
purpose as `-SNAPSHOT`. By this, we make this snippet from the
README work again:

```sh
git clone https://github.com/miyuchina/mistletoe.git
cd mistletoe
pip3 install -e .
```
  • Loading branch information
pbodnar committed Dec 8, 2023
1 parent 3607e94 commit fb231b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mistletoe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Make mistletoe easier to import.
"""

__version__ = "1.3.0-SNAPSHOT"
__version__ = "1.3.0.dev"
__all__ = ['html_renderer', 'ast_renderer', 'block_token', 'block_tokenizer',
'span_token', 'span_tokenizer']

Expand Down

0 comments on commit fb231b1

Please sign in to comment.