Giter VIP home page Giter VIP logo

cookiecutter-rrpyapplication's Introduction

Cookiecutter RRPyApplication

Cookiecutter template for a RR Python application.

Notes:

  • Support python3.6+ only
  • If you have a library(not a application) you might want to take a look at RRPyLibrary

Features

Quickstart

# Install pipx if cookiecutter are not installed
python3 -m pip install --user pipx
python3 -m pipx ensurepath

# Use cookiecutter to create project from this template
pipx run cookiecutter gh:HuangKaiHuan/cookiecutter-rrpyapplication

# cd to the project root
cd existing_folder

# create virtualenv(recommend)
python3 -m venv venv
source venv/bin/activate # for linux
venv/Scripts/activate # for windows

# install dependencies
python -m pip install -U pip
python -m pip install -e .

# auto init the repo by invoke command
inv init-repo

# or you can run command step by step
git init
git add .
git commit -m "chore: First commit"
git tag $your_version
pre-commit install -t pre-commit
pre-commit install -t pre-push
pre-commit install -t commit-msg

# Push to remote repo
create a repo and put it there.
git remote add origin git@$repo_hosting_domain:$repo_username/$project_name.git
git push -u origin master

Developing the project

You should read Conventional Commits before doing a commit.

To run the tests, just run:

inv test

To run all check:

pre-commit run -a

Version management

You should read Semantic Versioning 2.0.0 before bumping versions.

  • inv bumpversion patch to increase version from 1.0.0 to 1.0.1.
  • inv bumpversion minor to increase version from 1.0.0 to 1.1.0.
  • inv bumpversion major to increase version from 1.0.0 to 2.0.0.
  • inv bumpversion auto to auto increase version.

At the same time, it will auto update the changelog.

Building and Bundles

inv freeze

cookiecutter-rrpyapplication's People

Contributors

huangkaihuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.