improve project configuration from pychangelogfactory
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
|
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
|
||||||
|
|
||||||
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
|
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
|
||||||
<path>/${PROJECT_DIR_NAME}/src</path>
|
|
||||||
<path>/${PROJECT_DIR_NAME}</path>
|
<path>/${PROJECT_DIR_NAME}</path>
|
||||||
</pydev_pathproperty>
|
</pydev_pathproperty>
|
||||||
|
|
||||||
|
|||||||
16
RUN_changelog.launch
Normal file
16
RUN_changelog.launch
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.python.pydev.debug.regularLaunchConfigurationType">
|
||||||
|
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/${project_name}/helpers"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="2"/>
|
||||||
|
</listAttribute>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${project_loc}/helpers"/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_OTHER_WORKING_DIRECTORY" value=""/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--changelog-gen"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_INTERPRETER" value="__default"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_PROJECT" value="pygitversionhelper"/>
|
||||||
|
<stringAttribute key="process_factory_id" value="org.python.pydev.debug.processfactory.PyProcessFactory"/>
|
||||||
|
</launchConfiguration>
|
||||||
16
RUN_complexity.launch
Normal file
16
RUN_complexity.launch
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.python.pydev.debug.regularLaunchConfigurationType">
|
||||||
|
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/${project_name}/helpers"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="2"/>
|
||||||
|
</listAttribute>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:pychangelogfactory/helpers}"/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_OTHER_WORKING_DIRECTORY" value=""/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--complexity-check"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_INTERPRETER" value="__default"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_PROJECT" value="pygitversionhelper"/>
|
||||||
|
<stringAttribute key="process_factory_id" value="org.python.pydev.debug.processfactory.PyProcessFactory"/>
|
||||||
|
</launchConfiguration>
|
||||||
19
RUN_mkdocs.launch
Normal file
19
RUN_mkdocs.launch
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.python.pydev.debug.regularLaunchConfigurationType">
|
||||||
|
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/${project_name}/helpers"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="2"/>
|
||||||
|
</listAttribute>
|
||||||
|
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
|
||||||
|
<mapEntry key="PATH" value="C:\Program Files\GTK3-Runtime Win64\bin"/>
|
||||||
|
</mapAttribute>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:pychangelogfactory/helpers}"/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_OTHER_WORKING_DIRECTORY" value=""/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--doc-gen --doc-gen-pdf"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_INTERPRETER" value="__default"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_PROJECT" value="pygitversionhelper"/>
|
||||||
|
<stringAttribute key="process_factory_id" value="org.python.pydev.debug.processfactory.PyProcessFactory"/>
|
||||||
|
</launchConfiguration>
|
||||||
16
RUN_quality.launch
Normal file
16
RUN_quality.launch
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.python.pydev.debug.regularLaunchConfigurationType">
|
||||||
|
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/${project_name}/helpers"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="2"/>
|
||||||
|
</listAttribute>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:pychangelogfactory/helpers}"/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_OTHER_WORKING_DIRECTORY" value=""/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--type-check --quality-check"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_INTERPRETER" value="__default"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_PROJECT" value="pygitversionhelper"/>
|
||||||
|
<stringAttribute key="process_factory_id" value="org.python.pydev.debug.processfactory.PyProcessFactory"/>
|
||||||
|
</launchConfiguration>
|
||||||
16
RUN_unittest.launch
Normal file
16
RUN_unittest.launch
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.python.pydev.debug.regularLaunchConfigurationType">
|
||||||
|
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/${project_name}/helpers"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="2"/>
|
||||||
|
</listAttribute>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:pychangelogfactory/helpers}"/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_OTHER_WORKING_DIRECTORY" value=""/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--unit-test --coverage-check"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_INTERPRETER" value="__default"/>
|
||||||
|
<stringAttribute key="org.python.pydev.debug.ATTR_PROJECT" value="pygitversionhelper"/>
|
||||||
|
<stringAttribute key="process_factory_id" value="org.python.pydev.debug.processfactory.PyProcessFactory"/>
|
||||||
|
</launchConfiguration>
|
||||||
@@ -72,9 +72,11 @@ class doc_gen(helper_withresults_base):
|
|||||||
# little hack here, to enable / disable pdf generation using own class config
|
# little hack here, to enable / disable pdf generation using own class config
|
||||||
# => reason is mkdocs seems to try loading the plugin even if we disable it, so we need to
|
# => reason is mkdocs seems to try loading the plugin even if we disable it, so we need to
|
||||||
# manually process the configuration file.
|
# manually process the configuration file.
|
||||||
mkdocsCfg = None
|
|
||||||
with open(cls.project_rootdir_path / "mkdocs.yml", "r") as mkdocsCfgFile:
|
with open(cls.project_rootdir_path / "mkdocs.yml", "r") as mkdocsCfgFile:
|
||||||
mkdocsCfg = yaml.load(mkdocsCfgFile, Loader=yaml.SafeLoader)
|
mkdocsCfg = yaml.load(mkdocsCfgFile, Loader=yaml.Loader)
|
||||||
|
|
||||||
|
if "plugins" in mkdocsCfg:
|
||||||
|
mkdocsCfg["plugins"] = [_ for _ in mkdocsCfg["plugins"] if (not isinstance(_, dict) or "with-pdf" not in _.keys())]
|
||||||
|
|
||||||
if cls.enable_gen_pdf == True:
|
if cls.enable_gen_pdf == True:
|
||||||
mkdocsCfg["plugins"].append(
|
mkdocsCfg["plugins"].append(
|
||||||
@@ -83,19 +85,11 @@ class doc_gen(helper_withresults_base):
|
|||||||
"cover_subtitle": "User Manual",
|
"cover_subtitle": "User Manual",
|
||||||
"cover_logo": str(cls.project_rootdir_path / "docs-static" / "Library.jpg"),
|
"cover_logo": str(cls.project_rootdir_path / "docs-static" / "Library.jpg"),
|
||||||
"verbose": False,
|
"verbose": False,
|
||||||
"media_type": "print",
|
|
||||||
"exclude_pages": ["LICENSE"],
|
"exclude_pages": ["LICENSE"],
|
||||||
"output_path": str(site_path / "pdf" / "manual.pdf"),
|
"output_path": str(site_path / "pdf" / "manual.pdf"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
for subelem in mkdocsCfg["plugins"]:
|
|
||||||
if isinstance(subelem, dict):
|
|
||||||
if "with-pdf" in subelem.keys():
|
|
||||||
mkdocsCfg["plugins"].remove(subelem)
|
|
||||||
break
|
|
||||||
|
|
||||||
with open(cls.project_rootdir_path / "mkdocs.yml", "w") as mkdocsCfgFile:
|
with open(cls.project_rootdir_path / "mkdocs.yml", "w") as mkdocsCfgFile:
|
||||||
mkdocsCfgFile.write(yaml.dump(mkdocsCfg, Dumper=Dumper, default_flow_style=False, sort_keys=False))
|
mkdocsCfgFile.write(yaml.dump(mkdocsCfg, Dumper=Dumper, default_flow_style=False, sort_keys=False))
|
||||||
|
|
||||||
|
|||||||
174
mkdocs.yml
174
mkdocs.yml
@@ -1,92 +1,110 @@
|
|||||||
# pyChaChaDummyProject (c) by chacha
|
|
||||||
#
|
|
||||||
# pyChaChaDummyProject is licensed under a
|
|
||||||
# Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Unported License.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the license along with this
|
|
||||||
# work. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/>.
|
|
||||||
|
|
||||||
docs_dir: docs
|
docs_dir: docs
|
||||||
site_name: pygitversionhelper
|
site_name: pygitversionhelper
|
||||||
site_url: 'https://chacha.ddns.net/mkdocs-web/chacha/pygitversionhelper/latest/'
|
site_url: 'https://chacha.ddns.net/mkdocs-web/chacha/pygitversionhelper/latest/'
|
||||||
site_description: pygitversionhelper
|
site_description: 'A simple simple git version helper in python.'
|
||||||
site_author: ChaCha
|
site_author: prune
|
||||||
repo_url: 'https://chacha.ddns.net/gitea/chacha/pygitversionhelper'
|
repo_url: 'https://chacha.ddns.net/gitea/chacha/pygitversionhelper'
|
||||||
use_directory_urls: false
|
use_directory_urls: false
|
||||||
copyright: CC BY-NC-SA 4.0
|
copyright: 'CC BY-NC-SA 4.0'
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
features:
|
features:
|
||||||
- navigation.instant
|
- navigation.instant
|
||||||
- navigation.tracking
|
- navigation.tracking
|
||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
- navigation.tabs.sticky
|
- navigation.tabs.sticky
|
||||||
- toc.integrate
|
- navigation.footer
|
||||||
- navigation.top
|
- toc.integrate
|
||||||
|
- navigation.top
|
||||||
|
- navigation.section
|
||||||
|
- content.code.annotate
|
||||||
|
- navigation.prune
|
||||||
|
- toc.follow
|
||||||
palette:
|
palette:
|
||||||
- media: '(prefers-color-scheme: dark)'
|
- media: '(prefers-color-scheme: dark)'
|
||||||
scheme: slate
|
scheme: slate
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/brightness-4
|
icon: material/brightness-4
|
||||||
name: Switch to system preference
|
name: Switch to system preference
|
||||||
- media: (prefers-color-scheme)
|
- media: (prefers-color-scheme)
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/brightness-auto
|
icon: material/brightness-auto
|
||||||
name: Switch to light mode
|
name: Switch to light mode
|
||||||
- media: '(prefers-color-scheme: light)'
|
- media: '(prefers-color-scheme: light)'
|
||||||
scheme: default
|
scheme: default
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/brightness-7
|
icon: material/brightness-7
|
||||||
name: Switch to dark mode
|
name: Switch to dark mode
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
- markdownextradata
|
- markdownextradata
|
||||||
- mermaid2
|
- mermaid2
|
||||||
- localsearch
|
- localsearch
|
||||||
- autorefs
|
- mkdocstrings:
|
||||||
- mkdocstrings:
|
default_handler: python
|
||||||
default_handler: python
|
handlers:
|
||||||
handlers:
|
python:
|
||||||
python:
|
options:
|
||||||
selection:
|
filters:
|
||||||
filters:
|
- '!^_[^_]'
|
||||||
- '!^_(?!_init__)'
|
inherited_members: true
|
||||||
inherited_members: true
|
show_if_no_docstring: true
|
||||||
rendering:
|
show_signature_annotations: true
|
||||||
show_root_heading: false
|
show_source: false
|
||||||
show_root_toc_entry: false
|
show_category_heading: true
|
||||||
show_root_full_path: false
|
group_by_category: true
|
||||||
show_if_no_docstring: true
|
docstring_section_style: spacy
|
||||||
show_signature_annotations: true
|
show_root_full_path: false
|
||||||
show_source: false
|
merge_init_into_class: true
|
||||||
heading_level: 2
|
separate_signature: true
|
||||||
group_by_category: true
|
|
||||||
show_category_heading: true
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- def_list
|
- def_list
|
||||||
- tables
|
- tables
|
||||||
- attr_list
|
- attr_list
|
||||||
- abbr
|
- abbr
|
||||||
- pymdownx.betterem:
|
- pymdownx.blocks.admonition:
|
||||||
smart_enable: all
|
types:
|
||||||
- pymdownx.caret
|
- new
|
||||||
- pymdownx.critic
|
- settings
|
||||||
- pymdownx.details
|
- note
|
||||||
- pymdownx.inlinehilite
|
- abstract
|
||||||
- pymdownx.snippets
|
- info
|
||||||
- pymdownx.highlight:
|
- tip
|
||||||
anchor_linenums: true
|
- success
|
||||||
line_spans: __span
|
- question
|
||||||
pygments_lang_class: true
|
- warning
|
||||||
- pymdownx.keys
|
- failure
|
||||||
- pymdownx.mark
|
- danger
|
||||||
- pymdownx.progressbar
|
- bug
|
||||||
- pymdownx.smartsymbols
|
- example
|
||||||
- pymdownx.tasklist:
|
- quote
|
||||||
custom_checkbox: true
|
- pymdownx.blocks.definition
|
||||||
- pymdownx.tilde
|
- pymdownx.blocks.details
|
||||||
- footnotes
|
- pymdownx.blocks.tab
|
||||||
|
- pymdownx.blocks.html
|
||||||
|
- pymdownx.betterem:
|
||||||
|
smart_enable: all
|
||||||
|
- pymdownx.caret
|
||||||
|
- pymdownx.critic
|
||||||
|
- pymdownx.details
|
||||||
|
- pymdownx.inlinehilite
|
||||||
|
- pymdownx.snippets
|
||||||
|
- pymdownx.highlight:
|
||||||
|
anchor_linenums: true
|
||||||
|
line_spans: __span
|
||||||
|
pygments_lang_class: true
|
||||||
|
- pymdownx.keys
|
||||||
|
- pymdownx.mark
|
||||||
|
- pymdownx.progressbar
|
||||||
|
- pymdownx.smartsymbols
|
||||||
|
- pymdownx.tasklist:
|
||||||
|
custom_checkbox: true
|
||||||
|
- pymdownx.tilde
|
||||||
|
- footnotes
|
||||||
|
- pymdownx.superfences
|
||||||
|
- pymdownx.emoji:
|
||||||
|
emoji_index: !!python/name:materialx.emoji.twemoji
|
||||||
|
emoji_generator: !!python/name:materialx.emoji.to_svg
|
||||||
extra:
|
extra:
|
||||||
branch: master
|
branch: master
|
||||||
repository: pygitversionhelper
|
repository: pygitversionhelper
|
||||||
@@ -59,7 +59,7 @@ coverage-check = ["coverage>=7.0"]
|
|||||||
complexity-check = ["radon>=5.1"]
|
complexity-check = ["radon>=5.1"]
|
||||||
quality-check = ["pylint>=2.15","pylint-json2html>=0.4","pandas>=1.5"]
|
quality-check = ["pylint>=2.15","pylint-json2html>=0.4","pandas>=1.5"]
|
||||||
type-check = ["mypy[reports]>=0.99" ]
|
type-check = ["mypy[reports]>=0.99" ]
|
||||||
doc-gen = ["mkdocs>=1.4.0", "mkdocs-material>=8.5", "mkdocs-localsearch>=0.9.0", "mkdocstrings[python]>=0.19", "mkdocs-with-pdf>=0.9.3","pyyaml>=6.0","pymdown-extensions>=9","mkdocs-markdownextradata-plugin","mkdocs-mermaid2-plugin"]
|
doc-gen = ["mkdocs>=1.4.0", "mkdocs-material>=8.5","mkdocs-pymdownx-material-extras", "mkdocs-localsearch>=0.9.0", "mkdocstrings[python]>=0.19", "mkdocs-with-pdf>=0.9.3","pyyaml>=6.0","pymdown-extensions>=9","mkdocs-markdownextradata-plugin","mkdocs-mermaid2-plugin"]
|
||||||
|
|
||||||
#[project.scripts]
|
#[project.scripts]
|
||||||
#my-script = "my_package.module:function"
|
#my-script = "my_package.module:function"
|
||||||
|
|||||||
Reference in New Issue
Block a user