Testing
This commit is contained in:
parent
8240434f4d
commit
7cb867125f
|
@ -13,5 +13,5 @@ install:
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script:
|
script:
|
||||||
- isort -c --skip-glob=venv
|
- isort -c --skip-glob=venv
|
||||||
- flake8 tests/ validate_email/
|
- flake8 tests/ validate_email/ setup.py
|
||||||
- python -m unittest discover -v
|
- python -m unittest discover -v
|
||||||
|
|
10
AUTHORS
10
AUTHORS
|
@ -1,6 +1,4 @@
|
||||||
validate_email was extended and updated for use with Python 3
|
- March 2019: extending and upgrading with blacklists by László Károlyi <laszlo@karolyi.hu
|
||||||
by Ben Baert <ben_b@gmx.com> in May 2018.
|
- 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
|
- validate_email was created by Syrus Akbary <me@syrusakbary.com> in April 2012.
|
||||||
April 2012.
|
- This package is based on the work of Noel Bush <noel@platformer.org> https://github.com/noelbush/py_email_validation
|
||||||
This package is based on the work of Noel Bush <noel@platformer.org>
|
|
||||||
https://github.com/noelbush/py_email_validation
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
include AUTHORS
|
include AUTHORS
|
||||||
include LICENSE
|
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
|
||||||
|
|
|
@ -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.
|
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
|
INSTALLATION
|
||||||
============
|
============
|
||||||
|
|
26
setup.py
26
setup.py
|
@ -1,8 +1,29 @@
|
||||||
from setuptools import find_packages, setup
|
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(
|
setup(
|
||||||
name='py3-validate-email',
|
name='py3-validate-email',
|
||||||
version='0.6',
|
version='0.1',
|
||||||
py_modules=('validate_email',),
|
py_modules=('validate_email',),
|
||||||
install_requires=['dnspython'],
|
install_requires=['dnspython'],
|
||||||
author='László Károlyi',
|
author='László Károlyi',
|
||||||
|
@ -11,7 +32,6 @@ setup(
|
||||||
long_description=open('README.rst').read(),
|
long_description=open('README.rst').read(),
|
||||||
keywords='email validation verification mx verify',
|
keywords='email validation verification mx verify',
|
||||||
url='http://github.com/karolyi/py3-validate-email',
|
url='http://github.com/karolyi/py3-validate-email',
|
||||||
download_url=(
|
cmdclass=dict(develop=PostDevelopCommand, install=PostInstallCommand),
|
||||||
'http://github.com/karolyi/py3-validate-email/archive/0.1.tar.gz'),
|
|
||||||
license='LGPL',
|
license='LGPL',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue