mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-23 05:21:57 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40a47ed36d | ||
|
|
129b331603 | ||
|
|
328abd1306 | ||
|
|
7ce124cdb9 | ||
|
|
75d78cf09a | ||
|
|
2e5fbcb4f9 | ||
|
|
4c4279965a |
21
.github/workflows/pypi-publish.yml
vendored
21
.github/workflows/pypi-publish.yml
vendored
@@ -5,22 +5,5 @@ on:
|
||||
|
||||
jobs:
|
||||
build-n-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install setuptools wheel "babel<=2.9.1"
|
||||
- name: Build package
|
||||
run: |
|
||||
python setup.py compile_catalog sdist bdist_wheel
|
||||
- name: pypi-publish
|
||||
uses: pypa/gh-action-pypi-publish@v1.3.1
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.pypi_password }}
|
||||
uses: tu-graz-library/.github/.github/workflows/pypi-publish.yml@main
|
||||
secrets: inherit
|
||||
|
||||
50
.github/workflows/tests.yml
vendored
50
.github/workflows/tests.yml
vendored
@@ -16,51 +16,5 @@ on:
|
||||
default: 'Manual trigger'
|
||||
|
||||
jobs:
|
||||
Tests:
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.8, 3.9]
|
||||
requirements-level: [pypi]
|
||||
db-service: [postgresql13]
|
||||
search-service: [opensearch2]
|
||||
include:
|
||||
- db-service: postgresql13
|
||||
DB_EXTRAS: "postgresql"
|
||||
|
||||
- search-service: opensearch2
|
||||
SEARCH_EXTRAS: "opensearch2"
|
||||
|
||||
env:
|
||||
DB: ${{ matrix.db-service }}
|
||||
SEARCH: ${{ matrix.search-service }}
|
||||
EXTRAS: tests,${{ matrix.SEARCH_EXTRAS }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Generate dependencies
|
||||
run: |
|
||||
pip install wheel requirements-builder
|
||||
requirements-builder -e "$EXTRAS" --level=${{ matrix.requirements-level }} setup.py > .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('.${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
|
||||
pip install ".[$EXTRAS]"
|
||||
pip freeze
|
||||
docker --version
|
||||
docker-compose --version
|
||||
- name: Run tests
|
||||
run: |
|
||||
./run-tests.sh
|
||||
tests:
|
||||
uses: tu-graz-library/.github/.github/workflows/tests.yml@main
|
||||
|
||||
10
CHANGES.rst
10
CHANGES.rst
@@ -8,6 +8,16 @@
|
||||
Changes
|
||||
=======
|
||||
|
||||
Version v0.11.0 (release 2023-04-20)
|
||||
|
||||
- global: make package compatible with v11
|
||||
|
||||
|
||||
Version v0.10.4 (release 2023-02-10)
|
||||
|
||||
|
||||
|
||||
|
||||
Version v0.10.2 (release 2023-02-02)
|
||||
|
||||
- change version name
|
||||
|
||||
@@ -12,7 +12,7 @@ from .ext import InvenioConfigTugraz
|
||||
from .generators import RecordIp
|
||||
from .utils import get_identity_from_user_by_email
|
||||
|
||||
__version__ = "0.10.2"
|
||||
__version__ = "0.11.0"
|
||||
|
||||
__all__ = (
|
||||
"__version__",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -23,7 +23,7 @@ function cleanup() {
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
python -m check_manifest --ignore ".*-requirements.txt"
|
||||
python -m check_manifest
|
||||
python -m sphinx.cmd.build -qnN docs docs/_build/html
|
||||
eval "$(docker-services-cli up --search ${SEARCH:-elasticsearch} --env)"
|
||||
python -m pytest
|
||||
|
||||
18
setup.cfg
18
setup.cfg
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2020-2022 Graz University of Technology.
|
||||
# Copyright (C) 2020-2023 Graz University of Technology.
|
||||
#
|
||||
# invenio-config-tugraz is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||
@@ -25,9 +25,9 @@ classifiers =
|
||||
Programming Language :: Python
|
||||
Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
||||
Topic :: Software Development :: Libraries :: Python Modules
|
||||
Programming Language :: Python :: 3.7
|
||||
Programming Language :: Python :: 3.8
|
||||
Programming Language :: Python :: 3.9
|
||||
Programming Language :: Python :: 3.10
|
||||
Development Status :: 3 - Alpha
|
||||
|
||||
[options]
|
||||
@@ -37,17 +37,15 @@ python_requires = >=3.8
|
||||
zip_safe = False
|
||||
install_requires =
|
||||
# keep this dependencies identical to invenio-app-rdm
|
||||
invenio-rdm-records>=0.39.0,<0.40.0
|
||||
invenio-rdm-records>=1.1.0,<2.0.0
|
||||
invenio-cache>=1.1.1,<1.2.0
|
||||
flask-babel>=2,<3
|
||||
|
||||
[options.extras_require]
|
||||
tests =
|
||||
pytest-black>=0.3.0,<0.3.10
|
||||
pytest-black>=0.3.0
|
||||
Sphinx>=4.5.0
|
||||
pytest-invenio>=1.4.7
|
||||
# elasticsearch7 =
|
||||
# invenio-search[elasticsearch7]>=2.1.0,<3.0.0
|
||||
opensearch2 =
|
||||
pytest-invenio>=2.1.0,<3.0.0
|
||||
invenio-search[opensearch2]>=2.1.0,<3.0.0
|
||||
|
||||
[options.entry_points]
|
||||
@@ -95,6 +93,10 @@ output-dir = invenio_config_tugraz/translations/
|
||||
[isort]
|
||||
profile=black
|
||||
|
||||
[check-manifest]
|
||||
ignore =
|
||||
*-requirements.txt
|
||||
|
||||
[tool:pytest]
|
||||
addopts = --black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_config_tugraz --cov-report=term-missing tests invenio_config_tugraz
|
||||
testpaths = tests invenio_config_tugraz
|
||||
|
||||
Reference in New Issue
Block a user