forked from amnong/easywebdav
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
54 lines (50 loc) · 1.65 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
49
50
51
52
53
54
import os
import functools
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
with open(os.path.join(os.path.dirname(__file__), "aioeasywebdav", "__version__.py")) as version_file:
exec(version_file.read())
with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme_file:
DOC=readme_file.read()
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
tox.cmdline(args=args)
setup(
name="aioeasywebdav",
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.5",
],
description="A straight-forward WebDAV client, ported from easywebdav to use aiohttp.",
long_description=DOC,
license="ISC",
author="Andrew Leech",
author_email="[email protected]",
url="http://github.com/andrewleech/aioeasywebdav",
version=__version__, # noqa
packages=find_packages(exclude=["tests"]),
data_files = [],
install_requires=[
"aiohttp", "six"
],
tests_require=['tox'],
cmdclass={'test': Tox},
entry_points=dict(
console_scripts=[],
),
)