Skip to main content

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:

  1. Create .github/workflows/updateCitation.yml in your repository
  2. Copy the provided workflow configuration
  3. 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 name
  • version: Current version
  • authors: List of authors with names and emails

Recommended Fields

  • description: Project description
  • keywords: Search keywords
  • license: License information
  • urls: 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.

CC-BY-NC-4.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

updatecitation-0.0.5.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

updateCitation-0.0.5-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file updatecitation-0.0.5.tar.gz.

File metadata

  • Download URL: updatecitation-0.0.5.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for updatecitation-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c6a40c26585f594837732e0f58215c27da9f6485dbaf9ff69b9445f178b53aff
MD5 4186a0c4e12b22d9b9793b0fd3b2f458
BLAKE2b-256 fd700ec2fccb2a36033d4bb10bc6dd8ba447e7b167e0d34d0bf5b4d97292667b

See more details on using hashes here.

Provenance

The following attestation bundles were made for updatecitation-0.0.5.tar.gz:

Publisher: pypiRelease.yml on hunterhogan/updateCitation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file updateCitation-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: updateCitation-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for updateCitation-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 919fffb829c78f6b41ff28c1308e8b0e0043305255a957c80ad0a9d28ad137cc
MD5 31891eb9bbd4d6a74b504711f6ead3b5
BLAKE2b-256 c2e1a6507ec117f900f4a9d98b2a6245bf42f5d8e3ef3bee19315473b2dbb588

See more details on using hashes here.

Provenance

The following attestation bundles were made for updateCitation-0.0.5-py3-none-any.whl:

Publisher: pypiRelease.yml on hunterhogan/updateCitation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page