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
20 changes: 20 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changes here will be overwritten by Copier
_commit: 0.4.12
_src_path: gh:ignition-devs/copier-templates
author_email: cesar@coatl.dev
author_fullname: César Román
copyright_holder: coatl.dev
copyright_year: 2018-2026
github_org: ignition-devs
github_repo: incendium
main_branch: main
project_description: Package that extends and wraps the Ignition Scripting API
project_development_status: 5 - Production/Stable
project_license: MIT
project_name: incendium
project_type: jython
registry_url: https://upload.pypi.org/legacy/
registry_username: __token__
upload_registry: true
use_sourcery: true

2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
"pre-commit": "pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type pre-push",
"dev-requirements": "python2 -m pip install --requirement requirements.txt"
}
}
}
10 changes: 7 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ end_of_line = lf
trim_trailing_whitespace = true

[Makefile]
indent_size = 4
indent_style = tab
insert_final_newline = false

[*.{json,md,toml,yaml,yml}]
[*.{json}]
indent_size = 2
indent_style = space
insert_final_newline = false

[*.{md,toml,yaml,yml}]
indent_size = 2
indent_style = space
insert_final_newline = true

[*.{ini,py,pyi}]
[*.{ini,py}]
indent_size = 4
indent_style = space
insert_final_newline = true
47 changes: 42 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,58 @@
name: ci

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
pre-commit:
uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@v6
with:
skip-hooks: 'pylint'

pylint:
needs: pre-commit
uses: coatl-dev/workflows/.github/workflows/pylint.yml@v6
with:
path: src

jython:
uses: ./.github/workflows/jython.yml
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
env:
JYTHON_CACHE_DIR: $HOME/.cache/jython
steps:
- name: Checkout repo
uses: actions/checkout@v6

- name: Set up Jython
uses: coatl-dev/actions/setup-jython@v5
id: setup-jython
with:
jython-version: '2.7.3'

- name: Cache Jython
uses: actions/cache@v5
with:
path: ${{ env.JYTHON_CACHE_DIR }}
key: jy-${{ steps.setup-jython.outputs.jython-version }}-${{ runner.os }}-${{ steps.setup-jython.outputs.java-distribution }}-${{ steps.setup-jython.outputs.java-version }}-${{ hashFiles('setup.py') }}

tox:
uses: ./.github/workflows/tox.yml
- name: Test installation on Jython
run: |
make install JYTHON_CACHE_DIR=${{ env.JYTHON_CACHE_DIR }}

tox-package:
if: ${{ github.event_name == 'pull_request' }}
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v6

tox-stubs:
if: ${{ github.event_name == 'pull_request' }}
uses: coatl-dev/workflows/.github/workflows/tox.yml@v6
with:
python-versions: |
3.9
3.10
3.11
3.12
working-directory: stubs
27 changes: 0 additions & 27 deletions .github/workflows/jython.yml

This file was deleted.

30 changes: 23 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,36 @@ on:
- published

jobs:
tox:
uses: ./.github/workflows/tox.yml
tox-package:
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v6

publish-package:
needs: tox
tox-stubs:
uses: coatl-dev/workflows/.github/workflows/tox.yml@v6
with:
python-versions: |
3.9
3.10
3.11
3.12
working-directory: stubs

pypi-publish-package:
needs: [tox-package]
uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@v6
with:
python-version: '2.7'
url: 'https://upload.pypi.org/legacy/'
username: '__token__'
secrets:
password: ${{ secrets.PYPI_API_TOKEN_INCENDIUM_PKG }}

publish-stubs:
needs: tox
pypi-publish-stubs:
needs: [tox-stubs]
uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@v6
with:
python-version: '3.12'
working-directory: stubs
url: 'https://upload.pypi.org/legacy/'
username: '__token__'
working-directory: 'stubs'
secrets:
password: ${{ secrets.PYPI_API_TOKEN_INCENDIUM_STUBS }}
12 changes: 0 additions & 12 deletions .github/workflows/tox.yml

This file was deleted.

Loading
Loading