Skip to main content

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
    

Metadata

Release files for montemplate 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for montemplate 3.0.0
File Size Uploaded
montemplate-3.0.0.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for montemplate 3.0.0
File Interpreter ABI Platform
montemplate-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / montemplate-3.0.0.tar.gz

Download URL montemplate-3.0.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a0342c58075c8d51cc02fe3dde73adeb181813f8b882bcc4680cd31bb9483177
BLAKE2b-256 checksum
How to use checksums
9b9abd6c8d2b200574c0cb7a1e6add6370c865adc309ca4990567e1deefc9541
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / montemplate-3.0.0-py3-none-any.whl

Download URL montemplate-3.0.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c71d5443073d4300b249f2ab83063493179d4ddef42f13acf632e61f8e9dffa6
BLAKE2b-256 checksum
How to use checksums
498e163701816c5d7376dd865df5a637c8477b70f0f67e6eb2af636c48e9e52c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page