mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-11-09 00:49:10 +01:00
Compare commits
1 Commits
renovate/l
...
c66c5d910d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c66c5d910d |
4
.github/workflows/python-app.yml
vendored
4
.github/workflows/python-app.yml
vendored
@@ -15,9 +15,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v4
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v5
|
||||||
with:
|
with:
|
||||||
version: 'latest'
|
version: 'latest'
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ 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/),
|
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.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## Unreleased
|
|
||||||
### Changed
|
|
||||||
- New AGROVOC REST API URL
|
|
||||||
|
|
||||||
## [0.7.0] - 2025-01-31
|
## [0.7.0] - 2025-01-31
|
||||||
### Added
|
### Added
|
||||||
- Ability to normalize DOIs to https://doi.org URI format
|
- Ability to normalize DOIs to https://doi.org URI format
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ authors = [
|
|||||||
]
|
]
|
||||||
license= { file = "LICENSE.txt" }
|
license= { file = "LICENSE.txt" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pandas[feather,performance]~=2.3.1",
|
"pandas[feather,performance]~=2.2.3",
|
||||||
"python-stdnum~=2.1",
|
"python-stdnum~=1.20",
|
||||||
"requests~=2.32.3",
|
"requests~=2.32.3",
|
||||||
"requests-cache~=1.2.1",
|
"requests-cache~=1.2.1",
|
||||||
"colorama~=0.4",
|
"colorama~=0.4",
|
||||||
@@ -40,7 +40,7 @@ csv-metadata-quality = 'csv_metadata_quality.__main__:main'
|
|||||||
|
|
||||||
# See: https://docs.astral.sh/uv/concepts/build-backend/
|
# See: https://docs.astral.sh/uv/concepts/build-backend/
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["uv_build>=0.8.8,<0.9.0"]
|
requires = ["uv_build>=0.7.19,<0.8.0"]
|
||||||
build-backend = "uv_build"
|
build-backend = "uv_build"
|
||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
@@ -48,7 +48,7 @@ dev = [
|
|||||||
"pytest~=8.3",
|
"pytest~=8.3",
|
||||||
"isort~=6.0",
|
"isort~=6.0",
|
||||||
"csvkit~=2.0",
|
"csvkit~=2.0",
|
||||||
"ipython~=8.31",
|
"ipython~=9.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
|
|||||||
9
renovate.json
Normal file
9
renovate.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:recommended"
|
||||||
|
],
|
||||||
|
"pip_requirements": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
lockFileMaintenance: {
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
pip_requirements: {
|
|
||||||
enabled: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -206,7 +206,7 @@ def agrovoc(field, field_name, drop):
|
|||||||
|
|
||||||
# Try to split multi-value field on "||" separator
|
# Try to split multi-value field on "||" separator
|
||||||
for value in field.split("||"):
|
for value in field.split("||"):
|
||||||
request_url = "https://agrovoc.fao.org/browse/rest/v1/search"
|
request_url = "https://agrovoc.uniroma2.it/agrovoc/rest/v1/agrovoc/search"
|
||||||
request_params = {"query": value}
|
request_params = {"query": value}
|
||||||
|
|
||||||
request = requests.get(request_url, params=request_params)
|
request = requests.get(request_url, params=request_params)
|
||||||
|
|||||||
Reference in New Issue
Block a user