From 9663d2fbd5ee9cf3fa78ff1064773bb89a1c4971 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 26 Aug 2022 08:06:34 +0200 Subject: [PATCH 1/3] Add fake setup.py --- setup.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000..7b44ded04a --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +import sys + +from setuptools import setup + +sys.stderr.write( + """ +=============================== +Unsupported installation method +=============================== +httpx no longer supports installation with `python setup.py install`. +Please use `python -m pip install .` instead. +""" +) +sys.exit(1) + + +# The below code will never execute, however GitHub is particularly +# picky about where it finds Python packaging metadata. +# See: https://github.com/github/feedback/discussions/6456 +# +# To be removed once GitHub catches up. + +setup( + name="httpx", + install_requires=[ + "certifi", + "sniffio", + "rfc3986[idna2008]>=1.3,<2", + "httpcore>=0.15.0,<0.16.0", + ], +) From 8d02cff44b94e9e0fb1e2aed2cc14d3669428b27 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 31 Aug 2022 07:45:08 +0200 Subject: [PATCH 2/3] Update setup.py --- setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup.py b/setup.py index 7b44ded04a..1cf69fb6c9 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,5 @@ import sys -from setuptools import setup - sys.stderr.write( """ =============================== From 6855ac7bcd2a9adfe5db94450cfec38713a04f03 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 31 Aug 2022 07:51:45 +0200 Subject: [PATCH 3/3] Update setup.py --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 1cf69fb6c9..7b44ded04a 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,7 @@ import sys +from setuptools import setup + sys.stderr.write( """ ===============================