Skip to content

Commit

Permalink
Fixup ksconf.plugins packaging examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lowell80 committed Oct 5, 2023
1 parent c301129 commit 380a6d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions docs/source/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Here's an example of a ``setup.py`` file:

.. code-block:: python
from setuptools import setup, find_namespace_packages
from setuptools import setup
setup(name="ksconf-fancy-plugin",
version="0.5.0",
Expand All @@ -149,8 +149,7 @@ Here's an example of a ``setup.py`` file:
"some-fancy-library", # Add 3rd party libraries here, if needed
],
entry_points={"ksconf_plugin": ["fancy-plugin = ksconf.plugins.fancy_plugin"]},
packages=find_namespace_packages(include=['ksconf.plugins.*']),
py_modules=["ksconf_fancy_plugin"],
packages=["ksconf.plugins"],
description="Adds general fanciness within Ksconf",
classifiers=["Environment :: Plugins"],
author="Your name",
Expand Down
3 changes: 2 additions & 1 deletion plugins/jinja-markdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ ksconf package --enable-handler=jinja --template_vars @inputs.conf my_app
## Release steps

```sh
python setup.py build
python setup.py bdist_wheel sdist
twine upload dist/ksconf_jinja_markdown-*any.whl dist/ksconf-jinja-markdown-*.tar.gz
```
```
6 changes: 3 additions & 3 deletions plugins/jinja-markdown/setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from setuptools import find_namespace_packages, setup
from setuptools import setup

setup(
name="ksconf-jinja-markdown",
version="1.1.0",
version="1.2.0",
install_requires=[
"commonmark>=0.9",
"jinja2>=3.0",
Expand All @@ -13,7 +13,7 @@
"jinja-markdown = ksconf.plugins.jinja_markdown"
]
},
packages=find_namespace_packages(include=['ksconf.plugins.*']),
packages=["ksconf.plugins"],
description="Markdown rendering support for Jinja2 templates within Ksconf",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 380a6d2

Please sign in to comment.