Skip to main content

Python project generator.

Project description

monty

In what follows python is an alias for python3.6 or pypy3.6 or any later version (python3.7, pypy3.7 and so on).

Installation

Install the latest pip & setuptools packages versions

python -m pip install --upgrade pip setuptools

User

Download and install the latest stable version from PyPI repository

python -m pip install --upgrade monty

Developer

Download the latest version from GitHub repository

git clone https://github.com/lycantropos/monty.git
cd monty

Install dependencies

python -m pip install -r requirements.txt

Install

python setup.py install

Usage

After updating setting.yml with related information

monty -o output lycantropos/monty-cpython-pypy-template

All available options can be obtained with

monty --help

Development

Bumping version

Preparation

Install bump2version.

Pre-release

Choose which version number category to bump following semver specification.

Test bumping version

bump2version --dry-run --verbose $CATEGORY

where $CATEGORY is the target version number category name, possible values are patch/minor/major.

Bump version

bump2version --verbose $CATEGORY

This will set version to major.minor.patch-alpha.

Release

Test bumping version

bump2version --dry-run --verbose release

Bump version

bump2version --verbose release

This will set version to major.minor.patch.

Running tests

Install dependencies

python -m pip install -r requirements-tests.txt

Plain

pytest

Inside Docker container:

  • with CPython
    docker-compose --file docker-compose.cpython.yml up
    
  • with PyPy
    docker-compose --file docker-compose.pypy.yml up
    

Bash script:

  • with CPython

    ./run-tests.sh
    

    or

    ./run-tests.sh cpython
    
  • with PyPy

    ./run-tests.sh pypy
    

PowerShell script:

  • with CPython
    .\run-tests.ps1
    
    or
    .\run-tests.ps1 cpython
    
  • with PyPy
    .\run-tests.ps1 pypy
    

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

montemplate-3.0.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

montemplate-3.0.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file montemplate-3.0.0.tar.gz.

File metadata

  • Download URL: montemplate-3.0.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for montemplate-3.0.0.tar.gz
Algorithm Hash digest
SHA256 a0342c58075c8d51cc02fe3dde73adeb181813f8b882bcc4680cd31bb9483177
MD5 cac3c34e3b570e1112fa4f9447ea64d2
BLAKE2b-256 9b9abd6c8d2b200574c0cb7a1e6add6370c865adc309ca4990567e1deefc9541

See more details on using hashes here.

File details

Details for the file montemplate-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: montemplate-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for montemplate-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c71d5443073d4300b249f2ab83063493179d4ddef42f13acf632e61f8e9dffa6
MD5 af5e6bcb629c3052b3f8dbff5c7fb6d8
BLAKE2b-256 498e163701816c5d7376dd865df5a637c8477b70f0f67e6eb2af636c48e9e52c

See more details on using hashes here.

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