Giter Site home page Giter Site logo

malachov / mypythontools_cicd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.72 MB

Module with functionality around Continuous Integration and Continuous Delivery.

License: MIT License

Python 97.04% Jupyter Notebook 0.58% Makefile 0.54% Batchfile 0.66% HTML 1.18%

mypythontools_cicd's Introduction

mypythontools_cicd

Module with functionality around Continuous Integration and Continuous Delivery.

Python versions PyPI version Downloads Language grade: Python Documentation Status License: MIT codecov

Why to use this and not Travis or Circle CI? It's local and it's fast. You can setup it as a task in IDE and if some phase fails, you know it soon and before pushing to repo.

You can also import mypythontools in your CI/CD and use it there of course.

If you are not sure whether the structure of your app will work with this code, check project-starter-cookiecutter on GitHub.

Links

Official documentation - readthedocs

Official repo - GitHub

Installation

Python >=3.6 (Python 2 is not supported).

Install with

pip install mypythontools_cicd

There are many extras requirements that can be used with square brackets like for example

pip install mypythontools_cicd[tests]

You can use dev which install libraries used during development like for example pylint. Most subpackages has own extras. 'build_app','deploy', 'docs', 'git', 'misc', 'tests', 'venvs' in particular.

There is also cicd which install all libraries necessary for cicd, but without dev dependencies. Last extras are all which use dev as well as cicd.

Subpackages

Package is divided into several subpackages

build_app

Build your application to .exe with pyinstaller. It also builds javascript frontend with npm build if configured, which is used mostly in PyVueEel applications.

cicd

Pipeline for all the other submodules, that provide configurable CI/CD.

deploy

Build package and push it to PyPi.

docs

Provide documentation with sphinx.

git

Works with git. You can check branch here, commit all changes or push to repository.

misc

Miscellaneous functions that are too small to have own subpackage, like for example formatting with black.

packages

For example, you can work with requirements here. Usually used in 'setup.py'.

project_paths

Subpackage where you can get paths used in your project (path to README, __init__.py etc.).

tests

Runs tests in more venvs with different python versions, also with wsl linux if configured and create coverage.

venvs

Works with virtual environments.

Mypythontools

There is extra library in separate repository which is not about CICD, but normal python helpers.

https://github.com/Malachov/mypythontools

This can help you with a lot of stuff around CICD like getting project paths, generating docs, testing, deploying to PyPi etc.

mypythontools_cicd's People

Contributors

malachov 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.