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:
Ruslan Kuprieiev
2021-02-17 05:49:34 +02:00
committed by GitHub
parent 51988475a4
commit 282e83c481
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -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]
+2 -1
View File
@@ -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(
+5 -1
View File
@@ -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: