Automatically update citation files (CITATION.cff) in a GitHub repository from `pyproject.toml`, GitHub releases, and PyPI releases.
Project description
updateCitation
A tool to automatically update citation files (CITATION.cff) in a repository based on metadata from pyproject.toml, GitHub releases, and PyPI releases.
Features
- Automatically updates
CITATION.cfffiles. - Extracts metadata from
pyproject.toml. - Retrieves release information from GitHub.
- Fetches package information from PyPI.
- Ensures citation files are up-to-date with the latest project information.
Installation
pip install updateCitation
Usage
Run updateCitation from the root of your repository:
from updateCitation import updateHere
updateHere(path/to/repo)
This will:
- Read the
pyproject.tomlfile for project metadata. - Fetch the latest release information from GitHub.
- Retrieve package information from PyPI.
- Update the
CITATION.cfffile in your repository.
Configuration
Configuration is managed through the pyproject.toml file. Ensure that the [project] section contains accurate and up-to-date information about your project, including:
name: The name of the package.version: The current version of the package.authors: A list of authors and their associated email addresses.description: A short description of the package.keywords: A list of keywords associated with the package.license: The license information for the package.urls: Links to the project homepage, repository, and other relevant URLs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file updatecitation-0.0.1.tar.gz.
File metadata
- Download URL: updatecitation-0.0.1.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb90c1c0f5999f45bb5d3b1d2e79d3eefc4245df0010ad994cfb2e671d2c28ea
|
|
| MD5 |
ebd193d9273c1a5cc49dff9f5f5e3763
|
|
| BLAKE2b-256 |
56027b5d4660499a255a1f2a26267ae7160f04b1fcdbf8739d84f19192dfcbbc
|
Provenance
The following attestation bundles were made for updatecitation-0.0.1.tar.gz:
Publisher:
pypiRelease.yml on hunterhogan/updateCitation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
updatecitation-0.0.1.tar.gz -
Subject digest:
fb90c1c0f5999f45bb5d3b1d2e79d3eefc4245df0010ad994cfb2e671d2c28ea - Sigstore transparency entry: 169969427
- Sigstore integration time:
-
Permalink:
hunterhogan/updateCitation@34f811c59d90cad438b5acbdf37ac5ccce491ef7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hunterhogan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypiRelease.yml@34f811c59d90cad438b5acbdf37ac5ccce491ef7 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file updateCitation-0.0.1-py3-none-any.whl.
File metadata
- Download URL: updateCitation-0.0.1-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59067c6f83022579c8f5229fd7b75aa68ed5c37380adf5abd93e0d4ade46a781
|
|
| MD5 |
7ec05af254ed6f74c9e44a18e90ab0a0
|
|
| BLAKE2b-256 |
453bf895c45652612a7ff9a3475ae37db8f885df58b527654ca667f2b260df18
|
Provenance
The following attestation bundles were made for updateCitation-0.0.1-py3-none-any.whl:
Publisher:
pypiRelease.yml on hunterhogan/updateCitation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
updatecitation-0.0.1-py3-none-any.whl -
Subject digest:
59067c6f83022579c8f5229fd7b75aa68ed5c37380adf5abd93e0d4ade46a781 - Sigstore transparency entry: 169969428
- Sigstore integration time:
-
Permalink:
hunterhogan/updateCitation@34f811c59d90cad438b5acbdf37ac5ccce491ef7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hunterhogan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypiRelease.yml@34f811c59d90cad438b5acbdf37ac5ccce491ef7 -
Trigger Event:
workflow_run
-
Statement type: