setup.py
This file
Path
setup.py
99 lines · 2.9 KiB · Python
Last changed by
Drop EOL Python 3.6 (#2097)Ofek Levbefore adoption67c2970
History of this fileTake it
The walk stopped after 200 commits: lines older than 1816393 point at it.
Update README to reflect new estimate for v1.0 release (#1445)nkitsainibefore adoption1816393
lines 1–39why, one step back1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import re5from pathlib import Path67from setuptools import setup8910def get_version(package):11 """12 Return package version as listed in `__version__` in `init.py`.13 """14 version = Path(package, "__version__.py").read_text()15 return re.search("__version__ = ['\"]([^'\"]+)['\"]", version).group(1)161718def get_long_description():19 """20 Return the README.21 """22 long_description = ""23 with open("README.md", encoding="utf8") as f:24 long_description += f.read()25 long_description += "\n\n"26 with open("CHANGELOG.md", encoding="utf8") as f:27 long_description += f.read()28 return long_description293031def get_packages(package):32 """33 Return root package and all sub-packages.34 """35 return [str(path.parent) for path in Path(package).glob("**/__init__.py")]363738setup(39 name="httpx",Drop EOL Python 3.6 (#2097)Ofek Levbefore adoption67c2970
line 40why, one step back40 python_requires=">=3.7",Update README to reflect new estimate for v1.0 release (#1445)nkitsainibefore adoption1816393
lines 41–43why, one step back41 version=get_version("httpx"),42 url="https://github.com/encode/httpx",43 project_urls={Add Changelog link to PyPI page (#1462)Adam Johnsonbefore adoptiond964343
line 44why, one step back44 "Changelog": "https://github.com/encode/httpx/blob/master/CHANGELOG.md",Update README to reflect new estimate for v1.0 release (#1445)nkitsainibefore adoption1816393
lines 45–59why, one step back45 "Documentation": "https://www.python-httpx.org",46 "Source": "https://github.com/encode/httpx",47 },48 license="BSD",49 description="The next generation HTTP client.",50 long_description=get_long_description(),51 long_description_content_type="text/markdown",52 author="Tom Christie",53 author_email="tom@tomchristie.com",54 package_data={"httpx": ["py.typed"]},55 packages=get_packages("httpx"),56 include_package_data=True,57 zip_safe=False,58 install_requires=[59 "certifi",Add `charset_normalizer` detection. (#1791)Tom Christiebefore adoptionacb5e6a
line 60why, one step back60 "charset_normalizer",Update README to reflect new estimate for v1.0 release (#1445)nkitsainibefore adoption1816393
lines 61–62why, one step back61 "sniffio",62 "rfc3986[idna2008]>=1.3,<2",Version 0.22.0 (#2048)Tom Christiebefore adoption15c51b9
line 63why, one step back63 "httpcore>=0.14.5,<0.15.0",Drop StreamContextManager in favour of `contextlib.contextmanager`/`asynccontextmanager` (#1577)Tom Christiebefore adoption8fd5b71
line 64why, one step back64 "async_generator; python_version < '3.7'"Update README to reflect new estimate for v1.0 release (#1445)nkitsainibefore adoption1816393
lines 65–66why, one step back65 ],66 extras_require={Update HTTP/2 support in `extras_require` (#1799)Tom Christiebefore adoption50790af
line 67why, one step back67 "http2": "h2>=3,<5",SOCKS proxy support (#2034)Tom Christiebefore adoption8dc9b6b
line 68why, one step back68 "socks": "socksio==1.*",Use either brotli or brotlicffi. (#1618)Tom Christiebefore adoptiond514312
lines 69–72why, one step back69 "brotli": [70 "brotli; platform_python_implementation == 'CPython'",71 "brotlicffi; platform_python_implementation != 'CPython'"72 ],Add cli support (#1855)Tom Christiebefore adoptionee9250d
lines 73–74why, one step back73 "cli": [74 "click==8.*",Allow rich 12 (#2122)Raffaele Salmasobefore adoption4761276
line 75why, one step back75 "rich>=10,<13",Add cli support (#1855)Tom Christiebefore adoptionee9250d
lines 76–80why, one step back76 "pygments==2.*"77 ]78 },79 entry_points = {80 "console_scripts": "httpx=httpx:main"Update README to reflect new estimate for v1.0 release (#1445)nkitsainibefore adoption1816393
lines 81–95why, one step back81 },82 classifiers=[83 "Development Status :: 4 - Beta",84 "Environment :: Web Environment",85 "Intended Audience :: Developers",86 "License :: OSI Approved :: BSD License",87 "Operating System :: OS Independent",88 "Topic :: Internet :: WWW/HTTP",89 "Framework :: AsyncIO",90 "Framework :: Trio",91 "Programming Language :: Python :: 3",92 "Programming Language :: Python :: 3.6",93 "Programming Language :: Python :: 3.7",94 "Programming Language :: Python :: 3.8",95 "Programming Language :: Python :: 3.9",Test under Python 3.10b3 (#1707)Joebefore adoption6b93787
line 96why, one step back96 "Programming Language :: Python :: 3.10",Update README to reflect new estimate for v1.0 release (#1445)nkitsainibefore adoption1816393
lines 97–99why, one step back97 "Programming Language :: Python :: 3 :: Only",98 ],99)