From a69898f83b681f611b1d612060b506a91febcea6 Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Mon, 18 Oct 2021 18:41:40 -0700 Subject: [PATCH 1/5] add some badges --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4179e9a..84c7991 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +[![Donate](https://img.shields.io/badge/Donate-paypal-brightgreen)](https://www.paypal.com/donate?business=4SKJ27AM4EYYA&no_recurring=0&item_name=Support+the+creator+of+svgpathtools?++He%27s+a+student+and+would+appreciate+it.&currency_code=USD) +![Python](https://img.shields.io/pypi/pyversions/svgpathtools.svg) +[![PyPI](https://img.shields.io/pypi/v/svgpathtools)](https://pypi.org/project/svgpathtools/) +![Build](https://github.com/mathandy/svgpathtools/actions/workflows/github-ci.yml/badge.svg) +[![PyPI - Downloads](https://img.shields.io/pypi/dm/svgpathtools?color=yellow)](https://pypistats.org/packages/svgpathtools) # svgpathtools [![donate-button.svg](donate-button.svg)](https://www.paypal.com/donate?business=4SKJ27AM4EYYA&no_recurring=0&item_name=Support+the+creator+of+svgpathtools?++He%27s+a+student+and+would+appreciate+it.&currency_code=USD) From 05a2d271b77ce115ebcced8db45280df8fe51f22 Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Mon, 18 Oct 2021 18:42:37 -0700 Subject: [PATCH 2/5] remove old donate button --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 84c7991..25fd786 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![PyPI](https://img.shields.io/pypi/v/svgpathtools)](https://pypi.org/project/svgpathtools/) ![Build](https://github.com/mathandy/svgpathtools/actions/workflows/github-ci.yml/badge.svg) [![PyPI - Downloads](https://img.shields.io/pypi/dm/svgpathtools?color=yellow)](https://pypistats.org/packages/svgpathtools) -# svgpathtools [![donate-button.svg](donate-button.svg)](https://www.paypal.com/donate?business=4SKJ27AM4EYYA&no_recurring=0&item_name=Support+the+creator+of+svgpathtools?++He%27s+a+student+and+would+appreciate+it.&currency_code=USD) +# svgpathtools svgpathtools is a collection of tools for manipulating and analyzing SVG Path objects and Bézier curves. From b8579b2c12bb3514302ede2c022e44dec89ccbfa Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Mon, 18 Oct 2021 18:50:12 -0700 Subject: [PATCH 3/5] Make donate badge test lowercase --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25fd786..40219c4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Donate](https://img.shields.io/badge/Donate-paypal-brightgreen)](https://www.paypal.com/donate?business=4SKJ27AM4EYYA&no_recurring=0&item_name=Support+the+creator+of+svgpathtools?++He%27s+a+student+and+would+appreciate+it.&currency_code=USD) +[![Donate](https://img.shields.io/badge/donate-paypal-brightgreen)](https://www.paypal.com/donate?business=4SKJ27AM4EYYA&no_recurring=0&item_name=Support+the+creator+of+svgpathtools?++He%27s+a+student+and+would+appreciate+it.&currency_code=USD) ![Python](https://img.shields.io/pypi/pyversions/svgpathtools.svg) [![PyPI](https://img.shields.io/pypi/v/svgpathtools)](https://pypi.org/project/svgpathtools/) ![Build](https://github.com/mathandy/svgpathtools/actions/workflows/github-ci.yml/badge.svg) From d998587a32859e05660d8018f18a1edf8e6d93cd Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Mon, 18 Oct 2021 19:00:49 -0700 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40219c4..18e12d9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Donate](https://img.shields.io/badge/donate-paypal-brightgreen)](https://www.paypal.com/donate?business=4SKJ27AM4EYYA&no_recurring=0&item_name=Support+the+creator+of+svgpathtools?++He%27s+a+student+and+would+appreciate+it.&currency_code=USD) ![Python](https://img.shields.io/pypi/pyversions/svgpathtools.svg) [![PyPI](https://img.shields.io/pypi/v/svgpathtools)](https://pypi.org/project/svgpathtools/) -![Build](https://github.com/mathandy/svgpathtools/actions/workflows/github-ci.yml/badge.svg) +![Build](https://img.shields.io/github/workflow/status/mathandy/svgpathtools/Github%20CI%20Unit%20Testing) [![PyPI - Downloads](https://img.shields.io/pypi/dm/svgpathtools?color=yellow)](https://pypistats.org/packages/svgpathtools) # svgpathtools From 5a3bb8fca8c1b7931081713514b13d08cf54d3a1 Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Mon, 18 Oct 2021 22:20:24 -0700 Subject: [PATCH 5/5] update official python version support --- .github/workflows/github-ci.yml | 4 ++-- setup.py | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index a5943dc..70555c8 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -2,17 +2,17 @@ name: Github CI Unit Testing on: push: - branches: [ master ] pull_request: workflow_dispatch: jobs: build: runs-on: ${{ matrix.os }} + continue-on-error: true strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [2.7, 3.6, 3.7, 3.8, 3.9] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index ebec0fc..05463ec 100644 --- a/setup.py +++ b/setup.py @@ -8,14 +8,12 @@ AUTHOR_NAME = 'Andy Port' AUTHOR_EMAIL = 'AndyAPort@gmail.com' GITHUB = 'https://github.com/mathandy/svgpathtools' +_here = os.path.abspath(os.path.dirname(__file__)) -def read(*parts): - """ - Build an absolute path from *parts* and and return the contents of the - resulting file. Assume UTF-8 encoding. - """ - HERE = os.path.abspath(os.path.dirname(__file__)) - with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f: + +def read(relative_path): + """Reads file at relative path, returning contents as string.""" + with codecs.open(os.path.join(_here, relative_path), "rb", "utf-8") as f: return f.read() @@ -43,6 +41,12 @@ setup(name='svgpathtools', "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Topic :: Multimedia :: Graphics :: Editors :: Vector-Based", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Image Recognition",