-
Notifications
You must be signed in to change notification settings - Fork 1.3k
dvc: support Python3.8 #3463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dvc: support Python3.8 #3463
Changes from all commits
172e61e
3374ecc
8255c47
1a8efcf
10078db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ def run(self): | |
| "pywin32>=225; sys_platform == 'win32'", | ||
| "networkx>=2.1,<2.4", | ||
| "pydot>=1.2.4", | ||
| "speedcopy>=2.0.1; sys_platform == 'win32'", | ||
| "speedcopy>=2.0.1; python_version < '3.8' and sys_platform == 'win32'", | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A lot of dependencies don't have |
||
| "flatten_json>=0.1.6", | ||
| "texttable>=0.5.2", | ||
| "pygtrie==2.3.2", | ||
|
|
@@ -89,7 +89,12 @@ def run(self): | |
| azure = ["azure-storage-blob==2.1.0"] | ||
| oss = ["oss2==2.6.1"] | ||
| ssh = ["paramiko>=2.5.0"] | ||
| hdfs = ["pyarrow==0.15.1"] | ||
| hdfs = [ | ||
| # pyarrow-0.16.0 import fails on 3.5 and 3.7 (works on 3.6 though) | ||
| # due to: https://issues.apache.org/jira/browse/ARROW-7852 | ||
| "pyarrow==0.15.1; python_version < '3.8'", | ||
skshetry marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
casperdcl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "pyarrow==0.16.0; python_version == '3.8'", | ||
casperdcl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
| # gssapi should not be included in all_remotes, because it doesn't have wheels | ||
| # for linux and mac, so it will fail to compile if user doesn't have all the | ||
| # requirements, including kerberos itself. Once all the wheels are available, | ||
|
|
@@ -157,6 +162,7 @@ def run(self): | |
| "Programming Language :: Python :: 3.5", | ||
| "Programming Language :: Python :: 3.6", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| ], | ||
| packages=find_packages(exclude=["tests"]), | ||
| include_package_data=True, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -436,10 +436,10 @@ def test(self): | |
| self.assertEqual(ret, 0) | ||
|
|
||
| self.assertTrue(System.is_symlink(self.FOO)) | ||
| old_foo_link = os.readlink(self.FOO) | ||
| old_foo_link = os.path.realpath(self.FOO) | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using realpath due to change in how readlink works in Python3.8 and Windows: https://docs.python.org/3.8/library/os.html#os.readlink) |
||
|
|
||
| self.assertTrue(System.is_symlink(self.DATA)) | ||
| old_data_link = os.readlink(self.DATA) | ||
| old_data_link = os.path.realpath(self.DATA) | ||
|
|
||
| old_cache_dir = self.dvc.cache.local.cache_dir | ||
| new_cache_dir = old_cache_dir + "_new" | ||
|
|
@@ -452,10 +452,10 @@ def test(self): | |
| self.assertEqual(ret, 0) | ||
|
|
||
| self.assertTrue(System.is_symlink(self.FOO)) | ||
| new_foo_link = os.readlink(self.FOO) | ||
| new_foo_link = os.path.realpath(self.FOO) | ||
|
|
||
| self.assertTrue(System.is_symlink(self.DATA)) | ||
| new_data_link = os.readlink(self.DATA) | ||
| new_data_link = os.path.realpath(self.DATA) | ||
|
|
||
| self.assertEqual( | ||
| relpath(old_foo_link, old_cache_dir), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.