mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 23:10:10 +01:00
tests: temporarily exclude gdrivefs from extras (#5483)
When trying to publish to pypi, we get: ``` Invalid value for requires_dist. Error: Can't have direct dependency: "gdrivefs @ git+https://github.com/intake/gdrivefs.git ; extra == 'tests'" ```
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install requirements
|
||||
run: pip install ".[all,tests]" Pygments collective.checkdocs pre-commit
|
||||
run: pip install ".[all,tests]" Pygments collective.checkdocs pre-commit git+https://github.com/intake/gdrivefs.git
|
||||
- name: Check README
|
||||
run: python setup.py checkdocs
|
||||
- uses: pre-commit/[email protected]
|
||||
|
||||
@@ -153,7 +153,8 @@ tests_requirements = [
|
||||
"mypy",
|
||||
"wsgidav",
|
||||
"crc32c",
|
||||
"gdrivefs @ git+https://github.com/intake/gdrivefs.git",
|
||||
# pypi doesn't allow for direct dependencies
|
||||
# "gdrivefs @ git+https://github.com/intake/gdrivefs.git",
|
||||
]
|
||||
|
||||
setup(
|
||||
|
||||
@@ -46,7 +46,11 @@ class GDrive(Base, CloudURLInfo):
|
||||
@cached_property
|
||||
def client(self):
|
||||
import pydata_google_auth
|
||||
from gdrivefs import GoogleDriveFileSystem
|
||||
|
||||
try:
|
||||
from gdrivefs import GoogleDriveFileSystem
|
||||
except ImportError:
|
||||
pytest.skip("gdrivefs is not installed")
|
||||
|
||||
tmp_path = tmp_fname()
|
||||
with open(tmp_path, "w") as stream:
|
||||
|
||||
Reference in New Issue
Block a user