prepare to publish

This commit is contained in:
evgeny.ezhov 2017-09-11 19:36:30 +03:00
parent 52ac5a3f94
commit 6c2aecd277
10 changed files with 25 additions and 22 deletions

View file

@ -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 Copyright (c) 2016, The WDC Project, and many
contributors, see the THANKS file. contributors, see the THANKS file.

View file

@ -1,4 +1,4 @@
webdavclient2 webdavclient3
============ ============
Based on https://github.com/designerror/webdav-client-python Based on https://github.com/designerror/webdav-client-python

View file

@ -1,12 +1,12 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
from setuptools import setup, find_packages 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.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" requirements = "libxml2-dev libxslt-dev python-dev"
@ -43,7 +43,7 @@ class Test(TestCommand):
sys.exit(errno) sys.exit(errno)
setup( setup(
name='webdavclient2', name='webdavclient3',
version=version, version=version,
packages=find_packages(), packages=find_packages(),
requires=['python (>= 2.7.6)'], requires=['python (>= 2.7.6)'],
@ -53,9 +53,9 @@ setup(
cmdclass={'install': Install, 'test': Test}, 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', 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(), long_description=open('README.rst').read(),
author='Yuriy Homyakov', author='Evgeny Ezhov',
author_email='yuriy.homyakov@gmail.com', author_email='ezhov.evgeny@gmail.com',
url='https://github.com/appetito/webdav-client-python-2', url='https://github.com/ezhov-evgeny/webdav-client-python-2',
license='MIT License', license='MIT License',
keywords='webdav, client, python, module, library, packet, Yandex.Disk, Dropbox, Google Disk, Box, 4shared', keywords='webdav, client, python, module, library, packet, Yandex.Disk, Dropbox, Google Disk, Box, 4shared',
classifiers=[ classifiers=[

View file

@ -4,7 +4,7 @@ from io import BytesIO, StringIO
from os import path from os import path
from unittest import TestCase from unittest import TestCase
from webdav2.client import Client from webdav3.client import Client
class ClientTestCase(TestCase): class ClientTestCase(TestCase):

17
wdc
View file

@ -2,18 +2,21 @@
# PYTHON_ARGCOMPLETE_OK # PYTHON_ARGCOMPLETE_OK
from __future__ import print_function from __future__ import print_function
import sys
import argparse
import getpass
import os import os
import platform
import shlex import shlex
import struct import struct
import platform
import subprocess import subprocess
import getpass import sys
import argparse
import argcomplete
from webdav2.client import Client, WebDavException, NotConnection, Urn
from distutils.util import strtobool
from base64 import b64decode, b64encode from base64 import b64decode, b64encode
from distutils.util import strtobool
import argcomplete
from webdav3.client import Client, WebDavException, NotConnection, Urn
def get_terminal_size(): def get_terminal_size():

View file

@ -11,9 +11,9 @@ from re import sub
import lxml.etree as etree import lxml.etree as etree
import requests import requests
from webdav2.connection import * from webdav3.connection import *
from webdav2.exceptions import * from webdav3.exceptions import *
from webdav2.urn import Urn from webdav3.urn import Urn
try: try:
from urllib.parse import unquote from urllib.parse import unquote

View file

@ -1,7 +1,7 @@
from os.path import exists from os.path import exists
from webdav2.exceptions import * from webdav3.exceptions import *
from webdav2.urn import Urn from webdav3.urn import Urn
class ConnectionSettings: class ConnectionSettings: