Skip to content

Tune up setup.py a little to provide [full] and [devel] installation schemes #1228

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

Merged
merged 2 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ A specification for pythonic filesystems.
```bash
pip install fsspec
```
or

would install the base fsspec. Various optionally supported features might require specification of custom
extra require, e.g. `pip install fsspec[ssh]` will install dependencies for `ssh` backends support.
Use `pip install fsspec[full]` for installation of all known extra dependencies.

Up-to-date package also provided through conda-forge distribution:

```bash
conda install -c conda-forge fsspec
```


## Purpose

To produce a template or specification for a file-system interface, that specific implementations should follow,
Expand Down
59 changes: 36 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,41 @@
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

extras_require = {
"entrypoints": [],
"abfs": ["adlfs"],
"adl": ["adlfs"],
"dask": ["dask", "distributed"],
"dropbox": ["dropboxdrivefs", "requests", "dropbox"],
"gcs": ["gcsfs"],
"git": ["pygit2"],
"github": ["requests"],
"gs": ["gcsfs"],
"hdfs": ["pyarrow >= 1"],
"arrow": ["pyarrow >= 1"],
"http": ["requests", "aiohttp !=4.0.0a0, !=4.0.0a1"],
"sftp": ["paramiko"],
"s3": ["s3fs"],
"oci": ["ocifs"],
"smb": ["smbprotocol"],
"ssh": ["paramiko"],
"fuse": ["fusepy"],
"libarchive": ["libarchive-c"],
"gui": ["panel"],
"tqdm": ["tqdm"],
}
# To simplify full installation
extras_require["full"] = sorted(set(sum(extras_require.values(), [])))

extras_require["devel"] = [
"pytest",
"pytest-cov",
# might want to add other optional depends which are used exclusively
# in the tests or not listed/very optional for other extra depends, e.g.
# 'pyftpdlib',
# 'fastparquet',
]

setup(
name="fsspec",
version=versioneer.get_version(),
Expand Down Expand Up @@ -38,28 +73,6 @@
packages=["fsspec", "fsspec.implementations"],
python_requires=">=3.8",
install_requires=open("requirements.txt").read().strip().split("\n"),
extras_require={
"entrypoints": [],
"abfs": ["adlfs"],
"adl": ["adlfs"],
"dask": ["dask", "distributed"],
"dropbox": ["dropboxdrivefs", "requests", "dropbox"],
"gcs": ["gcsfs"],
"git": ["pygit2"],
"github": ["requests"],
"gs": ["gcsfs"],
"hdfs": ["pyarrow >= 1"],
"arrow": ["pyarrow >= 1"],
"http": ["requests", "aiohttp !=4.0.0a0, !=4.0.0a1"],
"sftp": ["paramiko"],
"s3": ["s3fs"],
"oci": ["ocifs"],
"smb": ["smbprotocol"],
"ssh": ["paramiko"],
"fuse": ["fusepy"],
"libarchive": ["libarchive-c"],
"gui": ["panel"],
"tqdm": ["tqdm"],
},
extras_require=extras_require,
zip_safe=False,
)