|
9 | 9 | with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
|
10 | 10 | long_description = f.read()
|
11 | 11 |
|
| 12 | +extras_require = { |
| 13 | + "entrypoints": [], |
| 14 | + "abfs": ["adlfs"], |
| 15 | + "adl": ["adlfs"], |
| 16 | + "dask": ["dask", "distributed"], |
| 17 | + "dropbox": ["dropboxdrivefs", "requests", "dropbox"], |
| 18 | + "gcs": ["gcsfs"], |
| 19 | + "git": ["pygit2"], |
| 20 | + "github": ["requests"], |
| 21 | + "gs": ["gcsfs"], |
| 22 | + "hdfs": ["pyarrow >= 1"], |
| 23 | + "arrow": ["pyarrow >= 1"], |
| 24 | + "http": ["requests", "aiohttp !=4.0.0a0, !=4.0.0a1"], |
| 25 | + "sftp": ["paramiko"], |
| 26 | + "s3": ["s3fs"], |
| 27 | + "oci": ["ocifs"], |
| 28 | + "smb": ["smbprotocol"], |
| 29 | + "ssh": ["paramiko"], |
| 30 | + "fuse": ["fusepy"], |
| 31 | + "libarchive": ["libarchive-c"], |
| 32 | + "gui": ["panel"], |
| 33 | + "tqdm": ["tqdm"], |
| 34 | +} |
| 35 | +# To simplify full installation |
| 36 | +extras_require["full"] = sorted(set(sum(extras_require.values(), []))) |
| 37 | + |
| 38 | +extras_require["devel"] = [ |
| 39 | + "pytest", |
| 40 | + "pytest-cov", |
| 41 | + # might want to add other optional depends which are used exclusively |
| 42 | + # in the tests or not listed/very optional for other extra depends, e.g. |
| 43 | + # 'pyftpdlib', |
| 44 | + # 'fastparquet', |
| 45 | +] |
| 46 | + |
12 | 47 | setup(
|
13 | 48 | name="fsspec",
|
14 | 49 | version=versioneer.get_version(),
|
|
38 | 73 | packages=["fsspec", "fsspec.implementations"],
|
39 | 74 | python_requires=">=3.8",
|
40 | 75 | install_requires=open("requirements.txt").read().strip().split("\n"),
|
41 |
| - extras_require={ |
42 |
| - "entrypoints": [], |
43 |
| - "abfs": ["adlfs"], |
44 |
| - "adl": ["adlfs"], |
45 |
| - "dask": ["dask", "distributed"], |
46 |
| - "dropbox": ["dropboxdrivefs", "requests", "dropbox"], |
47 |
| - "gcs": ["gcsfs"], |
48 |
| - "git": ["pygit2"], |
49 |
| - "github": ["requests"], |
50 |
| - "gs": ["gcsfs"], |
51 |
| - "hdfs": ["pyarrow >= 1"], |
52 |
| - "arrow": ["pyarrow >= 1"], |
53 |
| - "http": ["requests", "aiohttp !=4.0.0a0, !=4.0.0a1"], |
54 |
| - "sftp": ["paramiko"], |
55 |
| - "s3": ["s3fs"], |
56 |
| - "oci": ["ocifs"], |
57 |
| - "smb": ["smbprotocol"], |
58 |
| - "ssh": ["paramiko"], |
59 |
| - "fuse": ["fusepy"], |
60 |
| - "libarchive": ["libarchive-c"], |
61 |
| - "gui": ["panel"], |
62 |
| - "tqdm": ["tqdm"], |
63 |
| - }, |
| 76 | + extras_require=extras_require, |
64 | 77 | zip_safe=False,
|
65 | 78 | )
|
0 commit comments