-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
48 lines (42 loc) · 1.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
with open('README.rst', 'rb') as f:
long_desc = f.read().decode('utf8')
requires=[]
if sys.version_info < (3,4):
requires.append('asyncio')
setup(name='asyncdns2',
version='0.1.3',
description='Pure Python asynchronous DNS via asyncio',
long_description=long_desc,
author='Alastair Houghton',
author_email='[email protected]',
url='https://alastairs-place.net/projects/asyncdns',
license='MIT License',
packages=['asyncdns'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: Name Service (DNS)',
'Framework :: AsyncIO'
],
package_data = {
'asyncdns': ['named.root']
},
scripts=['scripts/pydig'],
install_requires=requires,
tests_require=['pytest'],
cmdclass={
'test': PyTest
},
provides=['asyncdns2'])