diff --git a/scripts/hooks/hook-checksumdir.py b/scripts/hooks/hook-checksumdir.py index 957d2371e..c6a247d34 100644 --- a/scripts/hooks/hook-checksumdir.py +++ b/scripts/hooks/hook-checksumdir.py @@ -1,2 +1,3 @@ from PyInstaller.utils.hooks import copy_metadata -datas = copy_metadata('checksumdir') + +datas = copy_metadata("checksumdir") diff --git a/scripts/hooks/hook-google.api.py b/scripts/hooks/hook-google.api.py index d2752243f..4fc891845 100644 --- a/scripts/hooks/hook-google.api.py +++ b/scripts/hooks/hook-google.api.py @@ -1,2 +1,3 @@ from PyInstaller.utils.hooks import copy_metadata -datas = copy_metadata('google-api-core') + +datas = copy_metadata("google-api-core") diff --git a/scripts/hooks/hook-google.cloud.py b/scripts/hooks/hook-google.cloud.py index cf6970f68..5039aef9b 100644 --- a/scripts/hooks/hook-google.cloud.py +++ b/scripts/hooks/hook-google.cloud.py @@ -1,3 +1,4 @@ from PyInstaller.utils.hooks import copy_metadata -datas = copy_metadata('google-cloud-core') -hiddenimports = ['google.api'] + +datas = copy_metadata("google-cloud-core") +hiddenimports = ["google.api"] diff --git a/scripts/hooks/hook-google.cloud.storage.py b/scripts/hooks/hook-google.cloud.storage.py index 0a943167f..dcd315c12 100644 --- a/scripts/hooks/hook-google.cloud.storage.py +++ b/scripts/hooks/hook-google.cloud.storage.py @@ -1,2 +1,3 @@ from PyInstaller.utils.hooks import copy_metadata -datas = copy_metadata('google-cloud-storage') + +datas = copy_metadata("google-cloud-storage") diff --git a/scripts/hooks/hook-google_compute_engine.logger.py b/scripts/hooks/hook-google_compute_engine.logger.py index 8cffad29f..ac3747a67 100644 --- a/scripts/hooks/hook-google_compute_engine.logger.py +++ b/scripts/hooks/hook-google_compute_engine.logger.py @@ -1,3 +1,4 @@ from PyInstaller.utils.hooks import copy_metadata -datas = copy_metadata('google-compute-engine') -hiddenimports = ['google_cloud_engine'] + +datas = copy_metadata("google-compute-engine") +hiddenimports = ["google_cloud_engine"] diff --git a/scripts/innosetup/config_gen.py b/scripts/innosetup/config_gen.py index 2e82e58ae..6f626df74 100644 --- a/scripts/innosetup/config_gen.py +++ b/scripts/innosetup/config_gen.py @@ -3,8 +3,8 @@ from dvc import VERSION from dvc.utils.compat import ConfigParser config = ConfigParser.ConfigParser() -config.add_section('Version') -config.set('Version', 'Version', VERSION) +config.add_section("Version") +config.set("Version", "Version", VERSION) -with open('scripts/innosetup/config.ini', 'w') as f: +with open("scripts/innosetup/config.ini", "w") as f: config.write(f) diff --git a/setup.py b/setup.py index a4fe90992..6887cb932 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from dvc import VERSION install_requires = [ - "ply>=3.9", # See https://github.com/pyinstaller/pyinstaller/issues/1945 + "ply>=3.9", # See https://github.com/pyinstaller/pyinstaller/issues/1945 "configparser>=3.5.0", "zc.lockfile>=1.2.1", "future>=0.16.0", @@ -28,50 +28,40 @@ install_requires = [ ] # Extra dependencies for remote integrations -gs = [ - "google-cloud-storage==1.13.0", -] -s3 = [ - "boto3==1.7.4", -] -azure = [ - "azure-storage-blob==1.3.0" -] -ssh = [ - "paramiko>=2.4.1", -] +gs = ["google-cloud-storage==1.13.0"] +s3 = ["boto3==1.7.4"] +azure = ["azure-storage-blob==1.3.0"] +ssh = ["paramiko>=2.4.1"] all_remotes = gs + s3 + azure + ssh setup( - name='dvc', + name="dvc", version=VERSION, - description='Git for data scientists - manage your code and data together', - long_description=open('README.rst', 'r').read(), - author='Dmitry Petrov', - author_email='dmitry@dataversioncontrol.com', - download_url='https://github.com/iterative/dvc', - license='Apache License 2.0', + description="Git for data scientists - manage your code and data together", + long_description=open("README.rst", "r").read(), + author="Dmitry Petrov", + author_email="dmitry@dataversioncontrol.com", + download_url="https://github.com/iterative/dvc", + license="Apache License 2.0", install_requires=install_requires, extras_require={ - 'all': all_remotes, - 'gs': gs, - 's3': s3, - 'azure': azure, - 'ssh': ssh, + "all": all_remotes, + "gs": gs, + "s3": s3, + "azure": azure, + "ssh": ssh, # NOTE: https://github.com/inveniosoftware/troubleshooting/issues/1 - ':python_version=="2.7"': ['futures'], + ':python_version=="2.7"': ["futures"], }, - keywords='data science, data version control, machine learning', + keywords="data science, data version control, machine learning", classifiers=[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 3', + "Development Status :: 4 - Beta", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 3", ], - packages=find_packages(exclude=['tests']), + packages=find_packages(exclude=["tests"]), include_package_data=True, - url='http://dataversioncontrol.com', - entry_points={ - 'console_scripts': ['dvc = dvc.main:main'] - }, + url="http://dataversioncontrol.com", + entry_points={"console_scripts": ["dvc = dvc.main:main"]}, zip_safe=False, )