Skip to main content

Python port of polygon clipping algorithm by F. Martinez et al.

Project description

martinez

In what follows

  • python is an alias for python3.5 or any later version (python3.6 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 martinez

Developer

Download the latest version from GitHub repository

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

Install dependencies:

python -m pip install --force-reinstall -r requirements.txt

Install:

python 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.

Running tests

Install dependencies:

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

Plain

pytest

Inside Docker container:

docker-compose up

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

./run-tests.sh

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

.\run-tests.ps1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for martinez, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size martinez-0.0.4-cp35-cp35m-macosx_10_6_intel.whl (324.7 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp35-cp35m-manylinux2010_i686.whl (1.5 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp35-cp35m-manylinux2010_x86_64.whl (2.1 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp35-cp35m-win32.whl (85.5 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp35-cp35m-win_amd64.whl (103.6 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp36-cp36m-macosx_10_6_intel.whl (324.7 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp36-cp36m-manylinux2010_i686.whl (1.5 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp36-cp36m-manylinux2010_x86_64.whl (2.1 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp36-cp36m-win32.whl (86.6 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp36-cp36m-win_amd64.whl (102.1 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp37-cp37m-macosx_10_6_intel.whl (324.7 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp37-cp37m-manylinux2010_i686.whl (1.5 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp37-cp37m-manylinux2010_x86_64.whl (2.1 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp37-cp37m-win32.whl (86.6 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp37-cp37m-win_amd64.whl (102.1 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp38-cp38-macosx_10_9_x86_64.whl (169.3 kB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp38-cp38-manylinux2010_i686.whl (1.5 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp38-cp38-manylinux2010_x86_64.whl (2.0 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp38-cp38-win32.whl (85.0 kB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size martinez-0.0.4-cp38-cp38-win_amd64.whl (100.9 kB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size martinez-0.0.4.tar.gz (15.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page