Skip to content

Commit

Permalink
Merge pull request #201 from revesansparole/bug_sphinx_gallery_ignore…
Browse files Browse the repository at this point in the history
…_pattern

Bug sphinx gallery ignore pattern
  • Loading branch information
revesansparole committed Jun 4, 2020
2 parents a888d6c + c40e20a commit 8cf06aa
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .pkglts/pkg_cfg.json
Expand Up @@ -130,6 +130,6 @@
"version": {
"major": 5,
"minor": 1,
"post": 7
"post": 8
}
}
8 changes: 4 additions & 4 deletions .pkglts/pkg_hash.json
Expand Up @@ -43,7 +43,7 @@
},
"conda/meta.yaml": {
"conda.about": "6/RoaDh45Wwcc0uAhKGnUH46mczqPBQq/PV0cSCbe+fhiDQPOooOK8u24GzswyAcXIEHoASc/XIe+WS/2zBl5A==",
"conda.package": "WUel57uNtanSnWFV+OpUxSNTEnPse6LBbh1I6teb1jiQqEOxPolFTpm/SJIjbEzJ4kAmzIxywgdOrRwt4fYUdw==",
"conda.package": "2UaiytRMrbiP+kwmKt1qUKs3H3mz5UKAlmgIU2UmVVnn2ftyJfVMBAbItJEaZpCgWR7CQ4RfpjFMGeQelUWBYQ==",
"conda.req_build": "PHQ4LRj963FIG00GtdBBsC4RGzQPqOz8nxsL3g3mCpe6xaYzXaEMD/Eifbbfi+X+Z578AJlr/Qsw4fgVokh+vQ==",
"conda.req_run": "tAHRVsBmpT3G6fyAPJkEHz1WG4680wzFomYI2F+7oMSggoS73xMjEXINojQRwtSEgNIbUvcWxht0663/LYY8Yw==",
"conda.src": "Lzbp176AVU0YantZQxB4LsR2jbxpZ/OlkvY2V4aWAEuzKEarh872uc1eRvsIYf/FsbxvcmUI84AezWlA72nI6A=="
Expand All @@ -63,7 +63,7 @@
"doc/_static/nonempty.txt": {},
"doc/authors.rst": {},
"doc/conf.py": {
"sphinx": "moEeC1WmQnw66vu0F+YEX89LgvtwgTZUc3LHTKFJEfrgJhWcfVS/xLRslEl0TOxtOKdmaPk1ZrzyU8x3J8KkVA=="
"sphinx": "CojFx0O2OmJyISz9hhZBmyx8wtRaxdE22BgiTnsy7/7+ITh2tvQ0vnnLOzdaRF8Op5K38N24pNkVpEC4+y3FtA=="
},
"doc/contributing.rst": {},
"doc/history.rst": {},
Expand Down Expand Up @@ -98,7 +98,7 @@
},
"setup.py": {
"pysetup.call": "t30iIuCMd/sWxStR2XNYb8bCBgwanhKt8YYn2VKACyAqL5cKFRUWpVRIpAR+uxXUZ9PYYy2csMmECcONnRZE8w==",
"pysetup.kwds": "Tkif9ZKy2gItLm096oZBJ/WnWgRzIzYjd8PkpVgZatPksS5yijjwVD74JD4I2GoDwKpIix0V+DN50T4hJprVCA=="
"pysetup.kwds": "lIiWVkNArTD1HdXFWAbN4psKeyFed9diNtqdLSjcv1ZDqySWTaWA+Ohdwb4HYILzK6GzYFnMIu5JeSWh9sL7Cw=="
},
"src/pkglts/__init__.py": {
"src": "L2dZgUBRC5qv3o09+1CbMcgYfQtR1ZNSvP8KlP8REQazZiAQAktALjpCC2ijdxvKPv/tN9KsZrzNW+lZMszSfg==",
Expand All @@ -108,7 +108,7 @@
"data": "wwgLuV/OqHWjWbssvDHa4LNg+7C+tuNiKHOxkO+9UAl9opI/HfPyJAq2fPhUeTmVvb/E6MkqDJIli9m8n5/V0Q=="
},
"src/pkglts/version.py": {
"version": "LnrylGsdY9pEmM8Tc2U5d9meuMbpzzJ1/G0zMAZ4Xj2XETUa5rQdfR4OHGZuMhZw+qQqpsJZEQK1tAw78OWWkA=="
"version": "VIT3MnDAgiv579qSFqeYcemEFuMmJjKlyxz5V84RBktqcsGRgQuVxCpuFHsr/irM5X+9c54HrZtAvqy6NNQM3Q=="
},
"src/pkglts_data/__init__.py": {},
"test/__init__.py": {},
Expand Down
50 changes: 25 additions & 25 deletions .pkglts/pkg_version.json
@@ -1,27 +1,27 @@
{
"appveyor": "5.1.6",
"base": "5.1.6",
"conda": "5.1.6",
"coverage": "5.1.6",
"coveralls": "5.1.6",
"data": "5.1.6",
"doc": "5.1.6",
"flake8": "5.1.6",
"git": "5.1.6",
"github": "5.1.6",
"landscape": "5.1.6",
"lgtm": "5.1.6",
"license": "5.1.6",
"notebook": "5.1.6",
"pypi": "5.1.6",
"pysetup": "5.1.6",
"readthedocs": "5.1.6",
"reqs": "5.1.6",
"requires": "5.1.6",
"sphinx": "5.1.6",
"src": "5.1.6",
"test": "5.1.6",
"tox": "5.1.6",
"travis": "5.1.6",
"version": "5.1.6"
"appveyor": "5.1.7",
"base": "5.1.7",
"conda": "5.1.7",
"coverage": "5.1.7",
"coveralls": "5.1.7",
"data": "5.1.7",
"doc": "5.1.7",
"flake8": "5.1.7",
"git": "5.1.7",
"github": "5.1.7",
"landscape": "5.1.7",
"lgtm": "5.1.7",
"license": "5.1.7",
"notebook": "5.1.7",
"pypi": "5.1.7",
"pysetup": "5.1.7",
"readthedocs": "5.1.7",
"reqs": "5.1.7",
"requires": "5.1.7",
"sphinx": "5.1.7",
"src": "5.1.7",
"test": "5.1.7",
"tox": "5.1.7",
"travis": "5.1.7",
"version": "5.1.7"
}
2 changes: 1 addition & 1 deletion conda/meta.yaml
@@ -1,7 +1,7 @@
# {# pkglts, conda.package
package:
name: pkglts
version: "5.1.7"
version: "5.1.8"
# #}

