Merge pull request #6 from microsoft/py36-fixes
FIX python 3.6 compatibility
This commit is contained in:
Коммит
51cb537e66
|
@ -135,7 +135,7 @@ class ZipDataset(luigi.Task):
|
|||
|
||||
def run(self):
|
||||
with self.output().temporary_path() as zip_path:
|
||||
archive = ZipFile(zip_path, 'w', compression=ZIP_DEFLATED, compresslevel=9)
|
||||
archive = ZipFile(zip_path, 'w', compression=ZIP_DEFLATED)
|
||||
for src in self.input():
|
||||
if os.stat(src.path).st_size == 0:
|
||||
continue
|
||||
|
|
2
setup.py
2
setup.py
|
@ -38,7 +38,7 @@ setup(
|
|||
classifiers=[
|
||||
'Programming Language :: Python :: 3',
|
||||
],
|
||||
python_requires='>=3.5',
|
||||
python_requires='>=3.6',
|
||||
install_requires=INSTALL_REQUIRES,
|
||||
tests_require=TEST_REQUIRES,
|
||||
extras_require=dict(
|
||||
|
|
Загрузка…
Ссылка в новой задаче