Skip to main content

`rsrc` plugin for working with local/local network resources.

Project description

rsrc_local

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

Developer

Download the latest version from GitHub repository

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

Install dependencies:

  • with CPython
    python -m pip install -r requirements.txt
    
  • with PyPy
    pypy -m pip install -r requirements.txt
    

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

Install dependencies:

  • with CPython
    python -m pip install -r requirements-tests.txt
    
  • with PyPy
    pypy -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 (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

rsrc_local-0.0.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

rsrc_local-0.0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file rsrc_local-0.0.3.tar.gz.

File metadata

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

File hashes

Hashes for rsrc_local-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7e059c0d0f4dcd50c0fe73d5dee4824351c41952b9d14168e5c5f53c482b14a2
MD5 0af8cf479d3e43ca08718db17feaa515
BLAKE2b-256 843af4698b67291f1ae387f7cdf41af2b6033e613a16777ebb0836d7aaf3a3ba

See more details on using hashes here.

File details

Details for the file rsrc_local-0.0.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for rsrc_local-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd298ca0365aa5262a5028a1f5d611ac35cbaea160b05f5f4b5125e16091d7d
MD5 4889933f3a46298f17fb4f407432f59f
BLAKE2b-256 2d7b4a7340b4fdfc6c1b74e29a3f25299be241790eba9fb61f966a7fd8e5f70f

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