Automatically update citation files (CITATION.cff) in a GitHub repository from `pyproject.toml`, GitHub releases, and PyPI releases.
Project description
updateCitation
updateCitation is a Python tool that automates the maintenance of citation metadata in software projects. It helps researchers and developers ensure their work is properly citeable while maintaining consistent metadata across different platforms.
Key Features
- Automatic generation and updates of CITATION.cff files
- Seamless integration with Python package metadata from pyproject.toml
- Synchronization with GitHub release information
- Integration with PyPI package metadata
- Validation of citation metadata format
- GitHub Actions support for automated updates
Installation
pip install updateCitation
Usage
The simplest way to use updateCitation is to run it from your repository root:
import updateCitation
updateCitation.here()
For custom pyproject.toml locations:
updateCitation.here("path/to/pyproject.toml")
GitHub Actions Integration
updateCitation provides a GitHub Action that automatically updates your citation metadata on each push. To enable this:
- Create
.github/workflows/updateCitation.ymlin your repository - Copy the provided workflow configuration
- Commit and push to activate automated citation updates
Configuration
updateCitation primarily uses your project's pyproject.toml file for configuration. Essential fields include:
Required Fields
name: Package nameversion: Current versionauthors: List of authors with names and emails
Recommended Fields
description: Project descriptionkeywords: Search keywordslicense: License informationurls: Project URLs (homepage, repository, etc.)
Optional Tool Settings
You can customize updateCitation's behavior in the [tool.updateCitation] section of pyproject.toml.
Documentation
For detailed documentation, examples, and best practices, visit our GitHub repository.
Contributing
Contributions are welcome! Please feel free to submit pull requests.
License
This project is licensed under CC-BY-NC-4.0. See the LICENSE file for details.
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.3.tar.gz.
File metadata
- Download URL: updatecitation-0.0.3.tar.gz
- Upload date:
- Size: 20.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 |
f2233ef99fc2e1c727a0c339da4705a6e8ead5bed940f7cbbb5f003c6f49701f
|
|
| MD5 |
64a87182add9d55a0e090dd53abee272
|
|
| BLAKE2b-256 |
4c81b1adc49fd5923926dde69c6dd39be1e8e5b3e0ec7430fe6b2c013c6fcfe5
|
Provenance
The following attestation bundles were made for updatecitation-0.0.3.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.3.tar.gz -
Subject digest:
f2233ef99fc2e1c727a0c339da4705a6e8ead5bed940f7cbbb5f003c6f49701f - Sigstore transparency entry: 170902776
- Sigstore integration time:
-
Permalink:
hunterhogan/updateCitation@1d852efb6a8d81b9eca8202dcee876d6d35a04fb -
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@1d852efb6a8d81b9eca8202dcee876d6d35a04fb -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file updateCitation-0.0.3-py3-none-any.whl.
File metadata
- Download URL: updateCitation-0.0.3-py3-none-any.whl
- Upload date:
- Size: 24.0 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 |
2b6b057a92404762f1db9c65c3078f597bdff7cb5bd5a2e4eed08e70c475db8d
|
|
| MD5 |
eba715a25fcd7d143b947c71feff5e3f
|
|
| BLAKE2b-256 |
8e1edad0ea7cbbe57cdc84a346719425236e1c732ff0952d694d605c49fc05a3
|
Provenance
The following attestation bundles were made for updateCitation-0.0.3-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.3-py3-none-any.whl -
Subject digest:
2b6b057a92404762f1db9c65c3078f597bdff7cb5bd5a2e4eed08e70c475db8d - Sigstore transparency entry: 170902781
- Sigstore integration time:
-
Permalink:
hunterhogan/updateCitation@1d852efb6a8d81b9eca8202dcee876d6d35a04fb -
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@1d852efb6a8d81b9eca8202dcee876d6d35a04fb -
Trigger Event:
workflow_run
-
Statement type: