Skip to main content

dan

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 dan
    
  • with PyPy
    pypy -m pip install --upgrade dan
    

Developer

Download the latest version from GitHub repository

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

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 release

Bump version

bump2version --verbose release

This will set version to major.minor.patch.

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
    

Metadata

Release files for dan 0.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 dan 0.0.0
File Size Uploaded
dan-0.0.0.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / dan-0.0.0.tar.gz

Download URL dan-0.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
03718bf833cccd065bbd84513097797196f6796831d2e43b18cb0a1a8dc2b03e
BLAKE2b-256 checksum
How to use checksums
cd2fe0f74c44643777930316a3bc373e498fb22925e2d2e5b15a5f8f164856d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.4

Release files / dan-0.0.0-py3-none-any.whl

Download URL dan-0.0.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce40293292621e1213497d59ad2d4ee8f384399d99b5eccc26e92e28cb18f40c
BLAKE2b-256 checksum
How to use checksums
bb878cbfda106e01c110efa0ca7f2ed4b1b43f1b2933c98d7a538aaeeb750ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.4

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files

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