Giter Site home page Giter Site logo

pyex_cc's Introduction

pyex_cc

This project is based on tools discussed in the book Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More by Julian Danjou

Cookiecutter initial instructions

Assumptions

  • Git repository is hosted on GitHub
  • PyPI repository is hosted on AWS CodeArtifact

Instructions for using this cookiecutter

  1. Download and install Anaconda or Miniconda
  2. Create a new conda environment and activate it
conda create --name pyex_cc python={{cookiecutter.python_version}}
conda activate pyex_cc
  1. Install cookiecutter
pip install cookiecutter
  1. Create new project with pyex_cc
# for ssh credentials
cookiecutter [email protected]:ta2fb/pyex_cc.git
# for https credentials
cookiecutter https://github.com/ta2fb/pyex_cc
  1. Create git repository on GitHub
  2. Change to project directory and initialize git
cd {{cookiecutter.project_name}}
git init
  1. Set remote origin to GitHub git repository url
# for ssh credentials
git remote add origin [email protected]:{{cookiecutter.github_org}}/{{cookiecutter.project_name}}.git
# for https credentials
git remote add origin https://github.com/{{cookiecutter.github_org}}/{{cookiecutter.project_name}}.git
  1. Deactivate pyex_cc conda environment
conda deactivate
  1. Continue with the steps in the Development section within the new project created

Cookiecutter packages and purposes

  • codeartifact-release (https://github.com/ta2fb/codeartifact_release)
    • Cuts releases and pushes artifacts to AWS CodeArtifact
  • pbr
    • Part of setuptools configuration
    • Automatic generation of Sphinx documentation
    • Automatic generation of AUTHORS and ChangeLog files based on git history
    • Automatic creation of file lists for git
    • Version management based on git tags using semantic versioning
  • pytest
    • Unit testing
  • pytest-cov
    • Code coverage
  • pytest-xdist (not implemented yet)
    • Run tests on multiple CPUs (pytest -n NUM)
  • sphinx
    • Code documentation
    • Themes to choose from: https://sphinx-themes.org/
    • After building documentation can be viewed in your browser at
      • file:///path/to/{cookiecutter.project_name}}/build/sphinx/html/index.html
  • setuptools
    • Project configuration
  • tox
    • Automate and standardize testing and building of the project
    • Builds clean environments for proper testing of code
  • tox-conda
    • Plugin that forces tox to use conda environments instead of virtualenvs

pyex_cc's People

Contributors

tadam-biocorellc avatar

Stargazers

Jdub avatar Elvis Novoa avatar Britt Evans avatar

Watchers

 avatar

Forkers

rlwalker927

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.