Skip to content

Commit

Permalink
release 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
geritwagner committed Apr 4, 2024
1 parent e27f601 commit 27ce337
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 12 deletions.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0).

<!--
## Unreleased
### Added
Expand All @@ -14,6 +15,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0).
### Removed
### Fixed
-->

## 0.12.0 - 2024-04-04

### Added

- Add linter `colrev_records_variable_naming_convention`
- Test coverage increased from 71% to 80%

### Changed

- Split `records`, `dataset`, created `records` package.
- Extracted `process` as a separate package.
- Implemented loaders as a separate package, created a standard interface. SearchSources now create the specific mapping of IDs, entrytypes and fields.
- Moved field standardization from `load` to SearchSources.
- Extended use of constants
- SearchSourceInterface: renamed `run_search` to `search`, prefer `prep_link_md` over `get_masterdata`
- Renamed and refactored `GeneralOriginFeed` to `SearchAPIFeed`
- Pass record objects instead of dicts (in `local_index` in particular)
- Replaced unnecessary keyword arguments by positional arguments
- Moved `zotero_translation_service` to `bibliography_export` package
- Consolidated code for reference parsing in `tei_parser`
- Upgraded Grobid to 0.8.0

### Removed

- Removed dead code
- Dropped `INCONSISTENT_WITH_DOI_METADATA`
- `transitions` dependency

### Fixed

- Do not require review_manager for `colrev env -i`
- Fixed `status_stats`, including special cases.
- Repository registration: resolve() and absolute() path

## 0.11.0 - 2024-02-17

Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ authors:
given-names: "Julian"
orcid: "https://orcid.org/0000-0003-2682-8036"
title: "CoLRev: An open-source environment for collaborative reviews"
version: 0.11.0
date-released: 2024-02-17
version: 0.12.0
date-released: 2024-04-04
url: "https://github.com/CoLRev-Environment/colrev"
2 changes: 1 addition & 1 deletion colrev/loader/load_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def get_nr_records( # type: ignore
"""Get the number of records in a file"""

if not filename.exists():
raise colrev_exceptions.ImportException(f"File not found: {filename.name}")
return 0

if filename.suffix == ".bib":
parser = colrev.loader.bib.BIBLoader # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion colrev/ops/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def main(self) -> None:
"version": CoLRevVersion("0.11.0"),
"target_version": CoLRevVersion("0.12.0"),
"script": self._migrate_0_12_0,
"released": False,
"released": True,
},
]
print(f"installed_colrev_version: {installed_colrev_version}")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "colrev"
version = "0.11.0"
version = "0.12.0"
description = "CoLRev: An open-source environment for collaborative reviews"
authors = ["Gerit Wagner <gerit.wagner@uni-bamberg.de>", "Julian Prester <julian.prester@sydney.edu.au>"]
license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ For all releases:
- Run [poetry update on GitHub](https://github.com/CoLRev-Environment/colrev/actions/workflows/poetry_update.yml).
- Change released to `True` for the migration script in `ops/upgrade.py`, add a new migration script.
- Update `settings.py - _add_missing_attributes()` to prevent exceptions.
- Update version in `tests/2_ops/check_test.py`
- Update version in `tests/0_core/review_manager_test.py`
- Run `colrev env --update_package_list`.
- Collect release notes and update the `CHANGELOG.md`.
- Update **version** and **date** and date in `CITATION.cff`.
- Update version in `SECURITY.md`.
- Update the version in `pyproject.toml`. Check whether other parts of the `pyproject.toml` need to be updated. Check whether dependencies can be removed.
- Check: `pyproject.toml` cannot have direct depdencies (Github)
- Commit the changes (`release 0.10.0`).
- Push to Github. Check whether the installation, tests, and pre-commit hooks pass.
- Run `git tag -s $VERSION` (format: "0.9.1").
Expand Down
2 changes: 1 addition & 1 deletion tests/0_core/review_manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_get_colrev_versions(
base_repo_review_manager: colrev.review_manager.ReviewManager,
) -> None:
colrev_versions = base_repo_review_manager.get_colrev_versions()
assert ["0.11.0", "0.11.0"] == colrev_versions
assert ["0.12.0", "0.12.0"] == colrev_versions


def test_check_repository_setup(
Expand Down
7 changes: 2 additions & 5 deletions tests/2_ops/check_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
"""Tests of the CoLRev checks"""
import platform
import typing
from dataclasses import asdict
from pathlib import Path

Expand All @@ -15,18 +16,14 @@ def test_checks( # type: ignore

checker = colrev.ops.checker.Checker(review_manager=base_repo_review_manager)

expected = ["0.11.0", "0.11.0"]
actual = checker.get_colrev_versions()
assert expected == actual

checker.check_repository_setup()

# Note: no assertion (yet)
checker.in_virtualenv()

actual = checker.check_repo_extended()
current_platform = platform.system()
expected = []
expected: typing.List[str] = []
assert expected == actual

actual = checker.check_repo() # type: ignore
Expand Down

0 comments on commit 27ce337

Please sign in to comment.