From 7cb867125f33d036c2adaaea444bc345317cc81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20K=C3=A1rolyi?= Date: Sat, 2 Mar 2019 00:59:23 +0100 Subject: [PATCH] Testing --- .travis.yml | 2 +- AUTHORS | 10 ++++------ MANIFEST.in | 8 +++++++- README.rst | 2 +- setup.py | 26 +++++++++++++++++++++++--- 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 11510ce..42adb75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/AUTHORS b/AUTHORS index 0b56cf3..df09f87 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,6 +1,4 @@ -validate_email was extended and updated for use with Python 3 -by Ben Baert in May 2018. -validate_email was created by Syrus Akbary in -April 2012. -This package is based on the work of Noel Bush -https://github.com/noelbush/py_email_validation +- March 2019: extending and upgrading with blacklists by László Károlyi in May 2018. +- validate_email was created by Syrus Akbary in April 2012. +- This package is based on the work of Noel Bush https://github.com/noelbush/py_email_validation diff --git a/MANIFEST.in b/MANIFEST.in index 3511134..67ba3f8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,9 @@ include AUTHORS include LICENSE -include README.rst \ No newline at end of file +include README.rst +recursive-include validate_email * +prune tests +recursive-exclude * __pycache__ +recursive-exclude * *.pyc +recursive-exclude * *.pyo +recursive-exclude * *.orig diff --git a/README.rst b/README.rst index 3cb4b61..02282d1 100644 --- a/README.rst +++ b/README.rst @@ -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 ============ diff --git a/setup.py b/setup.py index 6a95126..dc7cf6f 100644 --- a/setup.py +++ b/setup.py @@ -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', )