Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

models: logging strings unicode-friendly #142

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a929b02
travis: fix release
ntarocco Nov 19, 2019
acd00be
models: fix exception interpolation for better aggreagation
drjova Jan 13, 2020
6531259
global: centralize dependencies
slint Mar 2, 2020
49f22cd
release: v1.2.0
drjova Mar 10, 2020
2170268
models: fix docstring typos
Jul 20, 2020
1313dc9
dependencies, tests: upgrade deps and fix isort issues
Jul 20, 2020
dec0fd1
resolver: support returning new and reseved pids
Jul 20, 2020
8399be3
recid_v2: support setting default status for obj_type and obj_uuid
Jul 21, 2020
172f68e
release: v1.2.1
Jul 22, 2020
eaf6c82
global: migrate CI to gh-actions
Dec 9, 2020
2dca151
tests: fixed Pycodestyle and isort errors
Dec 9, 2020
a3d4adb
providers: api consistency
lnielsen Jan 18, 2021
8f6e997
release: v1.2.2
lnielsen Jan 19, 2021
1553627
ext: replace pkg_resources
rerowep Jan 13, 2022
e58e098
release: v1.2.3
lnielsen Feb 28, 2022
5cfc0a6
i18n: extract messages
mb-wali May 27, 2022
7bc5d67
i18n: adds german translations (#140)
mb-wali Jun 3, 2022
97b4752
migrate setup.py to setup.cfg
utnapischtim Jun 8, 2022
6df72b9
migrate to use black as opinionated auto formater
utnapischtim Jun 8, 2022
8ccc310
add .git-blame-ignore-revs
utnapischtim Jun 8, 2022
5df2955
fix docs compatibilty problem with Sphinx>=5.0.0
utnapischtim Jun 8, 2022
39efa28
move check_manifest configuration to setup.cfg.
utnapischtim Jun 8, 2022
d436f0a
increase minimal python version to 3.7
utnapischtim Jun 8, 2022
d4f571a
global: clean test infrastructure
utnapischtim Jun 8, 2022
d46dae6
models: logging strings unicode-friendly
Jul 26, 2022
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
15 changes: 2 additions & 13 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

# Python files
[*.py]
indent_size = 4
# isort plugin configuration
known_standard_library = enum
known_first_party = invenio_pidstore
known_third_party = invenio_db,datacite
multi_line_output = 2
default_section = THIRDPARTY
skip = .eggs

# RST files (used by sphinx)
[*.rst]
indent_size = 4
Expand All @@ -34,8 +23,8 @@ indent_size = 4
[*.{css,html,js,json,yml}]
indent_size = 2

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
# Matches the exact files either package.json or .github/workflows/*.yml
[{package.json, .github/workflows/*.yml}]
indent_size = 2

# Dockerfile
Expand Down
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8849a1eabd505ddfecfcca09ca1744f8c96a6747
35 changes: 35 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

on:
push:
tags:
- v*

jobs:
Publish:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
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

- name: Build package
# Remove `compile_catalog` if the package has no translations.
run: |
python setup.py compile_catalog sdist bdist_wheel

- name: Publish on PyPI
uses: pypa/[email protected]
with:
user: __token__
# The token is provided by the inveniosoftware organization
password: ${{ secrets.pypi_token }}
83 changes: 83 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2020 CERN.
# Copyright (C) 2022 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

name: CI

on:
push:
branches: master
pull_request:
branches: master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 3 * * 6'
workflow_dispatch:
inputs:
reason:
description: 'Reason'
required: false
default: 'Manual trigger'

jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
requirements-level: [pypi]
cache-service: [redis]
db-service: [postgresql10, postgresql13, mysql5, mysql8]
include:
- db-service: postgresql10
DB_EXTRAS: "postgresql"

- db-service: postgresql13
DB_EXTRAS: "postgresql"

- db-service: mysql5
DB_EXTRAS: "mysql"

- db-service: mysql8
DB_EXTRAS: "mysql"

env:
CACHE: ${{ matrix.cache-service }}
DB: ${{ matrix.db-service }}
EXTRAS: tests
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
78 changes: 0 additions & 78 deletions .travis.yml

This file was deleted.

24 changes: 23 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
..
This file is part of Invenio.
Copyright (C) 2015-2019 CERN.
Copyright (C) 2015-2020 CERN.

Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.

Changes
=======

Version 1.2.3 (released 2022-02-28)

- Replaces pkg_resources with importlib for entry points iteration.

Version 1.2.2 (released 2021-01-19)

- Fix a consistency issue in the providers API where the create() method takes
kwargs and passes them to __init__, but __init__ doesn't take kwargs by
default. This made it difficult to exchange providers. Now __init__ takes
kwargs by default.

Version 1.2.1 (released 2020-07-22)

- Support returning NEW and RESERVED PIDs by setting the `registered_only` flag.
- Support setting default status for PIDs with object type and uuid.

Version 1.2.0 (released 2020-03-09)

- Change exception interpolation for better aggregation
- Depend on Invenio-Base, Invenio-Admin, and Invenio-I18N to centralize
3rd-party module dependencies.

Version 1.1.0 (released 2019-11-18)

- New record id provider v2 to generate random, base32, URI-friendly
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ Before you submit a pull request, check that it meets these guidelines:
1. The pull request should include tests and must not decrease test coverage.
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring.
3. The pull request should work for Python 2.7, 3.3, 3.4 and 3.5. Check
https://travis-ci.org/inveniosoftware/invenio-pidstore/pull_requests
3. The pull request should work for Python 3.6, 3.7, 3.8 and 3.9. Check
https://github.com/inveniosoftware/invenio-pidstore/actions?query=event%3Apull_request
and make sure that the tests pass for all supported Python versions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ recursive-include invenio_pidstore *.po
recursive-include invenio_pidstore *.pot
recursive-include invenio_pidstore *.py
recursive-include tests *.py
recursive-include .github/workflows *.yml
include .git-blame-ignore-revs
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
.. image:: https://img.shields.io/github/license/inveniosoftware/invenio-pidstore.svg
:target: https://github.com/inveniosoftware/invenio-pidstore/blob/master/LICENSE

.. image:: https://img.shields.io/travis/inveniosoftware/invenio-pidstore.svg
:target: https://travis-ci.org/inveniosoftware/invenio-pidstore
.. image:: https://github.com/inveniosoftware/invenio-pidstore/workflows/CI/badge.svg
:target: https://github.com/inveniosoftware/invenio-pidstore/actions?query=workflow%3ACI

.. image:: https://img.shields.io/coveralls/inveniosoftware/invenio-pidstore.svg
:target: https://coveralls.io/r/inveniosoftware/invenio-pidstore
Expand Down
1 change: 0 additions & 1 deletion babel.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ encoding = utf-8

[jinja2: **/templates/**.html]
encoding = utf-8
extensions = jinja2.ext.autoescape, jinja2.ext.with_

# Extraction from JavaScript files

Expand Down
Loading