Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Merge 493aca9 into 4e30b3e
Browse files Browse the repository at this point in the history
  • Loading branch information
repo-helper[bot] committed Jul 12, 2021
2 parents 4e30b3e + 493aca9 commit a33db18
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 22 deletions.
5 changes: 3 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ current_version = 3.0.1
commit = True
tag = True

[bumpversion:file:__pkginfo__.py]

[bumpversion:file:README.rst]

[bumpversion:file:doc-source/index.rst]
Expand All @@ -18,6 +16,9 @@ replace = : str = "{new_version}"

[bumpversion:file:pyproject.toml]

search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:setup.cfg]
search = version = {current_version}
replace = version = {new_version}
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exemptMilestones: false
exemptAssignees: false

# Label to use when marking as stale
staleLabel: wontfix
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs_test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
---
name: "Docs Check"
on:
- push
push:
pull_request:

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Flake8

on:
push:
pull_request:

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: mypy

on:
push:
pull_request:

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Windows

on:
push:
pull_request:

permissions:
actions: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Linux

on:
push:
pull_request:

permissions:
actions: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: macOS

on:
push:
pull_request:

permissions:
actions: write
Expand Down
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
exclude: ^$

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.3.0
hooks:
- id: reformat-pyproject

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
Expand Down Expand Up @@ -41,7 +46,7 @@ repos:
files: ^ytools/.*\.py$

- repo: https://github.com/domdfcoding/flake2lint
rev: v0.4.0
rev: v0.4.1
hooks:
- id: flake2lint

Expand All @@ -68,7 +73,7 @@ repos:
- id: forbid-crlf

- repo: https://github.com/repo-helper/formate
rev: v0.4.4
rev: v0.4.9
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
Expand Down
6 changes: 1 addition & 5 deletions __pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
# This script based on https://github.com/rocky/python-uncompyle6/blob/master/__pkginfo__.py
#

__all__ = [
"__version__",
"extras_require",
]
__all__ = ["extras_require"]

__version__ = "3.0.1"
extras_require = {}
10 changes: 9 additions & 1 deletion doc-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,13 @@
}

latex_elements = {
"fncychap": "\\usepackage[Bjarne]{fncychap}\n\\ChNameAsIs\n\\ChTitleAsIs\n",
"printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}",
"tableofcontents": "\\pdfbookmark[0]{\\contentsname}{toc}\\sphinxtableofcontents",
}


def setup(app):
# 3rd party
from sphinx_toolbox.latex import better_header_layout

app.connect("config-inited", lambda app, config: better_header_layout(config))
7 changes: 7 additions & 0 deletions doc-source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ytools3
.. start short_desc
.. documentation-summary::
:meta:

.. end short_desc
Expand Down Expand Up @@ -173,6 +174,12 @@ Installation
Source


.. sidebar-links::
:caption: Links
:github:
:pypi: ytools3


.. start links
.. only:: html
Expand Down
2 changes: 1 addition & 1 deletion doc-source/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sphinx-notfound-page>=0.5
sphinx-prompt>=1.1.0
sphinx-pyproject>=0.1.0
sphinx-tabs>=1.1.13
sphinx-toolbox>=2.9.0
sphinx-toolbox>=2.10.0
sphinxcontrib-httpdomain>=1.7.0
sphinxemoji>=0.1.6
tabulate>=0.8.7
Expand Down
24 changes: 16 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ Documentation = "https://ytools3.readthedocs.io/en/latest"
[project.scripts]
ytools = "ytools.__main__:main"

[tool.mkrecipe]
conda-channels = [ "domdfcoding",]
extras = "all"
license-key = "Apache2.0"
package = "ytools"

[tool.sphinx-pyproject]
github_username = "domdfcoding"
github_repository = "ytools3"
Expand All @@ -60,10 +54,10 @@ extensions = [
"sphinx_toolbox.more_autosummary",
"sphinx_toolbox.documentation_summary",
"sphinx_toolbox.tweaks.param_dash",
"sphinx_toolbox.tweaks.latex_layout",
"sphinx_toolbox.tweaks.latex_toc",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinxcontrib.httpdomain",
"sphinxcontrib.extras_require",
"sphinx.ext.todo",
"sphinxemoji.sphinxemoji",
Expand Down Expand Up @@ -94,7 +88,6 @@ toctree_plus_types = [
"exception",
"flag",
"function",
"method",
"namedtuple",
"protocol",
"role",
Expand Down Expand Up @@ -122,3 +115,18 @@ autodoc_exclude_members = [
"__abstractmethods__",
"__hash__",
]

[tool.whey]
base-classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
python-versions = [ "3.6", "3.7", "3.8", "3.9",]
python-implementations = [ "CPython",]
platforms = [ "Windows", "macOS", "Linux",]
license-key = "Apache2.0"
package = "ytools"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"Library for validating yaml files against schema and selectively dumping nodes from yaml (or json) documents in yaml or json format.",
extras_require=extras_require,
install_requires=install_requires,
name="ytools3",
py_modules=[],
version=__version__,
)

shutil.rmtree("ytools3.egg-info", ignore_errors=True)
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ deps =
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
pydocstyle>=6.0.0
pygments>=2.7.1
importlib_metadata<4.5.0; python_version<'3.8'
commands = python3 -m flake8_rst_docstrings_sphinx ytools tests --allow-toolbox {posargs}

[testenv:mypy]
Expand Down

0 comments on commit a33db18

Please sign in to comment.