-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (35 loc) · 1.19 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
import subprocess
from setuptools import setup
from setuptools.command.test import test as TestCommand
class TestSuite(TestCommand):
user_options = []
def initialize_options(self):
TestCommand.initialize_options(self)
def run_tests(self):
subprocess.check_call(['docker-compose', 'build', 'test'])
subprocess.check_call(['docker-compose', 'run', 'test'])
args = dict(
name='aiobasex',
version='0.0.1',
description=' non-blocking client for BaseX, '
'based on python/asyncio platform',
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Development Status :: 4 - Beta',
'Operating System :: POSIX',
'Topic :: Database'
],
author='Summer Babe',
author_email='[email protected]',
url='https://github.com/mksh/aiobasex/',
packages=['aiobasex'],
license='MIT',
cmdclass={'test': TestSuite},
)
setup(**args)