Giter VIP home page Giter VIP logo

pythonmodule's Introduction

Python Module Template

Description

This is a template for a Python module. It is intended to be used as a starting point for creating a new module.

Template Initialisation

The script init_template.py can be used to initialise the template. It will accept for the name of the module and then rename the template files to match the module name. The list of files and lines to be changed:

  • Replace module name in setup.cfg
  • Replace description in setup.py
  • Replace entire content name in README.md
  • Replace copyright in LICENSE
  • Git move src/python_module to src/new_module_name
  • Git move test/python_module_test.py to test/new_module_name_test.py
  • In renamed file test/new_module_name_test.py rename class PythonModuleTest(unittest.TestCase)

Example usage:

python init_template.py new_module_name --module-description "New module description" --author-name "Author Name" --author-email "[email protected]"

Release Package

The script release_package.py can be used to create the release pipeline of any complexity for the module. It includes the following steps:

  • Build, install, reinstall, uninstall and install in developer mode
  • Upload release to PyPI
  • Upload release to AWS S3
  • Create git tag for release
  • Publish release on GitHub
  • Create Release Notes
  • Increment version number in setup.cfg

Example usage:

python release_package.py --mode install --upload-s3 --publish-pypi --create-release --increment-version

pythonmodule's People

Contributors

yuchdev avatar

Watchers

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