From 6c2aecd2770fcedb7a7583ef2aadc886ff529f8d Mon Sep 17 00:00:00 2001 From: "evgeny.ezhov" Date: Mon, 11 Sep 2017 19:36:30 +0300 Subject: [PATCH] prepare to publish --- LICENSE.md | 2 +- README.rst | 2 +- setup.py | 14 +++++++------- tests/test_client.py | 2 +- wdc | 17 ++++++++++------- {webdav2 => webdav3}/__init__.py | 0 {webdav2 => webdav3}/client.py | 6 +++--- {webdav2 => webdav3}/connection.py | 4 ++-- {webdav2 => webdav3}/exceptions.py | 0 {webdav2 => webdav3}/urn.py | 0 10 files changed, 25 insertions(+), 22 deletions(-) rename {webdav2 => webdav3}/__init__.py (100%) rename {webdav2 => webdav3}/client.py (99%) rename {webdav2 => webdav3}/connection.py (97%) rename {webdav2 => webdav3}/exceptions.py (100%) rename {webdav2 => webdav3}/urn.py (100%) diff --git a/LICENSE.md b/LICENSE.md index 44f0948..3d19f99 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -COPYRIGHT AND PERMISSION NOTICE +python setup.py register -r pypitestCOPYRIGHT AND PERMISSION NOTICE Copyright (c) 2016, The WDC Project, and many contributors, see the THANKS file. diff --git a/README.rst b/README.rst index f1bb1e2..7bc61ad 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -webdavclient2 +webdavclient3 ============ Based on https://github.com/designerror/webdav-client-python diff --git a/setup.py b/setup.py index c7b7a0a..36bf900 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- import sys + from setuptools import setup, find_packages - -from setuptools.command.test import test as TestCommand from setuptools.command.install import install as InstallCommand +from setuptools.command.test import test as TestCommand -version = "0.1" +version = "0.2" requirements = "libxml2-dev libxslt-dev python-dev" @@ -43,7 +43,7 @@ class Test(TestCommand): sys.exit(errno) setup( - name='webdavclient2', + name='webdavclient3', version=version, packages=find_packages(), requires=['python (>= 2.7.6)'], @@ -53,9 +53,9 @@ setup( cmdclass={'install': Install, 'test': Test}, description='WebDAV client, based on original package https://github.com/designerror/webdav-client-python but uses requests instead of PyCURL', long_description=open('README.rst').read(), - author='Yuriy Homyakov', - author_email='yuriy.homyakov@gmail.com', - url='https://github.com/appetito/webdav-client-python-2', + author='Evgeny Ezhov', + author_email='ezhov.evgeny@gmail.com', + url='https://github.com/ezhov-evgeny/webdav-client-python-2', license='MIT License', keywords='webdav, client, python, module, library, packet, Yandex.Disk, Dropbox, Google Disk, Box, 4shared', classifiers=[ diff --git a/tests/test_client.py b/tests/test_client.py index 7b08ce8..1a7c066 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -4,7 +4,7 @@ from io import BytesIO, StringIO from os import path from unittest import TestCase -from webdav2.client import Client +from webdav3.client import Client class ClientTestCase(TestCase): diff --git a/wdc b/wdc index e7b524e..4f9fc12 100644 --- a/wdc +++ b/wdc @@ -2,18 +2,21 @@ # PYTHON_ARGCOMPLETE_OK from __future__ import print_function -import sys + +import argparse +import getpass import os +import platform import shlex import struct -import platform import subprocess -import getpass -import argparse -import argcomplete -from webdav2.client import Client, WebDavException, NotConnection, Urn -from distutils.util import strtobool +import sys from base64 import b64decode, b64encode +from distutils.util import strtobool + +import argcomplete + +from webdav3.client import Client, WebDavException, NotConnection, Urn def get_terminal_size(): diff --git a/webdav2/__init__.py b/webdav3/__init__.py similarity index 100% rename from webdav2/__init__.py rename to webdav3/__init__.py diff --git a/webdav2/client.py b/webdav3/client.py similarity index 99% rename from webdav2/client.py rename to webdav3/client.py index 451002e..f7475bb 100644 --- a/webdav2/client.py +++ b/webdav3/client.py @@ -11,9 +11,9 @@ from re import sub import lxml.etree as etree import requests -from webdav2.connection import * -from webdav2.exceptions import * -from webdav2.urn import Urn +from webdav3.connection import * +from webdav3.exceptions import * +from webdav3.urn import Urn try: from urllib.parse import unquote diff --git a/webdav2/connection.py b/webdav3/connection.py similarity index 97% rename from webdav2/connection.py rename to webdav3/connection.py index b2ad8c9..c781797 100644 --- a/webdav2/connection.py +++ b/webdav3/connection.py @@ -1,7 +1,7 @@ from os.path import exists -from webdav2.exceptions import * -from webdav2.urn import Urn +from webdav3.exceptions import * +from webdav3.urn import Urn class ConnectionSettings: diff --git a/webdav2/exceptions.py b/webdav3/exceptions.py similarity index 100% rename from webdav2/exceptions.py rename to webdav3/exceptions.py diff --git a/webdav2/urn.py b/webdav3/urn.py similarity index 100% rename from webdav2/urn.py rename to webdav3/urn.py