py3-validate-email/setup.py

38 lines
1.0 KiB
Python
Raw Normal View History

2019-03-02 01:02:37 +01:00
from setuptools import setup
2019-03-02 00:59:23 +01:00
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)))
2012-04-07 23:05:57 +02:00
2018-05-31 13:13:28 +02:00
setup(
2019-03-01 23:29:01 +01:00
name='py3-validate-email',
2019-03-02 00:59:23 +01:00
version='0.1',
2019-03-01 23:29:01 +01:00
py_modules=('validate_email',),
install_requires=['dnspython'],
2019-03-01 23:29:01 +01:00
author='László Károlyi',
2019-03-01 20:37:52 +01:00
author_email='laszlo@karolyi.hu',
2019-03-01 23:29:01 +01:00
description='Email validator with regex and SMTP checking.',
2019-03-01 20:37:52 +01:00
long_description=open('README.rst').read(),
keywords='email validation verification mx verify',
2019-03-01 23:29:01 +01:00
url='http://github.com/karolyi/py3-validate-email',
2019-03-02 00:59:23 +01:00
cmdclass=dict(develop=PostDevelopCommand, install=PostInstallCommand),
2019-03-01 20:37:52 +01:00
license='LGPL',
2018-05-31 13:13:28 +02:00
)