Skip to content

Commit

Permalink
v4.0.x - Remove legacy python and add python3.8 support (#499)
Browse files Browse the repository at this point in the history
* Drop support for legacy Python 2.7

* Upgrade Python syntax with pyupgrade --py3-plus

* Trim testing matrix to remove python2

* re-enable python3.8 in travis as tests that are not allowed to fail

* Remove some six

* The future is now

* Remove Python 2 imports

* Add back example, but change py27 to py36

* Remove redundant compat.py

* Blacken

* Credit hugovk in changelog

WIP Updating Sphinx Docs and AutoDoc

* Fix AutoDoc and update Sphinx theme to python_doc_theme

* Fix #420, autodoc even undocumented (docstring-less) method signatures

* Doc theme 'nature'. Add global TOC to doc sidebar

* Comment last reference to package six

* Changelog is now a consistent format

* Yet another documentation fix for links and title hierarchy

* Start work on new SVG logo

test SVG in README

trying to test new SVG logo in README

Apply centering

Apply readme logo centering

Trying to align image

Trying random shit

trying align right

add emoji

Large logo has higher priority

Change title hierarchy

Actually use a H1

Try again

try and organise badges

revert link back to point at master

* updated new take on VCR logo as SVG code

* Testing modern logo in docs

* Add sanitize for rendering SVG

* Switch to alabaster theme

* Update vcrpy logo (#503)

* Add credit for V4 logo changes.

* Add rewind and play animation

* Add svg into ReadTheDocs static assets so that it can be hosted so the animations work.

* Need to embedd the SVG for ReadTheDocs somewhere so I can get the link to later embed in the README

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Sean Bailey <sean@seanbailey.io>
  • Loading branch information
3 people committed Dec 20, 2019
1 parent 41ca575 commit 4a8e80e
Show file tree
Hide file tree
Showing 57 changed files with 501 additions and 453 deletions.
14 changes: 1 addition & 13 deletions .travis.yml
Expand Up @@ -17,23 +17,11 @@ matrix:
# Only run lint on a single 3.x
- env: TOX_SUFFIX="lint"
python: "3.7"
allow_failures:
- env: TOX_SUFFIX="aiohttp"
python: "pypy3"
- python: "3.8-dev"
exclude:
# Exclude aiohttp support
- env: TOX_SUFFIX="aiohttp"
python: "2.7"
- env: TOX_SUFFIX="aiohttp"
python: "pypy"
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8-dev"
- "pypy"
- "3.8"
- "pypy3"
install:
- pip install tox-travis codecov
Expand Down
15 changes: 11 additions & 4 deletions README.rst
@@ -1,10 +1,17 @@

#########
VCR.py 📼
#########


|PyPI| |Python versions| |Build Status| |CodeCov| |Gitter| |CodeStyleBlack|

VCR.py
======
----

.. image:: https://raw.github.com/kevin1024/vcrpy/master/vcr.png
:alt: vcr.py
:alt: vcr.py logo
:align: right


This is a Python version of `Ruby's VCR
library <https://github.com/vcr/vcr>`__.
Expand Down Expand Up @@ -42,7 +49,7 @@ all HTTP interactions, which will update them to correspond to the new
API.

License
=======
-------

This library uses the MIT license. See `LICENSE.txt <LICENSE.txt>`__ for
more details
Expand Down
Binary file added docs/_static/vcr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions docs/_static/vcr.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/advanced.rst
Expand Up @@ -130,11 +130,11 @@ Finally, register your method with VCR to use your new request matcher.
Register your own cassette persister
------------------------------------

Create your own persistence class, see the :ref:`persister_example`.
Create your own persistence class, see the example below:

Your custom persister must implement both ``load_cassette`` and ``save_cassette``
methods. The ``load_cassette`` method must return a deserialized cassette or raise
``ValueError`` if no cassette is found.
``ValueError`` if no cassette is found.

Once the persister class is defined, register with VCR like so...

Expand All @@ -143,7 +143,7 @@ Once the persister class is defined, register with VCR like so...
import vcr
my_vcr = vcr.VCR()
class CustomerPersister(object):
class CustomerPersister:
# implement Persister methods...
my_vcr.register_persister(CustomPersister)
Expand Down

0 comments on commit 4a8e80e

Please sign in to comment.