-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from callowayproject/fix-local-repo-resolution
Fix local repo resolution
- Loading branch information
Showing
82 changed files
with
2,322 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
"""The Cookiecutter Composer.""" | ||
|
||
__version__: str = "0.12.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Command line setup.""" | ||
|
||
import logging | ||
from collections import OrderedDict | ||
from pathlib import Path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Authentication subcommands.""" | ||
|
||
import sys | ||
|
||
import rich_click as click | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Project configuration and options.""" | ||
|
||
import logging | ||
from typing import Any, Dict, List, Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tools for merging data.""" | ||
|
||
import copy | ||
import logging | ||
from collections import ChainMap, OrderedDict | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Functions for using git.""" | ||
|
||
import logging | ||
import shutil | ||
import subprocess | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Merge two json files into one.""" | ||
|
||
from pathlib import Path | ||
from typing import Any | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Merge two toml files into one.""" | ||
|
||
from pathlib import Path | ||
|
||
import toml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Utilities not easily categorized.""" | ||
|
||
import os | ||
import stat | ||
from contextlib import contextmanager | ||
|
61 changes: 61 additions & 0 deletions
61
docsrc/apidocs/cookie_composer/cookie_composer.authentication.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
:py:mod:`cookie_composer.authentication` | ||
======================================== | ||
|
||
.. py:module:: cookie_composer.authentication | ||
.. autodoc2-docstring:: cookie_composer.authentication | ||
:allowtitles: | ||
|
||
Module Contents | ||
--------------- | ||
|
||
Functions | ||
~~~~~~~~~ | ||
|
||
.. list-table:: | ||
:class: autosummary longtable | ||
:align: left | ||
|
||
* - :py:obj:`get_hosts_file <cookie_composer.authentication.get_hosts_file>` | ||
- .. autodoc2-docstring:: cookie_composer.authentication.get_hosts_file | ||
:summary: | ||
* - :py:obj:`login_to_svc <cookie_composer.authentication.login_to_svc>` | ||
- .. autodoc2-docstring:: cookie_composer.authentication.login_to_svc | ||
:summary: | ||
* - :py:obj:`get_cached_token <cookie_composer.authentication.get_cached_token>` | ||
- .. autodoc2-docstring:: cookie_composer.authentication.get_cached_token | ||
:summary: | ||
* - :py:obj:`add_auth_to_url <cookie_composer.authentication.add_auth_to_url>` | ||
- .. autodoc2-docstring:: cookie_composer.authentication.add_auth_to_url | ||
:summary: | ||
* - :py:obj:`github_auth_device <cookie_composer.authentication.github_auth_device>` | ||
- .. autodoc2-docstring:: cookie_composer.authentication.github_auth_device | ||
:summary: | ||
|
||
API | ||
~~~ | ||
|
||
.. py:function:: get_hosts_file() -> pathlib.Path | ||
:canonical: cookie_composer.authentication.get_hosts_file | ||
|
||
.. autodoc2-docstring:: cookie_composer.authentication.get_hosts_file | ||
|
||
.. py:function:: login_to_svc(service: typing.Optional[str] = None, protocol: typing.Optional[str] = None, scopes: typing.Optional[str] = None, token: typing.Optional[str] = None) -> str | ||
:canonical: cookie_composer.authentication.login_to_svc | ||
|
||
.. autodoc2-docstring:: cookie_composer.authentication.login_to_svc | ||
|
||
.. py:function:: get_cached_token(account_name: str) -> typing.Optional[str] | ||
:canonical: cookie_composer.authentication.get_cached_token | ||
|
||
.. autodoc2-docstring:: cookie_composer.authentication.get_cached_token | ||
|
||
.. py:function:: add_auth_to_url(url: str) -> str | ||
:canonical: cookie_composer.authentication.add_auth_to_url | ||
|
||
.. autodoc2-docstring:: cookie_composer.authentication.add_auth_to_url | ||
|
||
.. py:function:: github_auth_device(n_polls: int = 9999) -> typing.Optional[str] | ||
:canonical: cookie_composer.authentication.github_auth_device | ||
|
||
.. autodoc2-docstring:: cookie_composer.authentication.github_auth_device |
102 changes: 102 additions & 0 deletions
102
docsrc/apidocs/cookie_composer/cookie_composer.cc_overrides.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
:py:mod:`cookie_composer.cc_overrides` | ||
====================================== | ||
|
||
.. py:module:: cookie_composer.cc_overrides | ||
.. autodoc2-docstring:: cookie_composer.cc_overrides | ||
:allowtitles: | ||
|
||
Module Contents | ||
--------------- | ||
|
||
Classes | ||
~~~~~~~ | ||
|
||
.. list-table:: | ||
:class: autosummary longtable | ||
:align: left | ||
|
||
* - :py:obj:`JsonifyContextExtension <cookie_composer.cc_overrides.JsonifyContextExtension>` | ||
- .. autodoc2-docstring:: cookie_composer.cc_overrides.JsonifyContextExtension | ||
:summary: | ||
* - :py:obj:`CustomStrictEnvironment <cookie_composer.cc_overrides.CustomStrictEnvironment>` | ||
- .. autodoc2-docstring:: cookie_composer.cc_overrides.CustomStrictEnvironment | ||
:summary: | ||
|
||
Functions | ||
~~~~~~~~~ | ||
|
||
.. list-table:: | ||
:class: autosummary longtable | ||
:align: left | ||
|
||
* - :py:obj:`jsonify_context <cookie_composer.cc_overrides.jsonify_context>` | ||
- .. autodoc2-docstring:: cookie_composer.cc_overrides.jsonify_context | ||
:summary: | ||
* - :py:obj:`update_extensions <cookie_composer.cc_overrides.update_extensions>` | ||
- .. autodoc2-docstring:: cookie_composer.cc_overrides.update_extensions | ||
:summary: | ||
* - :py:obj:`prompt_for_config <cookie_composer.cc_overrides.prompt_for_config>` | ||
- .. autodoc2-docstring:: cookie_composer.cc_overrides.prompt_for_config | ||
:summary: | ||
* - :py:obj:`_render_dicts <cookie_composer.cc_overrides._render_dicts>` | ||
- .. autodoc2-docstring:: cookie_composer.cc_overrides._render_dicts | ||
:summary: | ||
* - :py:obj:`_render_simple <cookie_composer.cc_overrides._render_simple>` | ||
- .. autodoc2-docstring:: cookie_composer.cc_overrides._render_simple | ||
:summary: | ||
|
||
API | ||
~~~ | ||
|
||
.. py:function:: jsonify_context(value: typing.Any) -> typing.MutableMapping | ||
:canonical: cookie_composer.cc_overrides.jsonify_context | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.jsonify_context | ||
|
||
.. py:class:: JsonifyContextExtension(environment: jinja2.Environment) | ||
:canonical: cookie_composer.cc_overrides.JsonifyContextExtension | ||
|
||
Bases: :py:obj:`jinja2.ext.Extension` | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.JsonifyContextExtension | ||
|
||
.. rubric:: Initialization | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.JsonifyContextExtension.__init__ | ||
|
||
.. py:class:: CustomStrictEnvironment(**kwargs) | ||
:canonical: cookie_composer.cc_overrides.CustomStrictEnvironment | ||
|
||
Bases: :py:obj:`cookiecutter.environment.StrictEnvironment` | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.CustomStrictEnvironment | ||
|
||
.. rubric:: Initialization | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.CustomStrictEnvironment.__init__ | ||
|
||
.. py:method:: _read_extensions(context: typing.MutableMapping[str, typing.Any]) -> typing.List[str] | ||
:canonical: cookie_composer.cc_overrides.CustomStrictEnvironment._read_extensions | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.CustomStrictEnvironment._read_extensions | ||
|
||
.. py:function:: update_extensions(existing_config: typing.MutableMapping[str, typing.Any], prompts: typing.MutableMapping[str, typing.Any]) -> typing.List[str] | ||
:canonical: cookie_composer.cc_overrides.update_extensions | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.update_extensions | ||
|
||
.. py:function:: prompt_for_config(prompts: dict, aggregated_context: cookie_composer.data_merge.Context, layer_context: typing.Optional[typing.MutableMapping[str, typing.Any]] = None, no_input: bool = False) -> typing.MutableMapping[str, typing.Any] | ||
:canonical: cookie_composer.cc_overrides.prompt_for_config | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides.prompt_for_config | ||
|
||
.. py:function:: _render_dicts(context: typing.MutableMapping, env: jinja2.Environment, no_input: bool, prompts: dict) -> None | ||
:canonical: cookie_composer.cc_overrides._render_dicts | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides._render_dicts | ||
|
||
.. py:function:: _render_simple(context: typing.MutableMapping, context_prompts: dict, env: jinja2.Environment, no_input: bool, prompts: dict) -> None | ||
:canonical: cookie_composer.cc_overrides._render_simple | ||
|
||
.. autodoc2-docstring:: cookie_composer.cc_overrides._render_simple |
Oops, something went wrong.