Skip to main content

A dummy package for quickly starting typical Python projects.

Project description

blank-project

Build Status PyPI - Python Version PyPI Version Code Coverage Maintainability

A dummy package for quickly starting typical Python projects.

Features:

  • Basic .gitignore;
  • GitHub actions for builds and checks;
  • Acceptable directory structure at once;
  • Regular automation based on a Makefile;
  • Templates for basic Python badges into README.md.
  • Single point of project specification - pyproject.toml;
  • Acceptable settings for: black, isort, flake8, mypy, pydocstyle and coverage;

Usage

  1. Clone repo:
$ git clone https://github.com/p3t3rbr0/py3-blank-project.git
  1. Rename project directory name on your choice:
$ mv py3-blank-project <py3-project-name>
  1. Run init.sh with your project name:
$ cd <py3-project-name>
$ NAME=<project-name> ./init.sh
  1. Remove init.sh
$ rm -f init.sh
  1. Change authors, description, keywords and classifiers into pyproject.toml.

  2. Change README.md, CHANGELOG.md and LICENSE files.

  3. Change "dunders" (author, version and license) in <package>.__init__.py.

A new blank Python project is ready, create gh-repo and go forward!

Available make commands

Dependencies

  • make deps-dev - Install only development dependencies.
  • make deps-build - Install only build system dependencies.
  • make deps - Install all dependencies.

Distributing

  • make build-sdist - Build a source distrib.
  • make build-wheel - Build a pure Python wheel distrib.
  • make build - Build both distribs (source and wheel).
  • make upload - Upload built packages to PyPI.

Development

  • make cleanup - Clean up Python temporary files and caches.
  • make format - Fromat the code (by black and isort).
  • make lint - Check code style, docstring style and types (by flake8, pydocstyle and mypy).
  • make tests - Run tests with coverage measure (output to terminal).
  • make tests-cov-json - Run tests with coverage measure (output to json [coverage.json]).
  • make tests-cov-html - Run tests with coverage measure (output to html [coverage_report/]).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blank_project-0.2.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

blank_project-0.2.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page