deckbridge 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- deckbridge-0.1.0/.bumpversion.cfg +6 -0
- deckbridge-0.1.0/.coveragerc +8 -0
- deckbridge-0.1.0/CHANGELOG.md +5 -0
- deckbridge-0.1.0/LICENSE +21 -0
- deckbridge-0.1.0/MANIFEST.in +24 -0
- deckbridge-0.1.0/Makefile +15 -0
- deckbridge-0.1.0/PKG-INFO +82 -0
- deckbridge-0.1.0/README.md +24 -0
- deckbridge-0.1.0/build_conda.sh +15 -0
- deckbridge-0.1.0/conda_recipe/meta.yaml +28 -0
- deckbridge-0.1.0/docs/source/api/deckbridge.getting_started.rst +7 -0
- deckbridge-0.1.0/docs/source/api/deckbridge.rst +15 -0
- deckbridge-0.1.0/docs/source/api/modules.rst +7 -0
- deckbridge-0.1.0/docs/source/conf.py +171 -0
- deckbridge-0.1.0/environment.yml +13 -0
- deckbridge-0.1.0/make_docs.sh +6 -0
- deckbridge-0.1.0/pyproject.toml +207 -0
- deckbridge-0.1.0/requirements.txt +6 -0
- deckbridge-0.1.0/setup.cfg +8 -0
- deckbridge-0.1.0/src/deckbridge/__init__.py +7 -0
- deckbridge-0.1.0/src/deckbridge/_git_version.py +547 -0
- deckbridge-0.1.0/src/deckbridge/_version.py +3 -0
- deckbridge-0.1.0/src/deckbridge/auth/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/auth/drive_folders.py +24 -0
- deckbridge-0.1.0/src/deckbridge/auth/google_auth.py +36 -0
- deckbridge-0.1.0/src/deckbridge/auth/session.py +63 -0
- deckbridge-0.1.0/src/deckbridge/backends/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/backends/base.py +3 -0
- deckbridge-0.1.0/src/deckbridge/backends/gslides_backend.py +15 -0
- deckbridge-0.1.0/src/deckbridge/backends/pptx_backend.py +11 -0
- deckbridge-0.1.0/src/deckbridge/config.py +1 -0
- deckbridge-0.1.0/src/deckbridge/deck/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/deck/blocks.py +9 -0
- deckbridge-0.1.0/src/deckbridge/deck/deck.py +15 -0
- deckbridge-0.1.0/src/deckbridge/deck/specs.py +18 -0
- deckbridge-0.1.0/src/deckbridge/layouts/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/layouts/registry.py +53 -0
- deckbridge-0.1.0/src/deckbridge/renderers/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/renderers/gslides/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/renderers/gslides/chart_builder.py +80 -0
- deckbridge-0.1.0/src/deckbridge/renderers/gslides/chart_compiler.py +39 -0
- deckbridge-0.1.0/src/deckbridge/renderers/gslides/chart_embedder.py +34 -0
- deckbridge-0.1.0/src/deckbridge/renderers/gslides/renderer.py +143 -0
- deckbridge-0.1.0/src/deckbridge/renderers/gslides/sheets_writer.py +24 -0
- deckbridge-0.1.0/src/deckbridge/renderers/gslides/utils.py +12 -0
- deckbridge-0.1.0/src/deckbridge/renderers/pptx/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/renderers/pptx/chart_compiler.py +36 -0
- deckbridge-0.1.0/src/deckbridge/renderers/pptx/renderer.py +95 -0
- deckbridge-0.1.0/src/deckbridge/templates/__init__.py +0 -0
- deckbridge-0.1.0/src/deckbridge/templates/default.pptx +0 -0
- deckbridge-0.1.0/src/deckbridge.egg-info/PKG-INFO +82 -0
- deckbridge-0.1.0/src/deckbridge.egg-info/SOURCES.txt +60 -0
- deckbridge-0.1.0/src/deckbridge.egg-info/dependency_links.txt +1 -0
- deckbridge-0.1.0/src/deckbridge.egg-info/requires.txt +42 -0
- deckbridge-0.1.0/src/deckbridge.egg-info/top_level.txt +1 -0
- deckbridge-0.1.0/tests/__init__.py +0 -0
- deckbridge-0.1.0/tests/conftest.py +14 -0
- deckbridge-0.1.0/tests/test_dependencies.py +73 -0
- deckbridge-0.1.0/tests/test_flake8.py +28 -0
- deckbridge-0.1.0/tests/test_getting_started.py +20 -0
- deckbridge-0.1.0/versioneer.py +1735 -0
deckbridge-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Joseph Cobb
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
include *.ini
|
|
2
|
+
include *.md
|
|
3
|
+
include *.py
|
|
4
|
+
include *.rst
|
|
5
|
+
include *.sh
|
|
6
|
+
include *.txt
|
|
7
|
+
include *.toml
|
|
8
|
+
include *.yml
|
|
9
|
+
|
|
10
|
+
include .bumpversion.cfg
|
|
11
|
+
include .coveragerc
|
|
12
|
+
include Makefile
|
|
13
|
+
|
|
14
|
+
recursive-include conda_recipe *.yaml
|
|
15
|
+
recursive-include docs *.py
|
|
16
|
+
recursive-include docs *.rst
|
|
17
|
+
recursive-include tests *.py
|
|
18
|
+
|
|
19
|
+
recursive-include src *.pptx
|
|
20
|
+
recursive-include src *.sql
|
|
21
|
+
recursive-include src *.yml
|
|
22
|
+
recursive-include src *.yaml
|
|
23
|
+
|
|
24
|
+
prune .ipynb_checkpoints
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
SHELL := /bin/bash
|
|
2
|
+
|
|
3
|
+
sphinx:
|
|
4
|
+
@ . make_docs.sh
|
|
5
|
+
|
|
6
|
+
ghpages:
|
|
7
|
+
rm -R -f docs_temp && \
|
|
8
|
+
cp -r docs/ docs_temp/ && \
|
|
9
|
+
git checkout gh-pages && \
|
|
10
|
+
rm -R -f docs/ && \
|
|
11
|
+
cp -r docs_temp/ docs/ && \
|
|
12
|
+
rm -R -f docs_temp/ && \
|
|
13
|
+
git add -u && \
|
|
14
|
+
git add -A && \
|
|
15
|
+
PRE_COMMIT_ALLOW_NO_CONFIG=1 git commit -m "Updated generated Sphinx documentation"
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deckbridge
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Deck builder for analytics.
|
|
5
|
+
Author-email: Joseph Cobb <josephxcobb@gmail.com>
|
|
6
|
+
Project-URL: repository, https://github.com/josephcobb111/deckbridge
|
|
7
|
+
Classifier: Natural Language :: English
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Classifier: Programming Language :: Python
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/x-rst
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: google-api-python-client
|
|
15
|
+
Requires-Dist: google-auth
|
|
16
|
+
Requires-Dist: google-auth-httplib2
|
|
17
|
+
Requires-Dist: google-auth-oauthlib
|
|
18
|
+
Requires-Dist: pandas
|
|
19
|
+
Requires-Dist: python-pptx
|
|
20
|
+
Provides-Extra: docs
|
|
21
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
22
|
+
Requires-Dist: furo; extra == "docs"
|
|
23
|
+
Requires-Dist: myst-parser; extra == "docs"
|
|
24
|
+
Provides-Extra: tests
|
|
25
|
+
Requires-Dist: coverage; extra == "tests"
|
|
26
|
+
Requires-Dist: mypy; extra == "tests"
|
|
27
|
+
Requires-Dist: pytest>=6.0; extra == "tests"
|
|
28
|
+
Requires-Dist: pytest-cov; extra == "tests"
|
|
29
|
+
Requires-Dist: pyyaml; extra == "tests"
|
|
30
|
+
Requires-Dist: types-pyyaml; extra == "tests"
|
|
31
|
+
Provides-Extra: qa
|
|
32
|
+
Requires-Dist: check-manifest; extra == "qa"
|
|
33
|
+
Requires-Dist: pre-commit; extra == "qa"
|
|
34
|
+
Requires-Dist: pre-commit-hooks; extra == "qa"
|
|
35
|
+
Requires-Dist: mypy; extra == "qa"
|
|
36
|
+
Requires-Dist: edgetest; extra == "qa"
|
|
37
|
+
Requires-Dist: ruff; extra == "qa"
|
|
38
|
+
Requires-Dist: black; extra == "qa"
|
|
39
|
+
Requires-Dist: flake8; extra == "qa"
|
|
40
|
+
Requires-Dist: isort; extra == "qa"
|
|
41
|
+
Requires-Dist: pylint; extra == "qa"
|
|
42
|
+
Provides-Extra: build
|
|
43
|
+
Requires-Dist: twine; extra == "build"
|
|
44
|
+
Requires-Dist: wheel; extra == "build"
|
|
45
|
+
Requires-Dist: bump2version; extra == "build"
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Requires-Dist: deckbridge[docs]; extra == "dev"
|
|
48
|
+
Requires-Dist: deckbridge[tests]; extra == "dev"
|
|
49
|
+
Requires-Dist: deckbridge[qa]; extra == "dev"
|
|
50
|
+
Requires-Dist: deckbridge[build]; extra == "dev"
|
|
51
|
+
Dynamic: license-file
|
|
52
|
+
|
|
53
|
+
# deckbridge
|
|
54
|
+
|
|
55
|
+
[](https://www.python.org)
|
|
56
|
+
[](https://github.com/astral-sh/ruff)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## Quick Start
|
|
60
|
+
|
|
61
|
+
Create a virtual environment with Python 3.9 and install from git:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
pip install git+ssh://git@github.com/josephcobb111/deckbridge.git
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Documentation
|
|
68
|
+
|
|
69
|
+
Full documentation is available on [GitHub Pages](https://github.com/josephcobb111/deckbridge/build/html/index.html)
|
|
70
|
+
|
|
71
|
+
## Bugs / Requests
|
|
72
|
+
Please use the [GitHub issue tracker](https://github.com/josephcobb111/deckbridge/issues) to submit bugs or request features.
|
|
73
|
+
|
|
74
|
+
## Changelog
|
|
75
|
+
|
|
76
|
+
Consult the [Changelog](https://github.com/josephcobb111/deckbridge/build/html/changelog.html) for the latest release information.
|
|
77
|
+
|
|
78
|
+
# Changelog
|
|
79
|
+
|
|
80
|
+
## 0.1.0
|
|
81
|
+
|
|
82
|
+
The initial setup of this project.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# deckbridge
|
|
2
|
+
|
|
3
|
+
[](https://www.python.org)
|
|
4
|
+
[](https://github.com/astral-sh/ruff)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
Create a virtual environment with Python 3.9 and install from git:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
pip install git+ssh://git@github.com/josephcobb111/deckbridge.git
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
Full documentation is available on [GitHub Pages](https://github.com/josephcobb111/deckbridge/build/html/index.html)
|
|
18
|
+
|
|
19
|
+
## Bugs / Requests
|
|
20
|
+
Please use the [GitHub issue tracker](https://github.com/josephcobb111/deckbridge/issues) to submit bugs or request features.
|
|
21
|
+
|
|
22
|
+
## Changelog
|
|
23
|
+
|
|
24
|
+
Consult the [Changelog](https://github.com/josephcobb111/deckbridge/build/html/changelog.html) for the latest release information.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
conda create -n conda_build python=3.9 boa conda-build -y
|
|
2
|
+
conda activate conda_build
|
|
3
|
+
rm -R -f conda-pkg
|
|
4
|
+
mkdir conda-pkg
|
|
5
|
+
conda build conda_recipe/ --output-folder conda-pkg
|
|
6
|
+
conda install -c file://${HOME}/deckbridge/conda-pkg/ deckbridge -y
|
|
7
|
+
conda install pytest pytest-cov flake8 -y
|
|
8
|
+
pytest
|
|
9
|
+
|
|
10
|
+
# To upload to cloud
|
|
11
|
+
# anaconda login
|
|
12
|
+
# anaconda upload <PATH-TO-PACKAGE>.tar.bz2
|
|
13
|
+
# e.g.,
|
|
14
|
+
# anaconda login
|
|
15
|
+
# anaconda upload conda-pkg/noarch/deckbridge-0.1.0-py_0.tar.bz2
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
package:
|
|
2
|
+
name: deckbridge
|
|
3
|
+
version: "0.1.0"
|
|
4
|
+
|
|
5
|
+
source:
|
|
6
|
+
path: ../
|
|
7
|
+
|
|
8
|
+
build:
|
|
9
|
+
noarch: python
|
|
10
|
+
number: 0
|
|
11
|
+
script: python -m pip install --no-deps --ignore-installed .
|
|
12
|
+
|
|
13
|
+
requirements:
|
|
14
|
+
host:
|
|
15
|
+
- python
|
|
16
|
+
- setuptools
|
|
17
|
+
run:
|
|
18
|
+
- python>=3.9
|
|
19
|
+
- google-api-python-client
|
|
20
|
+
- google-auth
|
|
21
|
+
- google-auth-httplib2
|
|
22
|
+
- google-auth-oauthlib
|
|
23
|
+
- pandas
|
|
24
|
+
- python-pptx
|
|
25
|
+
|
|
26
|
+
test:
|
|
27
|
+
imports:
|
|
28
|
+
- pandas
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"""Configuration file for the Sphinx documentation builder."""
|
|
2
|
+
|
|
3
|
+
# This file only contains a selection of the most common options.
|
|
4
|
+
# For a full list see the documentation:
|
|
5
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
6
|
+
|
|
7
|
+
# -- Path setup -----------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
# If extensions (or modules to document with autodoc) are in anotehr directory, add these directories to sys.path here.
|
|
10
|
+
# If the directory is relative to the documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
11
|
+
|
|
12
|
+
import importlib.metadata as metadata
|
|
13
|
+
import os
|
|
14
|
+
import sys
|
|
15
|
+
|
|
16
|
+
sys.path.insert(0, os.path.abspath(".."))
|
|
17
|
+
|
|
18
|
+
# -- Project information --------------------------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
project = "deckbridge"
|
|
21
|
+
copyright = "MIT License"
|
|
22
|
+
author = "Joseph Cobb"
|
|
23
|
+
release = metadata.version("deckbridge")
|
|
24
|
+
|
|
25
|
+
# -- General configuration ------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
# If your documentation needs a minimal sphinx version, state it here.
|
|
28
|
+
|
|
29
|
+
# needs_sphinx = '1.0'
|
|
30
|
+
|
|
31
|
+
# Add any Sphinx extension module names here, as strings.
|
|
32
|
+
# They can be extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
|
33
|
+
extensions = [
|
|
34
|
+
"sphinx.ext.autodoc",
|
|
35
|
+
"sphinx.ext.doctest",
|
|
36
|
+
"sphinx.ext.todo",
|
|
37
|
+
"sphinx.ext.coverage",
|
|
38
|
+
"sphinx.ext.imgmath",
|
|
39
|
+
"sphinx.ext.viewcode",
|
|
40
|
+
"sphinx.ext.githubpages",
|
|
41
|
+
"sphinx.ext.napoleon",
|
|
42
|
+
"myst_parser",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
46
|
+
templates_path = ["_templates"]
|
|
47
|
+
|
|
48
|
+
# The suffix(es) of source filenames.
|
|
49
|
+
# You can specify multiple suffix as a list of string:
|
|
50
|
+
# The defaults are to use RST which is fine for this configuration.
|
|
51
|
+
source_suffix = [".rst", ".md"]
|
|
52
|
+
|
|
53
|
+
# THe master toctree document
|
|
54
|
+
master_doc = "index"
|
|
55
|
+
|
|
56
|
+
# The language for content autogenerated by Sphinx.
|
|
57
|
+
# Refer to documentation for a list of supported languages
|
|
58
|
+
|
|
59
|
+
# This is also used if you do content translation via gettext catalogs.
|
|
60
|
+
# Usually you set "language" fro mthe command line for these cases.
|
|
61
|
+
|
|
62
|
+
# List of patterns, relative to source directory, that match files and directories to ignore when looking for source files.
|
|
63
|
+
# This pattern also affects html_static_path and html_extra_path.
|
|
64
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|
65
|
+
|
|
66
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
67
|
+
# The read-the-doc theme has good defaults with a light color.
|
|
68
|
+
# If you want the yellow highlight uncomment the style for sphinx below.
|
|
69
|
+
# pygments_style = 'sphinx'
|
|
70
|
+
|
|
71
|
+
# -- Options for HTML output ----------------------------------------------------------------------
|
|
72
|
+
|
|
73
|
+
# The theme to use for HTML and HTML Help pages.
|
|
74
|
+
# See the documentation for a list of builtin themes.
|
|
75
|
+
html_theme = "furo"
|
|
76
|
+
html_title = "deckbridge"
|
|
77
|
+
|
|
78
|
+
# Add any paths that contain custom static files (such as style sheets) here, relative to this directory.
|
|
79
|
+
# They are copied after the builtin static files, so a file named "default.css" will overwrite the builtin "default.css".
|
|
80
|
+
html_static_path = ["_static"]
|
|
81
|
+
|
|
82
|
+
# Custom sidebar templates, must be a dictionary that maps document names to template names.
|
|
83
|
+
|
|
84
|
+
# The default sidebars (for documents that don't match any pattern) are defined by theme itself.
|
|
85
|
+
# Builtin themes are using these templates by default:
|
|
86
|
+
# ``['localtoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html']``
|
|
87
|
+
|
|
88
|
+
# This is required for the alabaster theme
|
|
89
|
+
# refs: http://alabaster.readthedocs/io/en/latest/installation.html#sidebars
|
|
90
|
+
|
|
91
|
+
# -- Options for HTMLHelp output ------------------------------------------------------------------
|
|
92
|
+
|
|
93
|
+
# Output file base name for HTML help builder.
|
|
94
|
+
htmlhelp_basename = "deckbridgedoc"
|
|
95
|
+
|
|
96
|
+
# -- Options for LaTeX output ---------------------------------------------------------------------
|
|
97
|
+
|
|
98
|
+
latex_elements = {
|
|
99
|
+
# The paper size ('letterpaper' or 'a4paper')
|
|
100
|
+
# 'papersize': 'letterpaper',
|
|
101
|
+
# The font size ('10pt', '11pt' or '12pt')
|
|
102
|
+
# 'pointsize': '10pt',
|
|
103
|
+
# Additional stuff for the LaTeX preamble.
|
|
104
|
+
# 'preamble': '',
|
|
105
|
+
# LaTeX figure (float) alignment
|
|
106
|
+
# 'figure_align': 'htbp',
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
# Grouping the document tree into LaTeX files.
|
|
110
|
+
# List of tuples (source start file, target name, title, author, documentclass [howto, manual, or own class])
|
|
111
|
+
latex_documents = [
|
|
112
|
+
(
|
|
113
|
+
"latex_index", # this uses a separate section from index.rst
|
|
114
|
+
"deckbridge.tex",
|
|
115
|
+
"deckbridge Documentation",
|
|
116
|
+
"Joseph Cobb",
|
|
117
|
+
"manual",
|
|
118
|
+
)
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
latex_logo = ""
|
|
122
|
+
|
|
123
|
+
# For "manual" documents, if this is true, then toplevel headings are parts, not chapters.
|
|
124
|
+
# latex_use_parts = True
|
|
125
|
+
|
|
126
|
+
# If true, show page references after internal links.
|
|
127
|
+
latex_show_pagerefs = True
|
|
128
|
+
|
|
129
|
+
# If true, show URL addresses after external links.
|
|
130
|
+
# latex_show_urls = False
|
|
131
|
+
|
|
132
|
+
# Additional stuff for the LaTeX preamble.
|
|
133
|
+
# latex_preamble = ''
|
|
134
|
+
|
|
135
|
+
# Documents to append as an appendix to all manuals.
|
|
136
|
+
# latex_appendices = []
|
|
137
|
+
|
|
138
|
+
# If false, no module index is generated.
|
|
139
|
+
latex_domain_indices = False
|
|
140
|
+
|
|
141
|
+
# -- Options for manual page output ---------------------------------------------------------------
|
|
142
|
+
|
|
143
|
+
# One entry per manual page.
|
|
144
|
+
# List of tuples (source start file, name, description, authors, manual section)
|
|
145
|
+
man_pages = [(master_doc, "deckbridge", "deckbridge Documentation", [author], 1)]
|
|
146
|
+
|
|
147
|
+
# -- Options for Texinfo output -------------------------------------------------------------------
|
|
148
|
+
|
|
149
|
+
# Grouping the document tree into Texinfo files.
|
|
150
|
+
# List of tuples (source start file, target name, title author, dir menu entry, description, category)
|
|
151
|
+
texinfo_documents = [
|
|
152
|
+
(
|
|
153
|
+
master_doc,
|
|
154
|
+
"deckbridge",
|
|
155
|
+
"deckbridge Documentation",
|
|
156
|
+
author,
|
|
157
|
+
"deckbridge",
|
|
158
|
+
"One line description of project",
|
|
159
|
+
"Miscellaneous",
|
|
160
|
+
)
|
|
161
|
+
]
|
|
162
|
+
|
|
163
|
+
# -- Extension configuration ----------------------------------------------------------------------
|
|
164
|
+
|
|
165
|
+
# -- Options for todo extension -------------------------------------------------------------------
|
|
166
|
+
|
|
167
|
+
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
|
168
|
+
todo_include_todos = True
|
|
169
|
+
|
|
170
|
+
# -- Options for myst headings --------------------------------------------------------------------
|
|
171
|
+
myst_heading_anchors = 3
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "deckbridge"
|
|
3
|
+
requires-python = ">=3.9"
|
|
4
|
+
description = "Deck builder for analytics."
|
|
5
|
+
authors = [
|
|
6
|
+
{name = "Joseph Cobb", email = "josephxcobb@gmail.com"}
|
|
7
|
+
]
|
|
8
|
+
classifiers = [
|
|
9
|
+
"Natural Language :: English",
|
|
10
|
+
"Operating System :: OS Independent",
|
|
11
|
+
"Programming Language :: Python",
|
|
12
|
+
"Programming Language :: Python :: 3.9",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
dynamic = ["readme", "version", "dependencies"]
|
|
16
|
+
|
|
17
|
+
[project.optional-dependencies]
|
|
18
|
+
docs = [
|
|
19
|
+
"sphinx",
|
|
20
|
+
"furo",
|
|
21
|
+
"myst-parser",
|
|
22
|
+
]
|
|
23
|
+
tests = [
|
|
24
|
+
"coverage",
|
|
25
|
+
"mypy",
|
|
26
|
+
"pytest>=6.0",
|
|
27
|
+
"pytest-cov",
|
|
28
|
+
"pyyaml",
|
|
29
|
+
"types-pyyaml",
|
|
30
|
+
]
|
|
31
|
+
qa = [
|
|
32
|
+
"check-manifest",
|
|
33
|
+
"pre-commit",
|
|
34
|
+
"pre-commit-hooks",
|
|
35
|
+
"mypy",
|
|
36
|
+
"edgetest",
|
|
37
|
+
"ruff",
|
|
38
|
+
"black",
|
|
39
|
+
"flake8",
|
|
40
|
+
"isort",
|
|
41
|
+
"pylint",
|
|
42
|
+
]
|
|
43
|
+
build = [
|
|
44
|
+
"twine",
|
|
45
|
+
"wheel",
|
|
46
|
+
"bump2version",
|
|
47
|
+
]
|
|
48
|
+
dev = [
|
|
49
|
+
"deckbridge[docs]",
|
|
50
|
+
"deckbridge[tests]",
|
|
51
|
+
"deckbridge[qa]",
|
|
52
|
+
"deckbridge[build]",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[project.urls]
|
|
56
|
+
repository = "https://github.com/josephcobb111/deckbridge"
|
|
57
|
+
|
|
58
|
+
# The build system using setuptools allows pip to work for these projects.
|
|
59
|
+
[build-system]
|
|
60
|
+
requires = ["setuptools>=64.0.0"]
|
|
61
|
+
build-backend = "setuptools.build_meta"
|
|
62
|
+
|
|
63
|
+
###################################################################################################
|
|
64
|
+
# Setuptools Configuration
|
|
65
|
+
###################################################################################################
|
|
66
|
+
|
|
67
|
+
# This is currently a default behavior of pyproject.toml, but we're trying to be explicit.
|
|
68
|
+
# You still need the MANIFEST.in file.
|
|
69
|
+
# See: https://setuptools.pypa.io/en/latest/userguide/datafiles.html
|
|
70
|
+
[tool.setuptools]
|
|
71
|
+
include-package-data = true
|
|
72
|
+
|
|
73
|
+
[tool.setuptools.dynamic]
|
|
74
|
+
version = {attr = "deckbridge.__version__"}
|
|
75
|
+
readme = {file = ["README.md", "CHANGELOG.md"]}
|
|
76
|
+
dependencies = {file = "requirements.txt"}
|
|
77
|
+
|
|
78
|
+
# Both flat and src layouts are supported by default. This makes it explicit.
|
|
79
|
+
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#setuptools-specific-configuration
|
|
80
|
+
[tool.setuptools.packages.find]
|
|
81
|
+
where = ["src"]
|
|
82
|
+
|
|
83
|
+
###################################################################################################
|
|
84
|
+
# Dev Tooling Configuration
|
|
85
|
+
###################################################################################################
|
|
86
|
+
|
|
87
|
+
# CHECK-MANIFEST ----------------------------------------------------------------------------------
|
|
88
|
+
[tool.check-manifest]
|
|
89
|
+
ignore = [
|
|
90
|
+
"docs",
|
|
91
|
+
"docs/**",
|
|
92
|
+
"notebooks",
|
|
93
|
+
"notebooks/**",
|
|
94
|
+
"setup",
|
|
95
|
+
"setup/**",
|
|
96
|
+
".pre-commit-config.yaml",
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
# EDGETEST ----------------------------------------------------------------------------------------
|
|
100
|
+
[edgetest]
|
|
101
|
+
deps = "-r requirements.txt"
|
|
102
|
+
extras = "tests"
|
|
103
|
+
command = "pytest --cov-fail-under=0" # TO DO: make coverage compatible
|
|
104
|
+
|
|
105
|
+
# MYPY --------------------------------------------------------------------------------------------
|
|
106
|
+
[tool.mypy]
|
|
107
|
+
warn_return_any = true
|
|
108
|
+
warn_unused_configs = true
|
|
109
|
+
ignore_missing_imports = true
|
|
110
|
+
|
|
111
|
+
# PYTEST ------------------------------------------------------------------------------------------
|
|
112
|
+
[tool.pytest.ini_options]
|
|
113
|
+
minversion = "6.0"
|
|
114
|
+
addopts = "--cov=src -vv -ra --cov-report=html --verbose --cov-fail-under=80"
|
|
115
|
+
testpaths = ["tests"]
|
|
116
|
+
markers = [
|
|
117
|
+
"quality: code quality tests",
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
# See: https://docs.astral.sh/ruff/rules/
|
|
121
|
+
[tool.ruff]
|
|
122
|
+
#extend-include = ["*.ipynb"] # enable linting within notebook cells
|
|
123
|
+
target-version = "py39"
|
|
124
|
+
src = ["src"]
|
|
125
|
+
line-length = 140
|
|
126
|
+
|
|
127
|
+
[tool.ruff.lint]
|
|
128
|
+
preview = true
|
|
129
|
+
select = [
|
|
130
|
+
"E", # pycodestyle errors
|
|
131
|
+
"W", # pycodestyle warnings
|
|
132
|
+
"F", # pyflakes
|
|
133
|
+
"D", # pydocstyle
|
|
134
|
+
"I", # isort
|
|
135
|
+
"C", # flake8-comprehensions
|
|
136
|
+
"TID252", # flake8-tidy-imports ban relative imports
|
|
137
|
+
#"T20", # flake8-print
|
|
138
|
+
#"UP", # pyupgrade
|
|
139
|
+
#"B", # flake8-bugbear
|
|
140
|
+
#"A", # flake8-builtins
|
|
141
|
+
#"C901", # mccabe complexity
|
|
142
|
+
#"G", # flake8-logging-format
|
|
143
|
+
#"ARG", # flake8-unused-arguments
|
|
144
|
+
#"SIM", # flake8-simplify
|
|
145
|
+
#"NPY", # numpy rules
|
|
146
|
+
#"LOG", # flake8-logging
|
|
147
|
+
#"RUF", # Ruff errors
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
ignore = [
|
|
151
|
+
"E111", # Check indentation level. Using formatter instead.
|
|
152
|
+
"E114", # Check indentation level. Using formatter instead.
|
|
153
|
+
"E117", # Check indentation level. Using formatter instead.
|
|
154
|
+
"E203", # Check whitespace. Using formatter instead.
|
|
155
|
+
"E501", # Line too long. Using formatter instead.
|
|
156
|
+
"D206", # Docstring indentation. Using formatter instead.
|
|
157
|
+
"D300", # Use triple single quotes. Using formatter instead.
|
|
158
|
+
"D416", # Section names ends in colon, we have the underlines in place.
|
|
159
|
+
"SIM108", # Use ternary operator instead of if-else blocks.
|
|
160
|
+
"SIM105", # Use `contextlib.suppress(FineNotFoundError)` instead of `try`-`except`-`pass`.
|
|
161
|
+
"UP035", # `typing.x` is deprecated, use `x` instead.
|
|
162
|
+
"UP006", # `typing.x` is deprecated, use `x` instead.
|
|
163
|
+
"C901", # McCabe complexity
|
|
164
|
+
]
|
|
165
|
+
|
|
166
|
+
[tool.ruff.lint.per-file-ignores]
|
|
167
|
+
"__init__.py" = ["E402", "F401"]
|
|
168
|
+
"**/{tests,docs}/*" = ["E402", "D", "F841", "ARG", "T20"]
|
|
169
|
+
|
|
170
|
+
[tool.ruff.lint.flake8-tidy-imports]
|
|
171
|
+
ban-relative-imports = "all"
|
|
172
|
+
|
|
173
|
+
[tool.ruff.lint.pydocstyle]
|
|
174
|
+
convention = "google"
|
|
175
|
+
|
|
176
|
+
# ISORT ------------------------------------------------------------------------------------------
|
|
177
|
+
[tool.isort]
|
|
178
|
+
profile = "black"
|
|
179
|
+
multi_line_output = 3
|
|
180
|
+
include_trailing_comma = true
|
|
181
|
+
force_grid_wrap = 0
|
|
182
|
+
use_parentheses = true
|
|
183
|
+
line_length = 140
|
|
184
|
+
|
|
185
|
+
# PYLINT ------------------------------------------------------------------------------------------
|
|
186
|
+
[tool.pylint.master]
|
|
187
|
+
ignore-paths = "^docs/,tests/,versioneer.py,src/deckbridge/_git_version.py"
|
|
188
|
+
|
|
189
|
+
[tool.pylint.format]
|
|
190
|
+
# Regexp for a line that is allowed to be longer than the limit
|
|
191
|
+
ignore-long-lines = "^\\s*(# )?<?https:?://\\S+>?$"
|
|
192
|
+
max-line-length = 140
|
|
193
|
+
|
|
194
|
+
[tool.pylint.logging]
|
|
195
|
+
# The type of string formatting that logging methods do. `old` means using % formatting, `new` is for `{}` formatting
|
|
196
|
+
logging-format-style = "new"
|
|
197
|
+
|
|
198
|
+
[tool.pylint.main]
|
|
199
|
+
fail-under = 9.5
|
|
200
|
+
|
|
201
|
+
[tool.pylint."messages control"]
|
|
202
|
+
disable = ["unspecified-encoding", "logging-too-many-args", "logging-fstring-interpolation", "too-few-public-methods"]
|
|
203
|
+
good-names = ["df", "f"]
|
|
204
|
+
|
|
205
|
+
[tool.pylint.miscellaneous]
|
|
206
|
+
# List of note tags to take in consideration, separated by a comma
|
|
207
|
+
notes = ["FIXME", "XXX", "TODO"]
|