Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cff-version: 1.2.0
message: "If you use Docform, please cite it as below."
title: "Docform: fill document templates with data"
title: "Docform"
type: software
authors:
- family-names: Chippagiri
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

13 changes: 0 additions & 13 deletions Pipfile

This file was deleted.

419 changes: 0 additions & 419 deletions Pipfile.lock

This file was deleted.

8 changes: 4 additions & 4 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/python-docx-template.qhcp"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/docform.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/python-docx-template.qhc"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/docform.qhc"

devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/python-docx-template"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/python-docx-template"
@echo "# mkdir -p $$HOME/.local/share/devhelp/docform"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/docform"
@echo "# devhelp"

epub:
Expand Down
11 changes: 7 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys

sys.path.insert(0, os.path.abspath(".."))

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -43,16 +46,16 @@

# General information about the project.
project = "Docform"
copyright = "2015, Eric Lapouyade"
copyright = "2015 Eric Lapouyade, 2026 Srinivas Chippagiri"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = "0.20"
version = "0.21"
# The full version, including alpha/beta/rc tags.
release = "0.20.x"
release = "0.21.0"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
24 changes: 8 additions & 16 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
contain the root `toctree` directive.

Welcome to Docform's documentation!
================================================
===================================

.. rubric:: Quickstart

Expand Down Expand Up @@ -488,28 +488,20 @@ See tests/module_execute.py for an example.
Examples
--------

The best way to see how it works is to read examples, they are located in `tests/` directory.
Docx test templates are in `tests/templates/`. To generate final docx files::
Complete, runnable examples are in the `examples/` directory, for instance::

cd tests/
python runtests.py
python examples/invoice/render.py

Generated files are located in `tests/output` directory.
The `tests/` directory has a small script for every feature, with templates in
`tests/templates/`. To render them all into `tests/output/`::

If you are not sure about your python environment, Docform provides Pipfiles
for that::

pip install pipenv (if not already done)
cd docform (where Pipfiles are)
pipenv install --python 3.6 -d
pipenv shell
cd tests/
python runtests.py

Share
-----

The unit tests run with pytest from the repository root::

pip install -e ".[subdoc]" pytest
pytest

.. rubric:: Functions index

Expand Down
1,032 changes: 0 additions & 1,032 deletions poetry.lock

This file was deleted.

15 changes: 1 addition & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,6 @@ Repository = "https://github.com/cvas22/docform"
Issues = "https://github.com/cvas22/docform/issues"
Changelog = "https://github.com/cvas22/docform/blob/main/CHANGES.rst"

[tool.poetry]
version = "0.0.0"

[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }

[tool.poetry-dynamic-versioning]
enable = true

[tool.poetry-dynamic-versioning.from-file]
source = "docform/__init__.py"
pattern = '__version__ = "(.+)"'

[tool.pytest.ini_options]
testpaths = ["tests/unit"]
pythonpath = ["."]
Expand All @@ -73,7 +60,7 @@ pretty = true
python_version = "3.9"
check_untyped_defs = true
warn_unused_ignores = true
exclude = ["docs", "build", "setup.py"]
exclude = ["docs", "build"]

[[tool.mypy.overrides]]
module = ["docxcompose.*"]
Expand Down
56 changes: 0 additions & 56 deletions setup.py

This file was deleted.

Loading
Loading