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

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.cff files.
  • 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:

  1. Read the pyproject.toml file for project metadata.
  2. Fetch the latest release information from GitHub.
  3. Retrieve package information from PyPI.
  4. Update the CITATION.cff file 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.

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.1.tar.gz (19.8 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.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

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

Hashes for updatecitation-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fb90c1c0f5999f45bb5d3b1d2e79d3eefc4245df0010ad994cfb2e671d2c28ea
MD5 ebd193d9273c1a5cc49dff9f5f5e3763
BLAKE2b-256 56027b5d4660499a255a1f2a26267ae7160f04b1fcdbf8739d84f19192dfcbbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for updatecitation-0.0.1.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.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

Hashes for updateCitation-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59067c6f83022579c8f5229fd7b75aa68ed5c37380adf5abd93e0d4ade46a781
MD5 7ec05af254ed6f74c9e44a18e90ab0a0
BLAKE2b-256 453bf895c45652612a7ff9a3475ae37db8f885df58b527654ca667f2b260df18

See more details on using hashes here.

Provenance

The following attestation bundles were made for updateCitation-0.0.1-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