-
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.
[feature] Add template download from got repository (#7)
* readme * add [feature] template from repo * Tech * error and debug * debug * deleted DEBUG * add help and libraries * Working with any template * add metavars * [fix] add substitute_yml_plugs method for proper processing of non-template plugs * [fix] remove unnecessary imports * [style] adhere to PEP * [docs] refactor structure * [release] update changelog and setup for version 1.0.9 * [doc] update cli example * [fix] decorators for init was in a wrong place Co-authored-by: Ekaterina.Markova <[email protected]> Co-authored-by: holamgadol <[email protected]>
- Loading branch information
1 parent
c8952de
commit ae0cd12
Showing
4 changed files
with
151 additions
and
71 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
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,4 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
from pathlib import Path | ||
from typing import List | ||
|
||
|
@@ -11,11 +11,12 @@ | |
except FileNotFoundError: | ||
LONG_DESCRIPTION = SHORT_DESCRIPTION | ||
|
||
|
||
def get_templates(path: Path) -> List[str]: | ||
'''List all files in ``templates`` directory, including all subdirectories. | ||
"""List all files in ``templates`` directory, including all subdirectories. | ||
The resulting list contains UNIX-like relative paths starting with ``templates``. | ||
''' | ||
""" | ||
|
||
result = [] | ||
|
||
|
@@ -25,12 +26,13 @@ def get_templates(path: Path) -> List[str]: | |
|
||
return result | ||
|
||
|
||
setup( | ||
name='foliantcontrib.init', | ||
description=SHORT_DESCRIPTION, | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type='text/markdown', | ||
version='1.0.8', | ||
version='1.0.9', | ||
author='Konstantin Molchanov', | ||
author_email='[email protected]', | ||
url='https://github.com/foliant-docs/foliantcontrib.init', | ||
|
@@ -40,7 +42,10 @@ def get_templates(path: Path) -> List[str]: | |
platforms='any', | ||
install_requires=[ | ||
'foliant>=1.0.8', | ||
'python-slugify' | ||
'python-slugify', | ||
'validators', | ||
'gitpython', | ||
'cliar' | ||
], | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
|