From 17e6e27a93131b7295165408e69b4cadb098b0d7 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Wed, 29 Dec 2021 15:29:09 -0700 Subject: [PATCH] General cleanup for 2.27.0 --- README.md | 8 ++++---- docs/community/faq.rst | 8 ++++---- setup.py | 8 ++++++-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 546871fa1e..807215ac56 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ```python >>> import requests ->>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) +>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] @@ -12,14 +12,14 @@ >>> r.encoding 'utf-8' >>> r.text -'{"type":"User"...' +'{"authenticated": true, ...' >>> r.json() -{'disk_usage': 368627, 'private_gists': 484, ...} +{'authenticated': True, ...} ``` Requests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your `PUT` & `POST` data — but nowadays, just use the `json` method! -Requests is one of the most downloaded Python packages today, pulling in around `30M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `500,000+` repositories. You may certainly put your trust in this code. +Requests is one of the most downloaded Python packages today, pulling in around `30M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `1,000,000+` repositories. You may certainly put your trust in this code. [![Downloads](https://pepy.tech/badge/requests/month)](https://pepy.tech/project/requests) [![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests) diff --git a/docs/community/faq.rst b/docs/community/faq.rst index fbdd9dadcc..c0a2f2e95a 100644 --- a/docs/community/faq.rst +++ b/docs/community/faq.rst @@ -60,11 +60,11 @@ Yes! Requests officially supports Python 2.7 & 3.6+ and PyPy. Python 2 Support? ----------------- -Yes! We do not have immediate plans to `sunset -`_ our support for Python -2.7. We understand that we have a large user base with varying needs. +Yes! We understand that we have a large user base with varying needs. Through +**at least** Requests 2.27.x, we will be providing continued support for Python +2.7. However, this support is likely to end some time in 2022. -That said, it is *highly* recommended users migrate to Python 3.6+ since Python +It is *highly* recommended users migrate to Python 3.7+ now since Python 2.7 is no longer receiving bug fixes or security updates as of January 1, 2020. What are "hostname doesn't match" errors? diff --git a/setup.py b/setup.py index 008565a6d3..c279c81ba9 100755 --- a/setup.py +++ b/setup.py @@ -84,9 +84,11 @@ def run_tests(self): zip_safe=False, classifiers=[ 'Development Status :: 5 - Production/Stable', + 'Environment :: Web Environment', 'Intended Audience :: Developers', - 'Natural Language :: English', 'License :: OSI Approved :: Apache Software License', + 'Natural Language :: English', + 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', @@ -97,7 +99,9 @@ def run_tests(self): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy' + 'Programming Language :: Python :: Implementation :: PyPy', + 'Topic :: Internet :: WWW/HTTP', + 'Topic :: Software Development :: Libraries', ], cmdclass={'test': PyTest}, tests_require=test_requirements,