Code Monkey home page Code Monkey logo

cookiecutter-bioio-reader's Introduction

Cookiecutter BioIO Reader

Build Status

License: MIT

A cookiecutter template for creating a new BioIO file format reader plugin.

About

Cookiecutter is a Python package to generate templated projects. This repository is a template for cookiecutter to generate a new BioIO File Format Reader Plugin. This cookiecutter generates:

  • A directory structure for your project
  • Prebuilt pyproject.toml file to help you develop and install your reader plugin package
    • Preconfigured to additionally label your reader plugin package as a bioio reader plugin
  • Includes basic examples of modules, tests, etc.
  • Continuous integration
    • Preconfigured to generate project documentation
    • Preconfigured to automatically run tests every time you push to GitHub
    • Preconfigured to help you release your reader plugin package publicly (PyPI)

Quickstart

To use this template use the following commands.

  1. pip install cookiecutter
  2. cookiecutter gh:bioio-devs/cookiecutter-bioio-reader

Once the project is generated, move to the newly created project directory and follow the instructions in SETUP.md.

Notes

  1. Requires setuptools>=64.0 to install library locally in editable mode
    • Most environment managers pull in the latest setuptools automatically when creating a new environment anyway.
  2. Must initialize the project as a git repository prior to installing locally.
    • This is due to the dynamic version management with setuptools-scm.
    • After running the cookiecutter, you should push code to a remote host (GitHub, GitLab, etc.) or at the very least, run git init prior to install.

Features

  • Uses pytest for local testing, simply run just build from a terminal.
  • Runs tests on Windows, Mac, and Ubuntu on every commit to main and every commit to branches with an open pull request to main using GitHub Actions.
  • Releases your Python Package to PyPI when you push to main after pushing a new git tag with just tag-for-release and just release.
  • Automatically builds documentation using Sphinx on every push to main and deploys to GitHub Pages.
  • Includes very minimal example code to get started.

List of available just commands:

just
Available recipes:
    build                    # run lint and then run tests
    clean                    # clean all build, python, and lint files
    default                  # list all available commands
    install                  # install with all deps
    lint                     # lint, format, and check all files
    release                  # release a new version
    tag-for-release version  # tag a new version
    test                     # run tests
    update-from-cookiecutter # update this repo using latest cookiecutter-bioio-reader

cookiecutter-bioio-reader's People

Contributors

brianwhitneyai avatar seanleroy avatar evamaxfield avatar dependabot[bot] avatar

Watchers

 avatar Chris Hughes avatar  avatar

cookiecutter-bioio-reader's Issues

Fix CI

Seems like some formatting errors in the cookiecutter, simple fix hopefully

bug/python versioning formatting

Commit e95d495 removed quotations from python 3.10. We assumed that this was not necessary but needs to be in-place for the trailing zero. When creating the ND2 and LIF readers this became apparent.

cookiecutter notes

  • remove data_dir fixture, possibly delete conftest altogether
  • remove python 3.8 support
  • add python 3.11 support?

Declare file extension support

Feature Description

Either in the cookiecutter or somewhere visible we'll need to make sure that plug-ins specify which file formats they support. Specifically they will need to mention which file extensions they are intended to support (should wildcards be allowed like for bioformats?).

Update dependencies / CI / CD

Feature Description

(Largely a placeholder/reminder) Update anything that isn't as up to date as it could be including best practice stuff.

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.