setup.py
This file
Path
setup.py
78 lines · 2.1 KiB · Python
Last changed by
Version 0.11.0 (#737)Tom Christiebefore adoption2c5fdc5
History of this fileTake it
The walk stopped after 200 commits: lines older than 640667d point at it.
Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 1–54why, 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",43 license="BSD",44 description="The next generation HTTP client.",45 long_description=get_long_description(),46 long_description_content_type="text/markdown",47 author="Tom Christie",48 author_email="tom@tomchristie.com",49 package_data={"httpx": ["py.typed"]},50 packages=get_packages("httpx"),51 include_package_data=True,52 zip_safe=False,53 install_requires=[54 "certifi",Concurrency autodetection (#585)Tom Christiebefore adoption3cbe731
line 55why, one step back55 "hstspreload",Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
line 56why, one step back56 "chardet==3.*",Upgrade h11 to support both 0.8 and 0.9 (#658)Tom Christiebefore adoptionbb6ab20
line 57why, one step back57 "h11>=0.8,<0.10",Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 58–59why, one step back58 "h2==3.*",59 "idna==2.*",Fixed version requirement for rfc3986. Issue reference #504 (#589)han-solobefore adoptiond223de8
line 60why, one step back60 "rfc3986>=1.3,<2",Concurrency autodetection (#585)Tom Christiebefore adoption3cbe731
line 61why, one step back61 "sniffio==1.*",Reintroduce sync API. (#735)Tom Christiebefore adoptionee37a76
line 62why, one step back62 "urllib3==1.*",Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 63–64why, one step back63 ],64 classifiers=[Version 0.11.0 (#737)Tom Christiebefore adoption2c5fdc5
line 65why, one step back65 "Development Status :: 4 - Beta",Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 66–70why, one step back66 "Environment :: Web Environment",67 "Intended Audience :: Developers",68 "License :: OSI Approved :: BSD License",69 "Operating System :: OS Independent",70 "Topic :: Internet :: WWW/HTTP",Add AsyncIO and Trio trove classifiers (#416)Quentin Pradetbefore adoption7f76a64
lines 71–72why, one step back71 "Framework :: AsyncIO",72 "Framework :: Trio",Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 73–78why, one step back73 "Programming Language :: Python :: 3",74 "Programming Language :: Python :: 3.6",75 "Programming Language :: Python :: 3.7",76 "Programming Language :: Python :: 3.8",77 ],78)