GithubHelp home page GithubHelp logo

oast's Introduction

oast

This package provides our awesome spectral toolbox for performing analysis of hyperspectral data.

Development

Setup

In the cloned git repository, create your virtual environment:

python3 -m venv .venv
source .venv/bin/activate  # or .venv/bin/activate.fish, or whatever

and install this package in "editable" mode:

pip install --editable .

If you get an error like ERROR: File "setup.py" not found., then upgrade pip (pip install --upgrade pip) and retry.

Now, you can run the console scripts and such, with all the necessary dependencies, but the local code is still being run directly, so any changes made are immediately reflected.

Building and releasing for PyPI

With build installed (pip install --upgrade build), you can then run:

python3 -m build

You now have your distribution ready (e.g. a tar.gz file and a .whl file in the dist directory), which you can upload to PyPI! With twine installed (pipx install twine), upload the distribution with:

twine upload dist/*

Releasing for conda

This package is distributed for conda through the conda-forge channel. When a new version is released on PyPI, that new version should also be released on conda-forge.

It is highly likely that a bot will notice the new PyPI version and create and auto-merge a pull request on https://github.com/conda-forge/oast-feedstock automatically. If such a pull request doesn't arrive, update the feedstock manually as follows.

Clone your fork of the conda feedstock (https://github.com/conda-forge/oast-feedstock) and update the recipe/meta.yaml file to reflect the new PyPI release. If you have grayskull installed (pipx install grayskull), you can generate a recipe that has the new PyPI release information with

grayskull pypi --strict-conda-forge oast

and manually copy over the version, sha256, etc to the recipe/meta.yaml file in the feedstock repository. Don't blindly copy over the whole file.

Commit and push the recipe change and open a pull request to https://github.com/conda-forge/oast-feedstock. On the pull request, comment "@conda-forge-admin please rerender" to rerender it. Once the pull request is merged, conda-forge should build and publish the new version.

oast's People

Contributors

jag426 avatar agusdb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.