Skip to main content

marine carbon management package

Project description

MarineCarbonManagement

PyPI version PyPI - Python Version License Link Static Badge

The marine carbon management software is an open-source Python based software that contains generic models for marine carbon capture. More models are under development and will be added soon.

Software requirements

  • Python version 3.10+

Installing Marine Carbon Management

PyPI

pip install marine-carbon-management

Source Installation

  1. Using Git, navigate to a local target directory and clone repository:

    git clone https://github.com/NREL/MarineCarbonManagement.git
    
  2. Navigate to MarineCarbonManagement

    cd MarineCarbonManagement
    
  3. Create a new virtual environment and change to it. Using Conda and naming it 'mcm':

    conda create --name mcm python=3.11 -y
    conda activate mcm
    
  4. Install MarineCarbonManagement and its dependencies:

    • If you want to just use MarineCarbonManagement:

      pip install .  
      
    • If you also want development dependencies for running tests:

      pip install -e ".[develop]"
      
    • If you also want development dependencies for running tests:

      pip install -e ".[examples]"
      
    • In one step, all dependencies can be installed as:

      pip install -e ".[all]"
      
  5. Verify setup by running tests:

    pytest
    

Release Notes

  1. Ensure tests pass.

  2. Ensure README is up to date with any updated information.

  3. Ensure dependency and Python versions are up to date.

  4. Ensure CHANGELOG.md is up to date.

  5. Bump version in mcm/__init__.py using semantic versioning logic (https://semver.org/).

  6. Make a pull request into the main branch from develop or a patch release branch.

    1. Merge main back into develop, if develop was not the base branch.
  7. Tag the new release and push it.

    git tag -a v1.2.3 -m "message for v1.2.3"
    git push origin v1.2.3
    
    1. This will kick off the "Deploy to Test PyPI" GitHub action. If this aciton passes successfully, move onto the step 8. If the action failed, keep following these sub instructions.

    2. Delete the tag locally and on remote.

      git tag -d v1.2.3
      git push --delete origin v1.2.3
      
    3. Create a new branch off main, and fix whatever was broken in the build process.

    4. Return to step 5.

  8. Create a new release at https://github.com/NatLabRockies/MarineCarbonManagement/releases, ensuring that:

    1. The newly created tag is selected, and
    2. "Generate release notes" is selected.

This will kick off the "Deploy to PyPI" GitHub action, and should pass if the "Deploy to Test PyPI" action passed. In the rare instance that the "Deploy to PyPI" action fails, follow the steps starting at 6.2. Just note that the Test PyPI action will now fail, so there will not be a check to ensure publishing to PyPI should work.

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

marine_carbon_management-0.1.1.tar.gz (231.6 kB view details)

Uploaded Source

Built Distribution

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

marine_carbon_management-0.1.1-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file marine_carbon_management-0.1.1.tar.gz.

File metadata

  • Download URL: marine_carbon_management-0.1.1.tar.gz
  • Upload date:
  • Size: 231.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for marine_carbon_management-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1cb6f8e4bda36198d717dc90470a788b6fa87735af3bb647d145ab929401e806
MD5 486d9627dc509a6e9b586db4911f9335
BLAKE2b-256 d92833955c16f8b951790ec12d18026a8a034f11e69bc58f858330aedf0ef611

See more details on using hashes here.

Provenance

The following attestation bundles were made for marine_carbon_management-0.1.1.tar.gz:

Publisher: python-publish.yml on NatLabRockies/MarineCarbonManagement

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

File details

Details for the file marine_carbon_management-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for marine_carbon_management-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5703b8c434a0190cda76a7a180cd64623bca804f81e0f237d4b1f514a8f4bb77
MD5 c21688ccaade65bc97c5125e2ca2c2c4
BLAKE2b-256 a02268eafb52a7df30abcadfc472f199bf127bc918e678d4a41f08c425489cf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for marine_carbon_management-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on NatLabRockies/MarineCarbonManagement

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