Skip to main content

CASA Operational Configuration Package

Project description

casaconfig

Runtime data necessary for CASA operation.

Release Instructions

  1. Create a release branch with a version name (ie v1.6.2)
  2. Ensure the version number in pyproject.toml on the branch is set correctly
  3. Create a tag of the release branch (ie v1.6.2-1)
  4. Github Action runs automatically to publish a pip package to pypi

Installation

$: pip install casaconfig

Usage

See the casaconfig API documentation on casadocs (links above).

Also see the External Data section of casadocs for additional details

Developers Instructions

  1. every push to the casaconfig repository will push a new wheel to test pypi
  2. the version in pyproject.toml must be updated before each push so that the wheel has a unique name (e.g. "1.2.3dev2", where "dev?" could be incremented during development; see the specification for more information about valid version signifiers)
  3. When testing with a casatools build, "pip install" the development casaconfig wheel before running any tests - it may be installed before casatools is installed or after since the casatools build does not depend on casasconfig (uninstall any already installed casaconfig if necessary).
  4. For release, follow the above instructions.

Wheels can be built locally following the same process used by the CI actions. To install the build-system dependencies as defined in pyproject.toml and then generate a source distribution and wheel:

python3 -m pip install build setuptools --user
python3 -m build

This will create:

casaconfig.egg-info
├── PKG-INFO
├── SOURCES.txt
├── dependency_links.txt
├── requires.txt
└── top_level.txt
dist
├── casaconfig-[VERSION]-py3-none-any.whl
└── casaconfig-[VERSION].tar.gz

Setting up CASA branches for casaconfig development

The casaconfig build process publishes test wheels to test.pypi.org

In order to test these with Casa packages, two changes are needed in the casa6 repository branch.

  1. Add a line to casa6/build.conf with the appropriate wheel version. For example:
casaconfig==1.0.3.dev2
  1. Add the following line with the apppropriate branch name to casa6/casatools/setup.py
META_DATA["install_requires"] = "casaconfig@git+https://github.com/casangi/casaconfig@CAS-14512"

This adds the casaconfig branch as a casatools install time dependency. It will not use the wheel, but rather build the branch in place. This is required in order to avoid adding test.pypi.org as a pip extra-index-url, which might cause other development packages to be installed inadvertently. Note that casaconfig dependency is typically defined in setup.cfg, but the syntax above does not work with setup.cfg.

Preparing the casa6 branch for merge

  1. Merge the casaconfig branch to main and create a wheel
  2. Update casa6/build.conf to use that wheel
  3. Comment out the extra "install_requires" line from setup.py

Project details


Release history Release notifications | RSS feed

This version

1.2.0

Download files

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

Source Distribution

casaconfig-1.2.0.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

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

casaconfig-1.2.0-py3-none-any.whl (68.9 kB view details)

Uploaded Python 3

File details

Details for the file casaconfig-1.2.0.tar.gz.

File metadata

  • Download URL: casaconfig-1.2.0.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for casaconfig-1.2.0.tar.gz
Algorithm Hash digest
SHA256 9883e7027df0bc09b03c26e618eef74e3519f8ef3f77b860ef898c6b3da15948
MD5 53ab3353fd069029f0dfc400b2331427
BLAKE2b-256 dd05e40ee712b1782a6392edd1beb2e9ea7bcb282aed4f246660c5c899a8ae48

See more details on using hashes here.

Provenance

The following attestation bundles were made for casaconfig-1.2.0.tar.gz:

Publisher: pythonpublish.yml on casangi/casaconfig

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

File details

Details for the file casaconfig-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: casaconfig-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 68.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for casaconfig-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11a2c3a22d307d8a461208afce41c35b0bb08559f5c58b09e365c36b7adaa924
MD5 d9dc1cf0f48cc42d7c515bccfd810986
BLAKE2b-256 b3d8c1b99ab49b54e9b292e9fc9cc691a07dbe5d242ea58c0043cba4e889d753

See more details on using hashes here.

Provenance

The following attestation bundles were made for casaconfig-1.2.0-py3-none-any.whl:

Publisher: pythonpublish.yml on casangi/casaconfig

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