Skip to content

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
roo-oliv committed Feb 29, 2020
1 parent 8b0f9a7 commit da98cbb
Show file tree
Hide file tree
Showing 23 changed files with 75 additions and 59 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

0.2.1 (2020-02-29)
------------------

* Fix module finder for Windows

0.2.0 (2020-02-28)
------------------

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Overview
:alt: PyPI Package latest release
:target: https://pypi.org/project/pycollect

.. |commits-since| image:: https://img.shields.io/github/commits-since/allrod5/pycollect/0.2.0.svg
.. |commits-since| image:: https://img.shields.io/github/commits-since/allrod5/pycollect/0.2.1.svg
:alt: Commits since latest release
:target: https://github.com/allrod5/pycollect/compare/0.2.0...master
:target: https://github.com/allrod5/pycollect/compare/0.2.1...master

.. |wheel| image:: https://img.shields.io/pypi/wheel/pycollect.svg
:alt: PyPI Wheel
Expand Down
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: 1b2144b635cdbeff7602896438342b62
config: 3e9a42a988d74e992d363d637f8f3560
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 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Overview: module code &#8212; pycollect 0.2.0 documentation</title>
<title>Overview: module code &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

Expand All @@ -28,7 +28,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="../index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="../index.html">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand Down
11 changes: 7 additions & 4 deletions docs/_modules/pycollect/module_finder.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>pycollect.module_finder &#8212; pycollect 0.2.0 documentation</title>
<title>pycollect.module_finder &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="../../_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />

Expand All @@ -28,7 +28,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="../../index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="../../index.html">pycollect-0.2.1</a> &#187;</li>
<li><a href="../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
Expand Down Expand Up @@ -71,16 +71,19 @@ <h1>Source code for pycollect.module_finder</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">filepath</span><span class="p">,</span> <span class="n">DirEntry</span><span class="p">):</span>
<span class="n">filepath</span> <span class="o">=</span> <span class="n">filepath</span><span class="o">.</span><span class="n">path</span>

