Skip to content

Commit

Permalink
Merge pull request #202 from SciCatProject/remove-ssh-file-transfer
Browse files Browse the repository at this point in the history
Remove SSHFileTransfer
  • Loading branch information
jl-wynen authored Apr 17, 2024
2 parents 69f031b + 73c0b69 commit e9d7f89
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 1,487 deletions.
4 changes: 2 additions & 2 deletions docs/developer/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Development dependencies are specified in ``requirements/dev.txt`` and can be in
Additionally, building the documentation requires `pandoc <https://pandoc.org/>`_ which is not on PyPI and needs to be installed through other means.
(E.g. with your OS package manager.)

If you want to run tests against a real backend or SSH server, you also need ``docker-compose``.
If you want to run tests against a real backend or SFTP server, you also need ``docker-compose``.
See `Testing <./testing.rst>`_ for what this is good for and why.

Install the package
Expand Down Expand Up @@ -56,7 +56,7 @@ Running tests
python -m pytest -n<number-of-threads>
Or to run tests against a real backend and SSH server (see setup above)
Or to run tests against a real backend and SFTP server (see setup above)


.. code-block:: sh
Expand Down
1 change: 0 additions & 1 deletion docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ File transfer

transfer.link.LinkFileTransfer
transfer.sftp.SFTPFileTransfer
transfer.ssh.SSHFileTransfer

Auxiliary classes
~~~~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Breaking changes
~~~~~~~~~~~~~~~~

* **Dropped support for Pydantic v1.**
* Removed deprecated ``transfer.ssh.SSHFileTransfer`` in favor of :class:`transfer.sftp.SFTPFileTransfer`.

Bugfixes
~~~~~~~~
Expand Down Expand Up @@ -250,7 +251,7 @@ Breaking changes
* A number of attributes of Dataset are now read only.
* ``Dataset.new`` was removed, use the regular ``__init__`` method instead.
* ``File.provide_locally`` was removed in favor of :meth:`Client.download_files`.
* ``ESSTestFileTransfer`` was renamed to :class:`transfer.ssh.SSHFileTransfer`.
* ``ESSTestFileTransfer`` was renamed to ``transfer.ssh.SSHFileTransfer``.

Bugfixes
~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Installation

.. code-block:: sh
pip install scitacean[ssh]
pip install scitacean[sftp]
If :class:`scitacean.transfer.ssh.SSHFileTransfer` is not required, the ``ssh`` extra can be omitted.
If :class:`scitacean.transfer.sftp.SFTPFileTransfer` is not required, the ``sftp`` extra can be omitted.

.. tab-item:: conda

Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/uploading.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"\n",
"All files associated with a dataset will be uploaded to the same folder.\n",
"This folder may be at the path we specify when making the dataset, i.e. `dset.source_folder`.\n",
"However, the folder is ultimately determined by the file transfer (in this case `SSHFileTransfer`) and it may choose to override the `source_folder` that we set.\n",
"However, the folder is ultimately determined by the file transfer (in this case SFTPFileTransfer`) and it may choose to override the `source_folder` that we set.\n",
"In this example, since we don't tell the file transfer otherwise, it respects `dset.source_folder` and uploads the files to that location.\n",
"See the [File transfer](../reference/index.rst#file-transfer) reference for information how to control this behavior.\n",
"The reason for this is that facilities may have a specific structure on their file server and Scitacean's file transfers can be used to enforce that.\n",
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ dynamic = ["version"]
"Source" = "https://github.com/SciCatProject/scitacean"

[project.optional-dependencies]
ssh = ["fabric"]
sftp = ["paramiko"]
test = ["filelock", "hypothesis", "pyyaml"]

Expand Down
120 changes: 0 additions & 120 deletions src/scitacean/testing/ssh/__init__.py

This file was deleted.

44 changes: 0 additions & 44 deletions src/scitacean/testing/ssh/_pytest_helpers.py

This file was deleted.

154 changes: 0 additions & 154 deletions src/scitacean/testing/ssh/_ssh.py

This file was deleted.

Loading

0 comments on commit e9d7f89

Please sign in to comment.