573 Commits

Author SHA1 Message Date
Luflosi
f04ff60155 Replace pytest_ordering with pytest_order
pytest_ordering seems unmaintained as it hasn't been updated in two years: https://github.com/ftobia/pytest-ordering. It is also broken, at least in Nixpkgs: https://github.com/NixOS/nixpkgs/pull/122264.
pytest_order is a maintained and working fork.
I added a similar patch to Nixpkgs a while ago to make it work there: 6965eef223/pkgs/development/python-modules/ipfshttpclient/default.nix (L59-L63).

Co-authored-by: ntninja (Alexander Schlarb)
2021-06-25 15:48:44 +00:00
c0llab0rat0r
e02a95f892 Use pathlib.Path to construct import in publish.py 0.8.0a2 2021-05-30 16:14:22 +02:00
c0llab0rat0r
9786643622 Print publish progress more granularly 2021-05-30 16:14:22 +02:00
c0llab0rat0r
3bb169acaa Rename new environment variables to use standard PY_IPFS_HTTP_CLIENT_DEFAULT prefix and update docs 2021-05-30 16:14:22 +02:00
c0llab0rat0r
e7b5e55727 Rename ClientSync to reflect it being a factory function 2021-05-30 16:14:22 +02:00
c0llab0rat0r
8da3c12294 Clarify references to builtin exceptions 2021-05-30 16:14:22 +02:00
c0llab0rat0r
d7bc474e99 Code review feedback 2021-05-30 16:14:22 +02:00
c0llab0rat0r
8e44054111 Resolve last Sphinx warning and configure Sphinx to fail on warnings: Cannot resolve forward reference in type annotations of "ipfshttpclient.http.ClientSync": name 'http' is not defined 2021-05-30 16:14:22 +02:00
c0llab0rat0r
75af5f0a3e Fix Sphinx warning - Unknown interpreted text role "type". 2021-05-30 16:14:22 +02:00
c0llab0rat0r
4c9a2053a8 Fix warning related to using typing.AnyStr in utils.py 2021-05-30 16:14:22 +02:00
c0llab0rat0r
02131a6ee0 Fix Sphinx warning - Cannot resolve forward reference in type annotations of "ipfshttpclient.Client.config.set": name 'json_list_t' is not defined 2021-05-30 16:14:22 +02:00
c0llab0rat0r
c03867a016 Remove pytest skips related to old, unsupported versions of Python and IPFS 2021-05-30 16:14:22 +02:00
c0llab0rat0r
8f628ce19f Version 0.8.0a2 2021-05-30 16:14:22 +02:00
c0llab0rat0r
e28601d78d RELEASE.md - describe how to publish to a remote IPFS server 2021-05-30 16:14:22 +02:00
c0llab0rat0r
2d4b59d03d Move docs/releasing.md to ./RELEASE.md 2021-05-30 16:14:22 +02:00
c0llab0rat0r
dae3e19883 Fix exception tree documentation; parameterize publish script so it can publish to a non-local IPFS server 2021-05-30 16:14:22 +02:00
c0llab0rat0r
caf17d0a75 Fix 'custom marker not registered' warning related to pytest.mark.last (provided by pytest-ordering module) 0.8.0a1 2021-05-18 17:37:54 +00:00
c0llab0rat0r
099d396573 Remove polyfill for contextlib.suppress (not needed since Python 3.4) 2021-05-18 17:37:54 +00:00
c0llab0rat0r
6a133e3d81 Change version marker from 0.7.0 to 0.8.0a1; fix spelling and grammar issues in readme 2021-05-18 17:37:54 +00:00
c0llab0rat0r
91bdaba427 Add Python 3.9 to Docker-based verification 2021-05-15 23:27:34 +00:00
c0llab0rat0r
ca46d2abc9 Add scripts to verify compatibility with multiple Python versions, using Docker 2021-05-15 23:27:34 +00:00
c0llab0rat0r
895df8bb6d Refactor to remove type parameter from MatcherSpecInvalidError constructor 2021-05-06 21:00:45 +00:00
c0llab0rat0r
37a488a48e Modernize typing in exceptions.py 2021-05-06 21:00:45 +00:00
c0llab0rat0r
e656e085ee Move MatcherSpecInvalidError to exceptions.py 2021-05-06 21:00:45 +00:00
c0llab0rat0r
09cae7672a Remove Python 3.5 conditional from run_tests.py 2021-04-17 15:24:23 +00:00
c0llab0rat0r
6524062b24 Miscellaneous cleanup from #260 and #262 2021-04-17 15:24:23 +00:00
c0llab0rat0r
89737bde92 Print exception thrown while trying to connect to IPFS while running test cases; refactor to use pytest fixtures 2021-04-17 15:21:18 +00:00
c0llab0rat0r
331bcb9ca4 Deduplicate closing of file descriptor on filescanner.walk 2021-04-15 00:27:41 +02:00
c0llab0rat0r
9de4852cae Fix typing on FSNodeEntry 2021-04-15 00:27:39 +02:00
c0llab0rat0r
b3a7a3d984 Extract _walk_separator from _walk 2021-04-15 00:22:22 +02:00
c0llab0rat0r
7b6c490e54 Fix typing errors in walk related to walk_iter 2021-04-15 00:22:22 +02:00
c0llab0rat0r
c40ed9b75b Remove unnecessary style check warning suppressions 2021-04-15 00:22:22 +02:00
c0llab0rat0r
46a973eafd Split matcher_from_spec into smaller functions 2021-04-15 00:22:22 +02:00
c0llab0rat0r
f126ab1481 Fix some typing warnings related to Matcher 2021-04-14 23:52:07 +02:00
c0llab0rat0r
5aa4b68e0c filescanner - inline MATCH_ALL; remove MATCH_NONE 2021-04-14 23:41:49 +02:00
c0llab0rat0r
3a1a4588f0 Use a local definition of AnyStr to eliminate PyCharm warnings 2021-04-14 23:41:49 +02:00
Alexander Schlarb
e4b9079eda workaround: Wait up to 2 minutes for slow go-IPFS in Travis CI Windows shutdown 2021-04-14 23:07:26 +02:00
Alexander Schlarb
6b35fe8bb8 style: Minor style fixes for b3190454f8. 2021-04-14 22:43:37 +02:00
Alexander Schlarb
be888f8729 Globally drop support for the since go-IPFS 0.5 useless return_result parameter 2021-04-14 20:39:43 +00:00
Alexander Schlarb
807d0a5f50 Target go-IPFS 0.5 – 0.8 and drop 0.4.x compatiblity code 2021-04-14 20:39:43 +00:00
Alexander Schlarb
0a460f6e26 Update target Python version to 3.9 2021-04-14 20:39:43 +00:00
c0llab0rat0r
ee5977ac7f Delete unused test fixture 2021-04-14 20:36:28 +00:00
c0llab0rat0r
b3190454f8 test_pin - don't rely on current working folder to locate testing input folder 2021-04-14 20:36:28 +00:00
c0llab0rat0r
e77c1eb03c Remove dependency on mock (not needed after requiring Python 3.6); upgrade mypy and pytest 2021-04-10 18:57:28 +00:00
Alexander Schlarb
3d399d3330 Increase daemon shutdown timeout to 20s for slow Travis CI Windows runs 2021-04-10 14:48:17 +00:00
c0llab0rat0r
f61a574a19 Inline no-op function utils.convert_path 2021-04-09 22:03:44 +00:00
Alexander Schlarb
f00a9cb1a2 Simplify test/unit/test_client.py::test_assert_version using pytest.warns and fix errors in previous commit 2021-04-09 21:02:30 +00:00
Mathijs de Bruin
724e7b264e Change exceptions.VersionMismatch into warning.
Let users decide whether they’re willing to take
the risk; most of IPFS’ API doesn’t change between
versions.
2021-04-09 21:02:30 +00:00
Alexander Schlarb
2cb91f7475 Update README ToC 2021-04-09 21:00:58 +02:00
Alexander Schlarb
f593e81135 Document how to actually set up a local development environment for running tests (cf #256) 2021-04-09 20:58:22 +02:00