<span class="n">valid_module_name</span> <span class="o">=</span> <span class="kc">None</span>
<span class="n">module_name</span> <span class="o">=</span> <span class="n">splitext</span><span class="p">(</span><span class="n">basename</span><span class="p">(</span><span class="n">filepath</span><span class="p">))[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">full_path</span> <span class="o">=</span> <span class="n">Path</span><span class="p">(</span><span class="n">dirname</span><span class="p">(</span><span class="n">filepath</span><span class="p">))</span>
<span class="k">while</span> <span class="n">full_path</span><span class="o">.</span><span class="n">root</span> <span class="o">!=</span> <span class="n">full_path</span><span class="o">.</span><span class="n">as_posix</span><span class="p">():</span>
<span class="k">if</span> <span class="n">full_path</span><span class="o">.</span><span class="n">as_posix</span><span class="p">()</span> <span class="ow">in</span> <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="p">:</span>
<span class="n">at_root</span> <span class="o">=</span> <span class="kc">False</span>
<span class="k">while</span> <span class="ow">not</span> <span class="n">at_root</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">str</span><span class="p">(</span><span class="n">full_path</span><span class="p">)</span> <span class="ow">in</span> <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="p">:</span>
<span class="k">if</span> <span class="n">innermost</span><span class="p">:</span>
<span class="k">return</span> <span class="n">module_name</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">valid_module_name</span> <span class="o">=</span> <span class="n">module_name</span>
<span class="n">module_name</span> <span class="o">=</span> <span class="n">f</span><span class="s2">&quot;{basename(full_path)}.</span><span class="si">{module_name}</span><span class="s2">&quot;</span>
<span class="n">at_root</span> <span class="o">=</span> <span class="n">full_path</span><span class="o">.</span><span class="n">parent</span> <span class="o">==</span> <span class="n">full_path</span><span class="o">.</span><span class="n">parent</span><span class="o">.</span><span class="n">parent</span>
<span class="n">full_path</span> <span class="o">=</span> <span class="n">Path</span><span class="p">(</span><span class="n">full_path</span><span class="o">.</span><span class="n">parent</span><span class="p">)</span>
<span class="k">return</span> <span class="n">valid_module_name</span></div>
</pre></div>
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/pycollect/pycollect.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>pycollect.pycollect &#8212; pycollect 0.2.0 documentation</title>
<title>pycollect.pycollect &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="../../_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />

Expand All @@ -28,7 +28,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="../../index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="../../index.html">pycollect-0.2.1</a> &#187;</li>
<li><a href="../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/pycollect/python_file_collector.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>pycollect.python_file_collector &#8212; pycollect 0.2.0 documentation</title>
<title>pycollect.python_file_collector &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="../../_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />

Expand All @@ -28,7 +28,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="../../index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="../../index.html">pycollect-0.2.1</a> &#187;</li>
<li><a href="../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
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: '0.2.0',
VERSION: '0.2.1',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
4 changes: 2 additions & 2 deletions docs/authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Authors &#8212; pycollect 0.2.0 documentation</title>
<title>Authors &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand All @@ -30,7 +30,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="index.html">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand Down
39 changes: 23 additions & 16 deletions docs/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Changelog &#8212; pycollect 0.2.0 documentation</title>
<title>Changelog &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand All @@ -29,7 +29,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="index.html">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand All @@ -48,31 +48,37 @@ <h3>Navigation</h3>
<div class="section" id="changelog">
<h1>Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline"></a></h1>
<div class="section" id="id1">
<h2>0.2.0 (2020-02-28)<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<h2>0.2.1 (2020-02-29)<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>Added utility function to find a file’s module name</p></li>
<li><p>Fix module finder for Windows</p></li>
</ul>
</div>
<div class="section" id="id2">
<h2>0.1.1 (2020-02-24)<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<h2>0.2.0 (2020-02-28)<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>Update docs</p></li>
<li><p>Added utility function to find a file’s module name</p></li>
</ul>
</div>
<div class="section" id="id3">
<h2>0.1.0 (2019-12-22)<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<h2>0.1.1 (2020-02-24)<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>First beta release</p></li>
<li><p>Update docs</p></li>
</ul>
</div>
<div class="section" id="id4">
<h2>0.0.1 (2019-09-01)<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<h2>0.1.0 (2019-12-22)<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>Fix GitHub release workflow.</p></li>
<li><p>First beta release</p></li>
</ul>
</div>
<div class="section" id="id5">
<h2>0.0.0 (2019-08-31)<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h2>
<h2>0.0.1 (2019-09-01)<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>Fix GitHub release workflow.</p></li>
</ul>
</div>
<div class="section" id="id6">
<h2>0.0.0 (2019-08-31)<a class="headerlink" href="#id6" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>First release on PyPI.</p></li>
</ul>
Expand Down Expand Up @@ -106,11 +112,12 @@ <h3 id="searchlabel">Quick search</h3>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="authors.html">Authors</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Changelog</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id1">0.2.0 (2020-02-28)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id2">0.1.1 (2020-02-24)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id3">0.1.0 (2019-12-22)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id4">0.0.1 (2019-09-01)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id5">0.0.0 (2019-08-31)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id1">0.2.1 (2020-02-29)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id2">0.2.0 (2020-02-28)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id3">0.1.1 (2020-02-24)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id4">0.1.0 (2019-12-22)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id5">0.0.1 (2019-09-01)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id6">0.0.0 (2019-08-31)</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
year = "2019"
author = "Rodrigo Martins de Oliveira"
copyright = "{0}, {1}".format(year, author)
version = release = "0.2.0"
version = release = "0.2.1"

pygments_style = "trac"
templates_path = ["."]
Expand Down
4 changes: 2 additions & 2 deletions docs/contributing.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Contributing &#8212; pycollect 0.2.0 documentation</title>
<title>Contributing &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand All @@ -30,7 +30,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="index.html">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand Down
15 changes: 8 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Contents &#8212; pycollect 0.2.0 documentation</title>
<title>Contents &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand All @@ -29,7 +29,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="#">pycollect-0.2.0</a> &#187;</li>
<li><a href="#">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand Down Expand Up @@ -70,11 +70,12 @@ <h1>Contents<a class="headerlink" href="#contents" title="Permalink to this head
</li>
<li class="toctree-l1"><a class="reference internal" href="authors.html">Authors</a></li>
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a><ul>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id1">0.2.0 (2020-02-28)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id2">0.1.1 (2020-02-24)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id3">0.1.0 (2019-12-22)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id4">0.0.1 (2019-09-01)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id5">0.0.0 (2019-08-31)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id1">0.2.1 (2020-02-29)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id2">0.2.0 (2020-02-28)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id3">0.1.1 (2020-02-24)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id4">0.1.0 (2019-12-22)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id5">0.0.1 (2019-09-01)</a></li>
<li class="toctree-l2"><a class="reference internal" href="changelog.html#id6">0.0.0 (2019-08-31)</a></li>
</ul>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Installation &#8212; pycollect 0.2.0 documentation</title>
<title>Installation &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand All @@ -30,7 +30,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="index.html">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/objects.inv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sphinx inventory version 2
# Project: pycollect
# Version: 0.2.0
# Version: 0.2.1
# The remainder of this file is compressed using zlib.
xڍR;O�0��+,��B�n�jb�\��Xr�ȏB�=v.n*K��^���Q
�����
Expand Down
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 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Python Module Index &#8212; pycollect 0.2.0 documentation</title>
<title>Python Module Index &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand Down Expand Up @@ -35,7 +35,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="index.html">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand Down
6 changes: 3 additions & 3 deletions docs/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Overview &#8212; pycollect 0.2.0 documentation</title>
<title>Overview &#8212; pycollect 0.2.1 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand All @@ -30,7 +30,7 @@
<h3>Navigation</h3>
<ul>
<li class="responsive-menu"><a href="#sidebar-anchor" title="Navigation">&#9776;</a></li>
<li><a href="index.html">pycollect-0.2.0</a> &#187;</li>
<li><a href="index.html">pycollect-0.2.1</a> &#187;</li>
</ul>
</div>

Expand Down Expand Up @@ -67,7 +67,7 @@ <h1>Overview<a class="headerlink" href="#overview" title="Permalink to this head
<tr class="row-odd"><th class="stub"><p>package</p></th>
<td><div class="line-block">
<div class="line"><a class="reference external" href="https://pypi.org/project/pycollect"><img alt="PyPI Package latest release" src="https://img.shields.io/pypi/v/pycollect.svg" /></a> <a class="reference external" href="https://pypi.org/project/pycollect"><img alt="PyPI Wheel" src="https://img.shields.io/pypi/wheel/pycollect.svg" /></a> <a class="reference external" href="https://pypi.org/project/pycollect"><img alt="Supported versions" src="https://img.shields.io/pypi/pyversions/pycollect.svg" /></a> <a class="reference external" href="https://pypi.org/project/pycollect"><img alt="Supported implementations" src="https://img.shields.io/pypi/implementation/pycollect.svg" /></a></div>
<div class="line"><a class="reference external" href="https://github.com/allrod5/pycollect/compare/0.2.0...master"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/allrod5/pycollect/0.2.0.svg" /></a></div>
<div class="line"><a class="reference external" href="https://github.com/allrod5/pycollect/compare/0.2.1...master"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/allrod5/pycollect/0.2.1.svg" /></a></div>
</div>
</td>
</tr>
Expand Down

0 comments on commit da98cbb

Please sign in to comment.