Skip to content

Commit

Permalink
Bump version, re-build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Apr 6, 2023
1 parent c414e99 commit d4494b7
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 31 deletions.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 96f3264abcfe80d2f84e55735363b14c
config: ffffb8cda31b805b06a3be6d465a5e2a
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; versionedobj v2.0.3 documentation</title>
<title>Overview: module code &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -31,7 +31,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/versionedobj/object.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>versionedobj.object &mdash; versionedobj v2.0.3 documentation</title>
<title>versionedobj.object &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -31,7 +31,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
19 changes: 8 additions & 11 deletions docs/_modules/versionedobj/serializer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>versionedobj.serializer &mdash; versionedobj v2.0.3 documentation</title>
<title>versionedobj.serializer &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -31,7 +31,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down Expand Up @@ -90,24 +90,21 @@ <h1>Source code for versionedobj.serializer</h1><div class="highlight"><pre>
<span class="sd"> :param list only: List of &#39;only&#39; names</span>
<span class="sd"> :param list ignore: List of &#39;ignore&#39; names</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">parents</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">attrs_stack</span> <span class="o">=</span> <span class="p">[(</span><span class="kc">None</span><span class="p">,</span> <span class="n">parent_attrs</span><span class="p">)]</span>
<span class="n">attrs_stack</span> <span class="o">=</span> <span class="p">[(</span><span class="kc">None</span><span class="p">,</span> <span class="p">[],</span> <span class="n">parent_attrs</span><span class="p">)]</span>

<span class="k">while</span> <span class="n">attrs_stack</span><span class="p">:</span>
<span class="n">fieldname</span><span class="p">,</span> <span class="n">attrs</span> <span class="o">=</span> <span class="n">attrs_stack</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="k">if</span> <span class="n">fieldname</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">parents</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">fieldname</span><span class="p">)</span>
<span class="n">fieldname</span><span class="p">,</span> <span class="n">parents</span><span class="p">,</span> <span class="n">attrs</span> <span class="o">=</span> <span class="n">attrs_stack</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>

<span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">attrs</span><span class="p">:</span>
<span class="n">p</span> <span class="o">=</span> <span class="n">parents</span> <span class="k">if</span> <span class="n">fieldname</span> <span class="ow">is</span> <span class="kc">None</span> <span class="k">else</span> <span class="n">parents</span> <span class="o">+</span> <span class="p">[</span><span class="n">fieldname</span><span class="p">]</span>
<span class="n">value</span> <span class="o">=</span> <span class="n">attrs</span><span class="p">[</span><span class="n">n</span><span class="p">]</span>
<span class="n">field</span> <span class="o">=</span> <span class="n">_ObjField</span><span class="p">(</span><span class="n">parents</span><span class="p">,</span> <span class="n">n</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
<span class="n">dotname</span> <span class="o">=</span> <span class="n">field</span><span class="o">.</span><span class="n">dot_name</span><span class="p">()</span>
<span class="n">field</span> <span class="o">=</span> <span class="n">_ObjField</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="n">n</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
<span class="n">field_value</span> <span class="o">=</span> <span class="n">field</span><span class="o">.</span><span class="n">get_obj_field</span><span class="p">(</span><span class="n">obj</span><span class="p">)</span>

<span class="k">if</span> <span class="p">(</span><span class="nb">isinstance</span><span class="p">(</span><span class="n">field_value</span><span class="p">,</span> <span class="n">VersionedObject</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="o">==</span> <span class="nb">dict</span><span class="p">)):</span>
<span class="n">attrs_stack</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="n">n</span><span class="p">,</span> <span class="n">value</span><span class="p">))</span>
<span class="n">attrs_stack</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="n">n</span><span class="p">,</span> <span class="n">p</span><span class="p">,</span> <span class="n">value</span><span class="p">))</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">_field_should_be_skipped</span><span class="p">(</span><span class="n">dotname</span><span class="p">,</span> <span class="n">only</span><span class="p">,</span> <span class="n">ignore</span><span class="p">):</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">_field_should_be_skipped</span><span class="p">(</span><span class="n">field</span><span class="o">.</span><span class="n">dot_name</span><span class="p">(),</span> <span class="n">only</span><span class="p">,</span> <span class="n">ignore</span><span class="p">):</span>
<span class="k">yield</span> <span class="n">field</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: 'v2.0.3',
VERSION: 'v2.0.4',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
Binary file modified docs/_static/performance_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &mdash; versionedobj v2.0.3 documentation</title>
<title>Index &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -31,7 +31,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>versionedobj &mdash; versionedobj v2.0.3 documentation</title>
<title>versionedobj &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -33,7 +33,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down Expand Up @@ -86,6 +86,7 @@ <h1>versionedobj<a class="headerlink" href="#versionedobj" title="Permalink to t
</section>
<section id="object-serialization-versioning-framework-for-python-3x">
<h1>Object serialization &amp; versioning framework for python 3x<a class="headerlink" href="#object-serialization-versioning-framework-for-python-3x" title="Permalink to this heading"></a></h1>
<p><img alt="tests_badge" src="https://github.com/eriknyquist/versionedobj/actions/workflows/tests.yml/badge.svg" /> <img alt="cov_badge" src="https://github.com/eriknyquist/versionedobj/actions/workflows/coverage.yml/badge.svg" /> <img alt="version_badge" src="https://badgen.net/pypi/v/versionedobj" /> <img alt="license_badge" src="https://badgen.net/pypi/license/versionedobj" /> <img alt="codeclimate_badge" src="https://api.codeclimate.com/v1/badges/77e77f051600a584019a/maintainability" /></p>
<p><strong>versionedobj</strong> is an object serialization framework that allows you to create
complex python objects that can be serialized/deserialized to and from strings,
or dicts, or JSON files.</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>versionedobj &mdash; versionedobj v2.0.3 documentation</title>
<title>versionedobj &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -34,7 +34,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Python Module Index &mdash; versionedobj v2.0.3 documentation</title>
<title>Python Module Index &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -34,7 +34,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Search &mdash; versionedobj v2.0.3 documentation</title>
<title>Search &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />

Expand Down Expand Up @@ -34,7 +34,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="#" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/versionedobj.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>versionedobj package &mdash; versionedobj v2.0.3 documentation</title>
<title>versionedobj package &mdash; versionedobj v2.0.4 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -33,7 +33,7 @@
versionedobj
</a>
<div class="version">
v2.0.3
v2.0.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion sphinx_docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
copyright = '2022, Erik K. Nyquist'
author = 'Erik K. Nyquist'

version = 'v2.0.3'
version = 'v2.0.4'

# The full version, including alpha/beta/rc tags
release = version
Expand Down
2 changes: 1 addition & 1 deletion versionedobj/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.0.3"
__version__ = "2.0.4"

from versionedobj.types import ListField
from versionedobj.object import VersionedObject, CustomValue, migration
Expand Down

0 comments on commit d4494b7

Please sign in to comment.