From 2afdc958c6a9b57ad1214a126fced323fccd9cab Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Wed, 23 Dec 2020 22:07:27 +0100 Subject: [PATCH] Update URLs --- AUTHORS.rst | 2 +- CHANGELOG.rst | 112 +++++++++++++++++++------------------- CONTRIBUTING.rst | 12 ++-- MANIFEST.in | 2 +- httpie/cli/definition.py | 2 +- httpie/client.py | 6 +- httpie/downloads.py | 2 +- httpie/plugins/builtin.py | 2 +- tests/README.rst | 2 +- tests/test_auth.py | 2 +- tests/test_defaults.py | 6 +- tests/test_httpie.py | 4 +- tests/test_output.py | 2 +- tests/test_regressions.py | 4 +- tests/test_sessions.py | 4 +- tests/test_ssl.py | 2 +- 16 files changed, 83 insertions(+), 83 deletions(-) diff --git a/AUTHORS.rst b/AUTHORS.rst index 9845e1f3..99468e55 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -8,7 +8,7 @@ HTTPie authors Patches and ideas ----------------- -`Complete list of contributors on GitHub `_ +`Complete list of contributors on GitHub `_ * `Cláudia T. Delgado `_ (logo) * `Hank Gay `_ diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 26c27924..94fa0178 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -426,60 +426,60 @@ This project adheres to `Semantic Versioning `_. * Initial public release -.. _`0.1.0`: https://github.com/jakubroztocil/httpie/commit/b966efa -.. _0.1.4: https://github.com/jakubroztocil/httpie/compare/b966efa...0.1.4 -.. _0.1.5: https://github.com/jakubroztocil/httpie/compare/0.1.4...0.1.5 -.. _0.1.6: https://github.com/jakubroztocil/httpie/compare/0.1.5...0.1.6 -.. _0.2.0: https://github.com/jakubroztocil/httpie/compare/0.1.6...0.2.0 -.. _0.2.1: https://github.com/jakubroztocil/httpie/compare/0.2.0...0.2.1 -.. _0.2.2: https://github.com/jakubroztocil/httpie/compare/0.2.1...0.2.2 -.. _0.2.5: https://github.com/jakubroztocil/httpie/compare/0.2.2...0.2.5 -.. _0.2.6: https://github.com/jakubroztocil/httpie/compare/0.2.5...0.2.6 -.. _0.2.7: https://github.com/jakubroztocil/httpie/compare/0.2.5...0.2.7 -.. _0.3.0: https://github.com/jakubroztocil/httpie/compare/0.2.7...0.3.0 -.. _0.4.0: https://github.com/jakubroztocil/httpie/compare/0.3.0...0.4.0 -.. _0.4.1: https://github.com/jakubroztocil/httpie/compare/0.4.0...0.4.1 -.. _0.5.0: https://github.com/jakubroztocil/httpie/compare/0.4.1...0.5.0 -.. _0.5.1: https://github.com/jakubroztocil/httpie/compare/0.5.0...0.5.1 -.. _0.6.0: https://github.com/jakubroztocil/httpie/compare/0.5.1...0.6.0 -.. _0.7.1: https://github.com/jakubroztocil/httpie/compare/0.6.0...0.7.1 -.. _0.8.0: https://github.com/jakubroztocil/httpie/compare/0.7.1...0.8.0 -.. _0.9.0: https://github.com/jakubroztocil/httpie/compare/0.8.0...0.9.0 -.. _0.9.1: https://github.com/jakubroztocil/httpie/compare/0.9.0...0.9.1 -.. _0.9.2: https://github.com/jakubroztocil/httpie/compare/0.9.1...0.9.2 -.. _0.9.3: https://github.com/jakubroztocil/httpie/compare/0.9.2...0.9.3 -.. _0.9.4: https://github.com/jakubroztocil/httpie/compare/0.9.3...0.9.4 -.. _0.9.6: https://github.com/jakubroztocil/httpie/compare/0.9.4...0.9.6 -.. _0.9.8: https://github.com/jakubroztocil/httpie/compare/0.9.6...0.9.8 -.. _0.9.9: https://github.com/jakubroztocil/httpie/compare/0.9.8...0.9.9 -.. _1.0.0: https://github.com/jakubroztocil/httpie/compare/0.9.9...1.0.0 -.. _1.0.1: https://github.com/jakubroztocil/httpie/compare/1.0.0...1.0.1 -.. _1.0.2: https://github.com/jakubroztocil/httpie/compare/1.0.1...1.0.2 -.. _1.0.3: https://github.com/jakubroztocil/httpie/compare/1.0.2...1.0.3 -.. _2.0.0: https://github.com/jakubroztocil/httpie/compare/1.0.3...2.0.0 -.. _2.1.0: https://github.com/jakubroztocil/httpie/compare/2.0.0...2.1.0 -.. _2.2.0: https://github.com/jakubroztocil/httpie/compare/2.1.0...2.2.0 -.. _2.3.0: https://github.com/jakubroztocil/httpie/compare/2.2.0...2.3.0 -.. _2.4.0-dev: https://github.com/jakubroztocil/httpie/compare/2.3.0...master +.. _`0.1.0`: https://github.com/httpie/httpie/commit/b966efa +.. _0.1.4: https://github.com/httpie/httpie/compare/b966efa...0.1.4 +.. _0.1.5: https://github.com/httpie/httpie/compare/0.1.4...0.1.5 +.. _0.1.6: https://github.com/httpie/httpie/compare/0.1.5...0.1.6 +.. _0.2.0: https://github.com/httpie/httpie/compare/0.1.6...0.2.0 +.. _0.2.1: https://github.com/httpie/httpie/compare/0.2.0...0.2.1 +.. _0.2.2: https://github.com/httpie/httpie/compare/0.2.1...0.2.2 +.. _0.2.5: https://github.com/httpie/httpie/compare/0.2.2...0.2.5 +.. _0.2.6: https://github.com/httpie/httpie/compare/0.2.5...0.2.6 +.. _0.2.7: https://github.com/httpie/httpie/compare/0.2.5...0.2.7 +.. _0.3.0: https://github.com/httpie/httpie/compare/0.2.7...0.3.0 +.. _0.4.0: https://github.com/httpie/httpie/compare/0.3.0...0.4.0 +.. _0.4.1: https://github.com/httpie/httpie/compare/0.4.0...0.4.1 +.. _0.5.0: https://github.com/httpie/httpie/compare/0.4.1...0.5.0 +.. _0.5.1: https://github.com/httpie/httpie/compare/0.5.0...0.5.1 +.. _0.6.0: https://github.com/httpie/httpie/compare/0.5.1...0.6.0 +.. _0.7.1: https://github.com/httpie/httpie/compare/0.6.0...0.7.1 +.. _0.8.0: https://github.com/httpie/httpie/compare/0.7.1...0.8.0 +.. _0.9.0: https://github.com/httpie/httpie/compare/0.8.0...0.9.0 +.. _0.9.1: https://github.com/httpie/httpie/compare/0.9.0...0.9.1 +.. _0.9.2: https://github.com/httpie/httpie/compare/0.9.1...0.9.2 +.. _0.9.3: https://github.com/httpie/httpie/compare/0.9.2...0.9.3 +.. _0.9.4: https://github.com/httpie/httpie/compare/0.9.3...0.9.4 +.. _0.9.6: https://github.com/httpie/httpie/compare/0.9.4...0.9.6 +.. _0.9.8: https://github.com/httpie/httpie/compare/0.9.6...0.9.8 +.. _0.9.9: https://github.com/httpie/httpie/compare/0.9.8...0.9.9 +.. _1.0.0: https://github.com/httpie/httpie/compare/0.9.9...1.0.0 +.. _1.0.1: https://github.com/httpie/httpie/compare/1.0.0...1.0.1 +.. _1.0.2: https://github.com/httpie/httpie/compare/1.0.1...1.0.2 +.. _1.0.3: https://github.com/httpie/httpie/compare/1.0.2...1.0.3 +.. _2.0.0: https://github.com/httpie/httpie/compare/1.0.3...2.0.0 +.. _2.1.0: https://github.com/httpie/httpie/compare/2.0.0...2.1.0 +.. _2.2.0: https://github.com/httpie/httpie/compare/2.1.0...2.2.0 +.. _2.3.0: https://github.com/httpie/httpie/compare/2.2.0...2.3.0 +.. _2.4.0-dev: https://github.com/httpie/httpie/compare/2.3.0...master -.. _#128: https://github.com/jakubroztocil/httpie/issues/128 -.. _#201: https://github.com/jakubroztocil/httpie/issues/201 -.. _#488: https://github.com/jakubroztocil/httpie/issues/488 -.. _#668: https://github.com/jakubroztocil/httpie/issues/668 -.. _#684: https://github.com/jakubroztocil/httpie/issues/684 -.. _#718: https://github.com/jakubroztocil/httpie/issues/718 -.. _#719: https://github.com/jakubroztocil/httpie/issues/719 -.. _#753: https://github.com/jakubroztocil/httpie/issues/753 -.. _#840: https://github.com/jakubroztocil/httpie/issues/840 -.. _#853: https://github.com/jakubroztocil/httpie/issues/853 -.. _#852: https://github.com/jakubroztocil/httpie/issues/852 -.. _#870: https://github.com/jakubroztocil/httpie/issues/870 -.. _#895: https://github.com/jakubroztocil/httpie/issues/895 -.. _#903: https://github.com/jakubroztocil/httpie/issues/903 -.. _#920: https://github.com/jakubroztocil/httpie/issues/920 -.. _#904: https://github.com/jakubroztocil/httpie/issues/904 -.. _#925: https://github.com/jakubroztocil/httpie/issues/925 -.. _#932: https://github.com/jakubroztocil/httpie/issues/932 -.. _#934: https://github.com/jakubroztocil/httpie/issues/934 -.. _#943: https://github.com/jakubroztocil/httpie/issues/943 -.. _#963: https://github.com/jakubroztocil/httpie/issues/963 +.. _#128: https://github.com/httpie/httpie/issues/128 +.. _#201: https://github.com/httpie/httpie/issues/201 +.. _#488: https://github.com/httpie/httpie/issues/488 +.. _#668: https://github.com/httpie/httpie/issues/668 +.. _#684: https://github.com/httpie/httpie/issues/684 +.. _#718: https://github.com/httpie/httpie/issues/718 +.. _#719: https://github.com/httpie/httpie/issues/719 +.. _#753: https://github.com/httpie/httpie/issues/753 +.. _#840: https://github.com/httpie/httpie/issues/840 +.. _#853: https://github.com/httpie/httpie/issues/853 +.. _#852: https://github.com/httpie/httpie/issues/852 +.. _#870: https://github.com/httpie/httpie/issues/870 +.. _#895: https://github.com/httpie/httpie/issues/895 +.. _#903: https://github.com/httpie/httpie/issues/903 +.. _#920: https://github.com/httpie/httpie/issues/920 +.. _#904: https://github.com/httpie/httpie/issues/904 +.. _#925: https://github.com/httpie/httpie/issues/925 +.. _#932: https://github.com/httpie/httpie/issues/932 +.. _#934: https://github.com/httpie/httpie/issues/934 +.. _#943: https://github.com/httpie/httpie/issues/943 +.. _#963: https://github.com/httpie/httpie/issues/963 diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 8a466772..166076fb 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -53,7 +53,7 @@ Development Environment Getting the code **************** -Go to https://github.com/jakubroztocil/httpie and fork the project repository. +Go to https://github.com/httpie/httpie and fork the project repository. .. code-block:: bash @@ -132,7 +132,7 @@ Testing & CI Please add tests for any new features and bug fixes. When you open a pull request, -`GitHub Actions `_ +`GitHub Actions `_ will automatically run HTTPie’s `test suite`_ against your code so please make sure all checks pass. @@ -230,10 +230,10 @@ Use ``pytest`` to run tests locally with an active virtual environment: Finally, feel free to add yourself to `AUTHORS`_! -.. _existing issues: https://github.com/jakubroztocil/httpie/issues?state=open -.. _AUTHORS: https://github.com/jakubroztocil/httpie/blob/master/AUTHORS.rst -.. _Makefile: https://github.com/jakubroztocil/httpie/blob/master/Makefile +.. _existing issues: https://github.com/httpie/httpie/issues?state=open +.. _AUTHORS: https://github.com/httpie/httpie/blob/master/AUTHORS.rst +.. _Makefile: https://github.com/httpie/httpie/blob/master/Makefile .. _venv: https://docs.python.org/3/library/venv.html .. _pytest: https://pytest.org/ .. _Style Guide for Python Code: https://python.org/dev/peps/pep-0008/ -.. _test suite: https://github.com/jakubroztocil/httpie/tree/master/tests +.. _test suite: https://github.com/httpie/httpie/tree/master/tests diff --git a/MANIFEST.in b/MANIFEST.in index 545f82f2..b58818e6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,5 +3,5 @@ include README.rst include CHANGELOG.rst include AUTHORS.rst -# +# recursive-include tests/ * diff --git a/httpie/cli/definition.py b/httpie/cli/definition.py index 38f40aab..4e04a4bc 100644 --- a/httpie/cli/definition.py +++ b/httpie/cli/definition.py @@ -37,7 +37,7 @@ parser = HTTPieArgumentParser( Suggestions and bug reports are greatly appreciated: - https://github.com/jakubroztocil/httpie/issues + https://github.com/httpie/httpie/issues '''), ) diff --git a/httpie/client.py b/httpie/client.py index 34ce06ce..d6629dfa 100644 --- a/httpie/client.py +++ b/httpie/client.py @@ -134,7 +134,7 @@ def collect_messages( # noinspection PyProtectedMember @contextmanager def max_headers(limit): - # + # # noinspection PyUnresolvedReferences orig = http.client._MAXHEADERS http.client._MAXHEADERS = limit or float('Inf') @@ -188,7 +188,7 @@ def finalize_headers(headers: RequestHeadersDict) -> RequestHeadersDict: # Also, requests raises `InvalidHeader` for leading spaces. value = value.strip() if isinstance(value, str): - # See + # See value = value.encode('utf8') final_headers[name] = value return final_headers @@ -304,7 +304,7 @@ def ensure_path_as_is(orig_url: str, prepped_url: str) -> str: untouched because other (welcome) processing on the URL might have taken place. - + diff --git a/httpie/downloads.py b/httpie/downloads.py index 565a14d0..4bd136b1 100644 --- a/httpie/downloads.py +++ b/httpie/downloads.py @@ -247,7 +247,7 @@ class Downloader: assert not self.status.time_started # FIXME: some servers still might sent Content-Encoding: gzip - # + # try: total_size = int(final_response.headers['Content-Length']) except (KeyError, ValueError, TypeError): diff --git a/httpie/plugins/builtin.py b/httpie/plugins/builtin.py index 4c6dc445..837290c3 100644 --- a/httpie/plugins/builtin.py +++ b/httpie/plugins/builtin.py @@ -19,7 +19,7 @@ class HTTPBasicAuth(requests.auth.HTTPBasicAuth): """ Override username/password serialization to allow unicode. - See https://github.com/jakubroztocil/httpie/issues/212 + See https://github.com/httpie/httpie/issues/212 """ # noinspection PyTypeChecker diff --git a/tests/README.rst b/tests/README.rst index 6fbf97e6..ab7d518e 100644 --- a/tests/README.rst +++ b/tests/README.rst @@ -5,4 +5,4 @@ HTTPie Test Suite Please see `CONTRIBUTING`_. -.. _CONTRIBUTING: https://github.com/jakubroztocil/httpie/blob/master/CONTRIBUTING.rst +.. _CONTRIBUTING: https://github.com/httpie/httpie/blob/master/CONTRIBUTING.rst diff --git a/tests/test_auth.py b/tests/test_auth.py index 7160adac..e187bcea 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -58,7 +58,7 @@ def test_credentials_in_url_auth_flag_has_priority(httpbin_both): ]) def test_only_username_in_url(url): """ - https://github.com/jakubroztocil/httpie/issues/242 + https://github.com/httpie/httpie/issues/242 """ args = httpie.cli.definition.parser.parse_args(args=[url], env=MockEnvironment()) diff --git a/tests/test_defaults.py b/tests/test_defaults.py index 73489270..0aa367eb 100644 --- a/tests/test_defaults.py +++ b/tests/test_defaults.py @@ -11,7 +11,7 @@ from fixtures import FILE_PATH def test_default_headers_case_insensitive(httpbin): """ - + """ r = http( '--debug', @@ -63,7 +63,7 @@ class TestAutoContentTypeAndAcceptHeaders: """ def test_GET_no_data_no_auto_headers(self, httpbin): - # https://github.com/jakubroztocil/httpie/issues/62 + # https://github.com/httpie/httpie/issues/62 r = http('GET', httpbin.url + '/headers') assert HTTP_OK in r assert r.json['headers']['Accept'] == '*/*' @@ -94,7 +94,7 @@ class TestAutoContentTypeAndAcceptHeaders: assert HTTP_OK in r assert r.json['headers']['Accept'] == JSON_ACCEPT # Make sure Content-Type gets set even with no data. - # https://github.com/jakubroztocil/httpie/issues/137 + # https://github.com/httpie/httpie/issues/137 assert 'application/json' in r.json['headers']['Content-Type'] def test_GET_explicit_JSON_explicit_headers(self, httpbin): diff --git a/tests/test_httpie.py b/tests/test_httpie.py index 5a297071..422f4430 100644 --- a/tests/test_httpie.py +++ b/tests/test_httpie.py @@ -39,7 +39,7 @@ def test_debug(): def test_help(): r = http('--help', tolerate_error_exit_status=True) assert r.exit_status == ExitStatus.SUCCESS - assert 'https://github.com/jakubroztocil/httpie/issues' in r + assert 'https://github.com/httpie/httpie/issues' in r def test_version(): @@ -121,7 +121,7 @@ def test_POST_file(httpbin_both): def test_form_POST_file_redirected_stdin(httpbin): """ - + """ with open(FILE_PATH) as f: diff --git a/tests/test_output.py b/tests/test_output.py index 0f2b593d..7510408a 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -127,7 +127,7 @@ class TestVerboseFlag: assert r.count('__test__') == 2 def test_verbose_form(self, httpbin): - # https://github.com/jakubroztocil/httpie/issues/53 + # https://github.com/httpie/httpie/issues/53 r = http('--verbose', '--form', 'POST', httpbin.url + '/post', 'A=B', 'C=D') assert HTTP_OK in r diff --git a/tests/test_regressions.py b/tests/test_regressions.py index d07b4634..47779e30 100644 --- a/tests/test_regressions.py +++ b/tests/test_regressions.py @@ -7,7 +7,7 @@ from utils import HTTP_OK, MockEnvironment, http def test_Host_header_overwrite(httpbin): """ - https://github.com/jakubroztocil/httpie/issues/235 + https://github.com/httpie/httpie/issues/235 """ host = 'httpbin.org' @@ -21,7 +21,7 @@ def test_Host_header_overwrite(httpbin): @pytest.mark.skipif(is_windows, reason='Unix-only') def test_output_devnull(httpbin): """ - https://github.com/jakubroztocil/httpie/issues/252 + https://github.com/httpie/httpie/issues/252 """ http('--output=/dev/null', httpbin + '/get') diff --git a/tests/test_sessions.py b/tests/test_sessions.py index 7716b144..4fbc0031 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -193,7 +193,7 @@ class TestSession(SessionTestBase): def test_session_default_header_value_overwritten(self, httpbin): self.start_session(httpbin) - # https://github.com/jakubroztocil/httpie/issues/180 + # https://github.com/httpie/httpie/issues/180 r1 = http('--session=test', httpbin.url + '/headers', 'User-Agent:custom', env=self.env()) @@ -205,7 +205,7 @@ class TestSession(SessionTestBase): assert r2.json['headers']['User-Agent'] == 'custom' def test_download_in_session(self, httpbin): - # https://github.com/jakubroztocil/httpie/issues/412 + # https://github.com/httpie/httpie/issues/412 self.start_session(httpbin) cwd = os.getcwd() os.chdir(gettempdir()) diff --git a/tests/test_ssl.py b/tests/test_ssl.py index 197e7eed..69cb458f 100644 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -11,7 +11,7 @@ from utils import HTTP_OK, TESTS_ROOT, http try: # Handle OpenSSL errors, if installed. - # See + # See # noinspection PyUnresolvedReferences import OpenSSL.SSL ssl_errors = (