Skip to content

Commit

Permalink
Fixed pyproject.toml's package list to include plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
camratchford committed Dec 15, 2024
1 parent ed5a511 commit 45fd6b1
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 14 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Publish
on:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[development]
- name: Build docs
run: |
extras/scripts/mkdocs.sh
- name: Build pyinstaller
run: |
powershell extras/scripts/pyinstaller.sh
- name: Build pypi
run: |
powershell extras/scripts/pypi.sh
build_windows:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[development]
- name: Build docs
run: |
powershell extras/scripts/mkdocs.ps1
- name: Build pyinstaller
run: |
powershell extras/scripts/pyinstaller.ps1
- name: Build pypi
run: |
powershell extras/scripts/pypi.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

name: Lint and Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

branches:
- 0.1.*`
permissions:
contents: read

jobs:
build_linux:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion extras/docs/src/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@ description: An example application

This topic is covered in two examples.

- [Directory Plugin Example](https://github.com/camratchford/zenplate/tree/master/examples/directory_plugin_example)
- [Directory Plugin Example](https://github.com/camratchford/zenplate/tree/main/extras/examples/directory_plugin_example)
- [Python Package Plugin Example](https://github.com/camratchford/zenplate/tree/master/examples/python_package_plugin_example)
2 changes: 1 addition & 1 deletion extras/docs/src/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ zenplate --var-file ~/zenplate_project/vars/vars.yml ~/zenplate_project/template

## Next Steps

Check out the examples included in the [examples](https://github.com/camratchford/zenplate/tree/master/examples) directory.
Check out the examples included in the [examples](https://github.com/camratchford/zenplate/tree/main/extras/examples) directory.
These examples will show you how to use the plugin system to extend Zenplate's functionality.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["zenplate"]
packages = ["zenplate", "zenplate.plugins"]

[project]
name = 'zenplate'
Expand All @@ -25,7 +25,7 @@ classifiers = [
'Environment :: MacOS X',
'Topic :: Software Development :: Libraries :: Python Modules',
]
version = "0.1.1"
version = "0.1.2"
requires-python = '>=3.7'
dependencies = [
"click==8.1.7",
Expand Down

0 comments on commit 45fd6b1

Please sign in to comment.