Skip to content

Commit 10c34e6

Browse files
committed
Version 1.3.0
1 parent dd13053 commit 10c34e6

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Unreleased changes in development
2-
---------------------------------
1+
Version 1.3.0 (September 18, 2022)
2+
----------------------------------
33

44
* Deliverability checks now check for 'v=spf1 -all' SPF records as a way to reject more bad domains.
55
* Special use domain names now raise EmailSyntaxError instead of EmailUndeliverableError since they are performed even if check_deliverability is off.

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -425,17 +425,15 @@ The package is distributed as a universal wheel and as a source package.
425425

426426
To release:
427427

428-
* Update the version number.
429-
* Follow the steps below to publish source and a universal wheel to pypi.
428+
* Update CHANGELOG.md.
429+
* Update the version number in setup.cfg.
430+
* Make a commit with the new version number.
431+
* Follow the steps below to publish source and a universal wheel to pypi and tag the release.
430432
* Make a release at https://github.com/JoshData/python-email-validator/releases/new.
431433

432434
```sh
433-
pip3 install twine
434-
rm -rf dist
435-
python3 setup.py sdist
436-
python3 setup.py bdist_wheel
437-
twine upload dist/* # username: __token__ password: pypi API token
438-
git tag v1.0.XXX # replace with version in setup.cfg
435+
./release_to_pypi.sh
436+
git tag v$(grep version setup.cfg | sed "s/.*= //")
439437
git push --tags
440438
```
441439

release_to_pypi.sh

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

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
name = email_validator
3-
version = 1.2.1
4-
description = A robust email syntax and deliverability validation library.
3+
version = 1.3.0
4+
description = A robust email address syntax and deliverability validation library.
55
long_description = file: README.md
66
long_description_content_type = text/markdown
77
url = https://github.com/JoshData/python-email-validator

0 commit comments

Comments
 (0)