File tree 6 files changed +26
-18
lines changed
6 files changed +26
-18
lines changed Original file line number Diff line number Diff line change 10
10
test :
11
11
name : Python ${{ matrix.python-version }}
12
12
runs-on : ubuntu-latest
13
- timeout-minutes : 10
13
+ timeout-minutes : 30
14
14
strategy :
15
15
fail-fast : false
16
16
matrix :
@@ -20,27 +20,25 @@ jobs:
20
20
- name : Checkout source
21
21
uses : actions/checkout@v4
22
22
23
- - name : Setup Conda Environment
24
- uses : mamba-org /setup-micromamba@v1
23
+ - name : Setup conda
24
+ uses : conda-incubator /setup-miniconda@v3
25
25
with :
26
- cache-downloads : true
27
26
environment-file : environment_gcsfs.yaml
28
- environment-name : gcsfs_test
29
- create-args : >-
30
- python=${{ matrix.PY }}
27
+ python-version : ${{ matrix.PY }}
28
+ activate-environment : gcsfs_test
31
29
32
30
- name : Conda info
33
31
run : |
34
32
conda list
35
33
conda --version
36
34
37
- - name : Install libfuse
38
- run : (sudo apt-get install -y fuse || echo "Error installing fuse.")
39
-
35
+ - name : install
36
+ run : |
37
+ pip install -e .
40
38
- name : Run tests
41
39
run : |
42
40
export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
43
- pytest -vv \
41
+ pytest -vv -s \
44
42
--log-format="%(asctime)s %(levelname)s %(message)s" \
45
43
--log-date-format="%H:%M:%S" \
46
44
gcsfs/
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Changelog
4
4
Note: in some releases, there are no changes, because we always guarantee relasing in step
5
5
with fsspec.
6
6
7
+ 2024.9.0
8
+ --------
9
+
10
+ * In case error in a pure string (#631)
11
+
7
12
2024.6.1
8
13
--------
9
14
Original file line number Diff line number Diff line change @@ -2,18 +2,17 @@ name: gcsfs_test
2
2
channels :
3
3
- conda-forge
4
4
dependencies :
5
+ - python==3.11
5
6
- aiohttp
6
7
- crcmod
7
8
- decorator
8
9
- fsspec
9
- - fusepy<3
10
10
- google-api-core
11
11
- google-api-python-client
12
12
- google-auth
13
13
- google-auth-oauthlib
14
14
- google-cloud-core
15
15
- google-cloud-storage
16
- - libfuse<3
17
16
- pytest
18
17
- pytest-timeout
19
18
- requests
Original file line number Diff line number Diff line change 46
46
c = TEST_BUCKET + "/tmp/test/c"
47
47
d = TEST_BUCKET + "/tmp/test/d"
48
48
49
+ params = dict ()
50
+
49
51
50
52
def stop_docker (container ):
51
53
cmd = shlex .split ('docker ps -a -q --filter "name=%s"' % container )
@@ -60,6 +62,7 @@ def docker_gcs():
60
62
# assume using real API or otherwise have a server already set up
61
63
yield os .getenv ("STORAGE_EMULATOR_HOST" )
62
64
return
65
+ params ["token" ] = "anon"
63
66
container = "gcsfs_test"
64
67
cmd = (
65
68
"docker run -d -p 4443:4443 --name gcsfs_test fsouza/fake-gcs-server:latest -scheme "
@@ -86,11 +89,12 @@ def docker_gcs():
86
89
87
90
@pytest .fixture
88
91
def gcs_factory (docker_gcs ):
92
+ params ["endpoint_url" ] = docker_gcs
93
+
89
94
def factory (default_location = None ):
90
95
GCSFileSystem .clear_instance_cache ()
91
- return fsspec .filesystem (
92
- "gcs" , endpoint_url = docker_gcs , default_location = default_location
93
- )
96
+ params ["default_location" ] = default_location
97
+ return fsspec .filesystem ("gcs" , ** params )
94
98
95
99
return factory
96
100
Original file line number Diff line number Diff line change @@ -870,8 +870,10 @@ def test_bigger_than_block_read(gcs):
870
870
871
871
872
872
def test_current (gcs ):
873
+ from gcsfs .tests import conftest
874
+
873
875
assert GCSFileSystem .current () is gcs
874
- gcs2 = GCSFileSystem (endpoint_url = gcs . _endpoint , default_location = None )
876
+ gcs2 = GCSFileSystem (** conftest . params )
875
877
assert gcs2 .session is gcs .session
876
878
877
879
Original file line number Diff line number Diff line change 1
1
aiohttp != 4.0.0a0 , != 4.0.0a1
2
2
decorator > 4.1.2
3
- fsspec == 2024.6.1
3
+ fsspec == 2024.9.0
4
4
google-auth >= 1.2
5
5
google-auth-oauthlib
6
6
google-cloud-storage
You can’t perform that action at this time.
0 commit comments