This commit is contained in:
László Károlyi 2019-03-02 00:59:23 +01:00
parent 8240434f4d
commit 7cb867125f
Signed by: karolyi
GPG Key ID: 2DCAF25E55735BFE
5 changed files with 36 additions and 12 deletions

View File

@ -13,5 +13,5 @@ install:
# command to run tests
script:
- isort -c --skip-glob=venv
- flake8 tests/ validate_email/
- flake8 tests/ validate_email/ setup.py
- python -m unittest discover -v

10
AUTHORS
View File

@ -1,6 +1,4 @@
validate_email was extended and updated for use with Python 3
by Ben Baert <ben_b@gmx.com> in May 2018.
validate_email was created by Syrus Akbary <me@syrusakbary.com> in
April 2012.
This package is based on the work of Noel Bush <noel@platformer.org>
https://github.com/noelbush/py_email_validation
- March 2019: extending and upgrading with blacklists by László Károlyi <laszlo@karolyi.hu
- validate_email was extended and updated for use with Python 3 by Ben Baert <ben_b@gmx.com> in May 2018.
- validate_email was created by Syrus Akbary <me@syrusakbary.com> in April 2012.
- This package is based on the work of Noel Bush <noel@platformer.org> https://github.com/noelbush/py_email_validation

View File

@ -1,3 +1,9 @@
include AUTHORS
include LICENSE
include README.rst
include README.rst
recursive-include validate_email *
prune tests
recursive-exclude * __pycache__
recursive-exclude * *.pyc
recursive-exclude * *.pyo
recursive-exclude * *.orig

View File

@ -7,7 +7,7 @@ py3-validate-email
py3-validate-email is a package for Python that check if an email is valid, properly formatted and really exists.
This module is for Python 3.6 and above!
INSTALLATION
============

View File

@ -1,8 +1,29 @@
from setuptools import find_packages, setup
from setuptools.command.develop import develop
from setuptools.command.install import install
class PostDevelopCommand(develop):
'Post-installation for development mode'
def run(self):
super().run()
with open('/tmp/test-develop', 'w') as fd:
fd.write(str(vars(self)))
class PostInstallCommand(install):
'Post-installation for installation mode'
def run(self):
super().run()
with open('/tmp/test-install', 'w') as fd:
fd.write(str(vars(self)))
setup(
name='py3-validate-email',
version='0.6',
version='0.1',
py_modules=('validate_email',),
install_requires=['dnspython'],
author='László Károlyi',
@ -11,7 +32,6 @@ setup(
long_description=open('README.rst').read(),
keywords='email validation verification mx verify',
url='http://github.com/karolyi/py3-validate-email',
download_url=(
'http://github.com/karolyi/py3-validate-email/archive/0.1.tar.gz'),
cmdclass=dict(develop=PostDevelopCommand, install=PostInstallCommand),
license='LGPL',
)