From 71e071c7d4813b679e7d526d58cdf21f0b6f2927 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 1 Jun 2023 10:06:03 +0800 Subject: [PATCH] chore: Release 0.13.0 (#307) --- .bumpversion.cfg | 2 +- cachecontrol/__init__.py | 2 +- docs/conf.py | 21 ++++++++++----------- docs/release_notes.rst | 13 +++++++++++++ setup.cfg | 3 --- setup.py | 2 +- 6 files changed, 26 insertions(+), 17 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 4e870445..d5160c98 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.12.11 +current_version = 0.13.0 files = setup.py cachecontrol/__init__.py docs/conf.py commit = True tag = True diff --git a/cachecontrol/__init__.py b/cachecontrol/__init__.py index 1c78a9af..2d794740 100644 --- a/cachecontrol/__init__.py +++ b/cachecontrol/__init__.py @@ -8,7 +8,7 @@ """ __author__ = "Eric Larson" __email__ = "eric@ionrock.org" -__version__ = "0.12.11" +__version__ = "0.13.0" from cachecontrol.adapter import CacheControlAdapter from cachecontrol.controller import CacheController diff --git a/docs/conf.py b/docs/conf.py index d1e138d8..04a12ea1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,7 +15,6 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -44,17 +43,17 @@ master_doc = "index" # General information about the project. -project = u"CacheControl" -copyright = u"2013, Eric Larson" +project = "CacheControl" +copyright = "2013, Eric Larson" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = "0.12.11" +version = "0.13.0" # The full version, including alpha/beta/rc tags. -release = "0.12.11" +release = "0.13.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -124,7 +123,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ["_static"] +# html_static_path = ["_static"] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. @@ -188,8 +187,8 @@ ( "index", "CacheControl.tex", - u"CacheControl Documentation", - u"Eric Larson", + "CacheControl Documentation", + "Eric Larson", "manual", ) ] @@ -220,7 +219,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ("index", "cachecontrol", u"CacheControl Documentation", [u"Eric Larson"], 1) + ("index", "cachecontrol", "CacheControl Documentation", ["Eric Larson"], 1) ] # If true, show URL addresses after external links. @@ -236,8 +235,8 @@ ( "index", "CacheControl", - u"CacheControl Documentation", - u"Eric Larson", + "CacheControl Documentation", + "Eric Larson", "CacheControl", "One line description of project.", "Miscellaneous", diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 6b2f9ff5..480852e3 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -7,6 +7,19 @@ Release Notes =============== +0.13.0 +====== + +The project has been moved to the `PSF `_ organization. + +* Discard the ``strict`` attribute when serializing and deserializing responses. +* Fix the ``IncompleteRead`` error thrown by ``urllib3 2.0``. +* Remove usage of ``utcnow`` in favor of timezone-aware datetimes. +* Remove the ``compat`` module. +* Use Python's ``unittest.mock`` library instead of ``mock``. +* Add type annotations. +* Exclude the ``tests`` directory from the wheel. + 0.12.11 ======= diff --git a/setup.cfg b/setup.cfg index 58aa3396..7849c48e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,9 +9,6 @@ license_files = [tool:pytest] norecursedirs = bin lib include build -[bdist_wheel] -universal = 1 - [mypy] show_error_codes = true strict = true diff --git a/setup.py b/setup.py index 0e5ad91d..6f84263e 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = open("README.rst").read() -VERSION = "0.12.11" +VERSION = "0.13.0" setup_params = dict( name="CacheControl",