# {# pkglts, conda.src
Expand Down
7 changes: 4 additions & 3 deletions doc/conf.py
Expand Up @@ -14,8 +14,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import re
import sys

# If extensions (or modules to document with autodoc) are in another
# directory, add these directories to sys.path here. If the directory is
Expand Down Expand Up @@ -97,9 +98,9 @@
#

# The short X.Y version.
version = "5.1.7"
version = "5.1.8"
# The full version, including alpha/beta/rc tags.
release = "5.1.7"
release = "5.1.8"


# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -24,7 +24,7 @@

setup_kwds = dict(
name='pkglts',
version="5.1.7",
version="5.1.8",
description=short_descr,
long_description=readme + '\n\n' + history,
author="revesansparole",
Expand Down
11 changes: 7 additions & 4 deletions src/pkglts/option/sphinx/resource/doc/conf.py.tpl
Expand Up @@ -14,8 +14,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import re
import sys
{%- if sphinx.gallery != "" %}
import warnings
{%- endif %}
Expand Down Expand Up @@ -74,9 +75,11 @@ except ImportError:

{% if sphinx.gallery != "" -%}
sphinx_gallery_conf = {
'examples_dirs': '../{{ sphinx.gallery }}', # path to your example scripts
'gallery_dirs': '_gallery', # path where to save gallery generated examples
'filename_pattern': 'plot_*',
'examples_dirs': "../{{ sphinx.gallery }}", # path to your example scripts
'gallery_dirs': "_gallery", # path where to save gallery generated examples
'filename_pattern': f"{re.escape(os.sep)}plot_",
'ignore_pattern': f"^((?!{re.escape(os.sep)}plot_).)*$",
'download_all_examples': False,
}
{%- endif %}

Expand Down
2 changes: 1 addition & 1 deletion src/pkglts/version.py
Expand Up @@ -10,7 +10,7 @@
MINOR = 1
"""(int) Version minor component."""

POST = 7
POST = 8
"""(int) Version post or bugfix component."""

__version__ = f"{MAJOR:d}.{MINOR:d}.{POST:d}"
Expand Down

0 comments on commit 8cf06aa

Please sign in to comment.