Skip to content

Commit db0ebfe

Browse files
committed
Use Python 'build' package to build the distribution and update README instead of setuptools
1 parent 82413f5 commit db0ebfe

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Key features:
2323
Blocks unsafe characters for your safety.
2424
* Normalizes email addresses (important for internationalized
2525
addresses! see below).
26+
* Python type annotations are used.
2627

2728
This library does NOT permit obsolete forms of email addresses, so
2829
if you need strict validation against the email specs exactly, use
@@ -411,13 +412,13 @@ To release:
411412

412413
* Update CHANGELOG.md.
413414
* Update the version number in setup.cfg.
414-
* Make & push a commit with the new version number.
415-
* Make & push a tag (`git tag v... && git push --tags`).
415+
* Make & push a commit with the new version number and make sure tests pass.
416+
* Make & push a tag (see command below).
416417
* Make a release at https://github.com/JoshData/python-email-validator/releases/new.
417-
* Follow the steps below to publish source and a universal wheel to pypi.
418+
* Publish a source and wheel distribution to pypi (see command below).
418419

419420
```sh
420-
./release_to_pypi.sh
421421
git tag v$(grep version setup.cfg | sed "s/.*= //")
422422
git push --tags
423+
./release_to_pypi.sh
423424
```

release_to_pypi.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
2-
pip3 install --upgrade twine
2+
pip3 install --upgrade build twine
33
rm -rf dist
4-
python3 setup.py sdist
5-
python3 setup.py bdist_wheel
4+
python3 -m build
65
twine upload -u __token__ dist/* # username: __token__ password: pypi API token

0 commit comments

Comments
 (0)