setup.py
This file
Path
setup.py
81 lines · 2.2 KiB · Python
Last changed by
Updates for httpcore 0.9 interface. (#967)Tom Christiebefore adoption9b6605c
History of this fileTake it
The walk stopped after 200 commits: lines older than f8794cb point at it.
Improve backend docs, particularly wrt. autodetection (#595)Tom Christiebefore adoptionf8794cb
lines 1–42why, 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",40 python_requires=">=3.6",41 version=get_version("httpx"),42 url="https://github.com/encode/httpx",Add docs and repo to project_urls metadata (#753)Hugo van Kemenadebefore adoption956129f
lines 43–46why, one step back43 project_urls={44 "Documentation": "https://www.python-httpx.org",45 "Source": "https://github.com/encode/httpx",46 },Improve backend docs, particularly wrt. autodetection (#595)Tom Christiebefore adoptionf8794cb
lines 47–59why, one step back47 license="BSD",48 description="The next generation HTTP client.",49 long_description=get_long_description(),50 long_description_content_type="text/markdown",51 author="Tom Christie",52 author_email="tom@tomchristie.com",53 package_data={"httpx": ["py.typed"]},54 packages=get_packages("httpx"),55 include_package_data=True,56 zip_safe=False,57 install_requires=[58 "certifi",59 "hstspreload",Version 0.13.0.dev2 (#941)Tom Christiebefore adoption97d488a
line 60why, one step back60 "sniffio",Improve backend docs, particularly wrt. autodetection (#595)Tom Christiebefore adoptionf8794cb
lines 61–63why, one step back61 "chardet==3.*",62 "idna==2.*",63 "rfc3986>=1.3,<2",Updates for httpcore 0.9 interface. (#967)Tom Christiebefore adoption9b6605c
line 64why, one step back64 "httpcore==0.9.*",Improve backend docs, particularly wrt. autodetection (#595)Tom Christiebefore adoptionf8794cb
lines 65–66why, one step back65 ],66 classifiers=[Version 0.11.0 (#737)Tom Christiebefore adoption2c5fdc5
line 67why, one step back67 "Development Status :: 4 - Beta",Improve backend docs, particularly wrt. autodetection (#595)Tom Christiebefore adoptionf8794cb
lines 68–78why, one step back68 "Environment :: Web Environment",69 "Intended Audience :: Developers",70 "License :: OSI Approved :: BSD License",71 "Operating System :: OS Independent",72 "Topic :: Internet :: WWW/HTTP",73 "Framework :: AsyncIO",74 "Framework :: Trio",75 "Programming Language :: Python :: 3",76 "Programming Language :: Python :: 3.6",77 "Programming Language :: Python :: 3.7",78 "Programming Language :: Python :: 3.8",Add docs and repo to project_urls metadata (#753)Hugo van Kemenadebefore adoption956129f
line 79why, one step back79 "Programming Language :: Python :: 3 :: Only",Improve backend docs, particularly wrt. autodetection (#595)Tom Christiebefore adoptionf8794cb
lines 80–81why, one step back80 ],81)