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.
Design goals
- 100% Python.
- Dynamic self-configuration whenever possible.
- 100% of the updateCitation settings in pyproject.toml.
- No command line arguments.
- No environment variables.
- No separate configuration files.
- All settings for external services, such as GitHub and PyPI, use the configuration from those services instead of creating new configuration for updateCitation.
- Highly extensible for current and future services.
My recovery
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
File details
Details for the file updatecitation-0.0.13.tar.gz.
File metadata
- Download URL: updatecitation-0.0.13.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2c438680ed4a0a754a0c8f20314257cd0f59d47714ffe26c34551b0f1115ad
|
|
| MD5 |
e4d928610ea6d640e6f06939293fcdb1
|
|
| BLAKE2b-256 |
5bfebf51900fe016200efee69521fdf468df91ba49caa70b3a4c58c94bfba451
|