-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overhaul with CI/CD, envvar-renames and lots of fixes to make CI happy
- Loading branch information
Showing
23 changed files
with
285 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated from: | ||
# https://github.com/plone/meta/tree/master/config/default | ||
# See the inline comments on how to expand/tweak this configuration file | ||
[flake8] | ||
doctests = 1 | ||
ignore = | ||
# black takes care of line length | ||
E501, | ||
# black takes care of where to break lines | ||
W503, | ||
# black takes care of spaces within slicing (list[:]) | ||
E203, | ||
# black takes care of spaces after commas | ||
E231, | ||
|
||
## | ||
# Add extra configuration options in .meta.toml: | ||
# [flake8] | ||
# extra_lines = """ | ||
# _your own configuration lines_ | ||
# """ | ||
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Python package CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox tox-gh-actions | ||
- name: Test with tox | ||
run: tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ output.xml | |
pip-selfcheck.json | ||
report.html | ||
.vscode/ | ||
.tox | ||
.python-version | ||
reports/ | ||
# excludes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: monthly | ||
|
||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.5.1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- "types-requests" | ||
- "pytest-stub" | ||
# - repo: https://github.com/codespell-project/codespell | ||
# rev: v2.2.5 | ||
# hooks: | ||
# - id: codespell | ||
# additional_dependencies: | ||
# - tomli | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.49" | ||
hooks: | ||
- id: check-manifest | ||
- repo: https://github.com/regebro/pyroma | ||
rev: "4.2" | ||
hooks: | ||
- id: pyroma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
Contributors | ||
============ | ||
|
||
- Jens W. Klein, [email protected] | ||
- Katja Süss, Rohberg, @ksuess | ||
- Peter Holzer - Initiative, idea and testing. | ||
- Jens W. Klein, [email protected] - Concept & code. | ||
- Katja Süss, Rohberg, @ksuess - Text analysis code and configuration. | ||
|
||
Initial implementation was made possible by `Evangelisch-reformierte Landeskirche des Kantons Zürich <https://zhref.ch/>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[mypy] | ||
mypy_path=./src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
[project] | ||
name = "collective.elastic.ingest" | ||
version = "2.0.0dev0" | ||
description = "Ingestion service queue runner between Plone RestAPI and ElasticSearch or OpenSearch." | ||
keywords = ["elasticsearch", "opensearch", "plone", "celery", "search", "indexer"] | ||
readme = "README.rst" | ||
|
||
authors = [ | ||
{name = "Jens Klein", email = "[email protected]"}, | ||
{name = "Katja Süss"}, | ||
{name = "Peter Holzer"}, | ||
] | ||
requires-python = ">=3.8" | ||
license = { text = "GPL 2.0" } | ||
classifiers = [ | ||
"Environment :: Web Environment", | ||
"Framework :: Plone", | ||
"Framework :: Plone :: Addon", | ||
"Framework :: Plone :: 5.2", | ||
"Framework :: Plone :: 6.0", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)", | ||
"Development Status :: 5 - Production/Stable", | ||
] | ||
dependencies = [ | ||
"CacheControl", | ||
"celery", | ||
"requests", | ||
"setuptools", | ||
] | ||
|
||
[project.urls] | ||
PyPI = "https://pypi.python.org/pypi/collective.elastic.ingest" | ||
Changelog = "https://github.com/collective/collective.elastic.ingest/blob/main/CHANGES.rst" | ||
Source = "https://github.com/collective/collective.elastic.ingest" | ||
Issues = "https://github.com/collective/collective.elastic.ingest/issues" | ||
|
||
[project.optional-dependencies] | ||
redis = ["celery[redis]"] | ||
rabbitmq = ["celery[librabbitmq]"] | ||
opensearch = ["opensearch-py"] | ||
elasticsearch = ["elasticsearch>=8.0"] | ||
test = [ | ||
"pytest", | ||
"requests-mock", | ||
"pdbpp", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools>=61"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
testpaths = [ | ||
"src", | ||
] | ||
|
||
[tool.isort] | ||
profile = "plone" | ||
|
||
[tool.black] | ||
include = "src" | ||
|
||
[tool.codespell] | ||
ignore-words-list = "discreet," | ||
skip = './examples/*,./venv/*' | ||
|
||
[tool.check-manifest] | ||
ignore = [ | ||
".editorconfig", | ||
".pre-commit-config.yaml", | ||
"tox.ini", | ||
"mypy.ini", | ||
".flake8", | ||
"mx.ini", | ||
|
||
] | ||
|
||
[zest.releaser] | ||
create-wheel = true |
Oops, something went wrong.