Coder Social home page Coder Social logo

yukihiko-shinoda / cookiecutter-pypackage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from briggysmalls/cookiecutter-pypackage

0.0 0.0 0.0 6.71 MB

Cookiecutter template for a Python package.

Home Page: https://yukihiko-shinoda.github.io/docs-cookiecutter-pypackage/

License: BSD 3-Clause "New" or "Revised" License

Python 97.82% Dockerfile 2.18%

cookiecutter-pypackage's Introduction

Cookiecutter PyPackage

Test

Cookiecutter template for a Python package, forked from briggySmalls/cookiecutter-pypackage.

Features

This template focus following:

  • Target Python version: 3.7 - 3.12

  • Dependency tracking using Pipenv

  • Linting provided by both pylint, flake8, mypy [executed by GitHub Actions]

  • Formatting provided by isort, pipenv-setup, black [checked by GitHub Actions]

  • Analyzing complexity and maintainability provided by radon, xenon [checked by GitHub Actions]

  • All development tasks (lint, format, analyze, test, etc) excluding deployment wrapped up in a python CLI by invoke

  • Omit documentation workflows since this project targets early stages of development. In the early stages of development it is better to focus on providing working software and writing README.md than providing comprehensive documentation.

    @see Manifesto for Agile Software Development

Quickstart

1.

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher):

pip install -U cookiecutter

2.

Generate a Python package project:

cookiecutter https://github.com/yukihiko-shinoda/cookiecutter-pypackage.git --checkout master-yukihiko-shinoda

Then, you will interactively prompt some choices of templated values, for detail of templated values, see the Prompts.

Then initialized project direcotry is created in current directory.

Points to review after creating initialized project directory

1. Review support range if the one of your package is not Python 3.7 - 3.11

  • .github/workflows/test.yml
  • pyproject.toml
    • python_requires
    • classifiers
  • docs/CONTRIBUTING.md -> Get Started! -> 5. oldest Python version

2.

Pin wheel version in Pipfile and execute pipenv lock if you prefer stability of deployment task.

Remaining task after creating initialized project directory

1.

Commit and push to GitHub repository.

2.

Activate your created repository on Code Climate.

If you prefer, Enable [Pull request comments] and [Pull request status updates] from [Repo Settings] -> [GitHub]

Copy and paste badge from [Repo Settings] -> [Badges] to this README file.

2-1.

Copy "TEST REPORTER ID" from [Test Coverages]

2-2.

register copied TEST REPORTER ID into secret in your pushed GitHub repository as name "CC_TEST_REPORTER_ID".

3.

Activate your created repository on pyup.io.

Create a new account at pyup.io or log into your existing account.

Click on the green Add Repo button in the top left corner and select repository you created in Step 1. A popup will ask you whether you want to pin your dependencies. Click on Pin to add the repo.

Once your repo is set up correctly, the pyup.io badge will show your current update status.

4.

Issue API token at PyPI and register into secret of your GitHub repository as name pypi_password

5.

Create tag v[0-9]+.[0-9]+.[0-9]+ and push to GitHub repository to deploy into PyPI.

Then, get your code on! ๐Ÿ˜Ž Add your package dependencies to your pipenv with pipenv install.

cookiecutter-pypackage's People

Contributors

yukihiko-shinoda avatar audreyfeldroy avatar eliasdorneles avatar pydanny avatar briggysmalls avatar cerickson avatar purplediane avatar pyup-bot avatar skarbot avatar katialira avatar rwanyoike avatar treyhunner avatar palmerev avatar thejonanshow avatar westurner avatar tony avatar erwinjanssen avatar mandeep avatar benjaoming avatar gregmuellegger avatar jestaubach avatar kevgathuku avatar rgbkrk avatar manuphatak avatar jhonjairoroa87 avatar vijayantajain avatar requires avatar krallin avatar kiivihal avatar kragniz 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.