Skip to content
Myr

setup.py

This file

Path

setup.py

31 lines · 694 bytes · Python

Last changed by

Add fake setup.py (#2351)Marcelo Trylesinskibefore adoption9f79b5c

History of this file

Take it

1import sys23from setuptools import setup45sys.stderr.write(6    """7===============================8Unsupported installation method9===============================10httpx no longer supports installation with `python setup.py install`.11Please use `python -m pip install .` instead.12"""13)14sys.exit(1)151617# The below code will never execute, however GitHub is particularly18# picky about where it finds Python packaging metadata.19# See: https://github.com/github/feedback/discussions/645620#21# To be removed once GitHub catches up.2223setup(24    name="httpx",25    install_requires=[26        "certifi",27        "sniffio",28        "rfc3986[idna2008]>=1.3,<2",29        "httpcore>=0.15.0,<0.16.0",30    ],31)