Skip to main content

Python project template.

Project description

memoir

In what follows

  • python is an alias for python3.5 or any later version (python3.6 and so on),
  • pypy is an alias for pypy3.5 or any later version (pypy3.6 and so on).

Installation

Install the latest pip & setuptools packages versions:

  • with CPython
    python -m pip install --upgrade pip setuptools
    
  • with PyPy
    pypy -m pip install --upgrade pip setuptools
    

User

Download and install the latest stable version from PyPI repository:

  • with CPython
    python -m pip install --upgrade memoir
    
  • with PyPy
    pypy -m pip install --upgrade memoir
    

Developer

Download the latest version from GitHub repository

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

Install:

  • with CPython
    python setup.py install
    
  • with PyPy
    pypy setup.py install
    

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 --tag release

Bump version

bump2version --verbose --tag release

This will set version to major.minor.patch and add Git tag.

Notes

To avoid inconsistency between branches and pull requests, bumping version should be merged into master branch as separate pull request.

Running tests

Plain:

  • with CPython
    python setup.py test
    
  • with PyPy
    pypy setup.py test
    

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 (e.g. can be used in Git hooks):

  • with CPython

    ./run-tests.sh
    

    or

    ./run-tests.sh cpython
    
  • with PyPy

    ./run-tests.sh pypy
    

PowerShell script (e.g. can be used in Git hooks):

  • 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

memoir-0.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

memoir-0.0.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file memoir-0.0.0.tar.gz.

File metadata

  • Download URL: memoir-0.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.4

File hashes

Hashes for memoir-0.0.0.tar.gz
Algorithm Hash digest
SHA256 2691975c7b3779d6faf1185f3de30ff3f2f83efb08a9bd89e5b600aa0e79fdd4
MD5 833147a94465b6d10699b9ab884570c6
BLAKE2b-256 537c794eab5e658096605122ec9c7f13b0829d737ee1837b5749a4c2fa3b2670

See more details on using hashes here.

File details

Details for the file memoir-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: memoir-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.4

File hashes

Hashes for memoir-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae2b9650f5754ff24e732a8aab463e7f59958d81f855065043aeb21226c7657
MD5 f898d1d9e5c97cbc2242dc6e5dfe76cd
BLAKE2b-256 2e56bf96b767e070491d9e9098931da08283185213070ad29fd33d8801bbd4db

See more details on using hashes here.

Supported by

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