From 5b9ee305444dd5a87a1ecc0580c1f2f2df92ca3c Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Tue, 9 Nov 2021 18:30:30 -0800 Subject: [PATCH] now scipy is installed by default --- README.ipynb | 19 +++++++------------ README.md | 12 +----------- setup.py | 6 +++--- 3 files changed, 11 insertions(+), 26 deletions(-) diff --git a/README.ipynb b/README.ipynb index adc04b1..9326c84 100644 --- a/README.ipynb +++ b/README.ipynb @@ -4,6 +4,11 @@ "cell_type": "markdown", "metadata": {}, "source": [ + "[![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)\n", + "![Python](https://img.shields.io/pypi/pyversions/svgpathtools.svg)\n", + "[![PyPI](https://img.shields.io/pypi/v/svgpathtools)](https://pypi.org/project/svgpathtools/)\n", + "![Build](https://img.shields.io/github/workflow/status/mathandy/svgpathtools/Github%20CI%20Unit%20Testing)\n", + "[![PyPI - Downloads](https://img.shields.io/pypi/dm/svgpathtools?color=yellow)](https://pypistats.org/packages/svgpathtools)\n", "# svgpathtools\n", "\n", "svgpathtools is a collection of tools for manipulating and analyzing SVG Path objects and Bézier curves.\n", @@ -36,25 +41,15 @@ "## Prerequisites\n", "- **numpy**\n", "- **svgwrite**\n", + "- **scipy** (optional but recommended for performance)\n", "\n", "## Setup\n", "\n", - "If not already installed, you can **install the prerequisites** using pip.\n", - "\n", - "```bash\n", - "$ pip install numpy\n", - "```\n", - "\n", - "```bash\n", - "$ pip install svgwrite\n", - "```\n", - "\n", - "Then **install svgpathtools**:\n", "```bash\n", "$ pip install svgpathtools\n", "``` \n", " \n", - "### Alternative Setup \n", + "### Alternative Setup\n", "You can download the source from Github and install by using the command (from inside the folder containing setup.py):\n", "\n", "```bash\n", diff --git a/README.md b/README.md index 18e12d9..f8f2444 100644 --- a/README.md +++ b/README.md @@ -36,20 +36,10 @@ Some included tools: ## Prerequisites - **numpy** - **svgwrite** +- **scipy** (optional, but recommended for performance) ## Setup -If not already installed, you can **install the prerequisites** using pip. - -```bash -$ pip install numpy -``` - -```bash -$ pip install svgwrite -``` - -Then **install svgpathtools**: ```bash $ pip install svgpathtools ``` diff --git a/setup.py b/setup.py index 05463ec..1c86ae8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import codecs import os -VERSION = '1.4.2' +VERSION = '1.4.3' AUTHOR_NAME = 'Andy Port' AUTHOR_EMAIL = 'AndyAPort@gmail.com' GITHUB = 'https://github.com/mathandy/svgpathtools' @@ -30,9 +30,9 @@ setup(name='svgpathtools', download_url='{}/releases/download/{}/svgpathtools-{}-py2.py3-none-any.whl' ''.format(GITHUB, VERSION, VERSION), license='MIT', - install_requires=['numpy', 'svgwrite'], + install_requires=['numpy', 'svgwrite', 'scipy'], platforms="OS Independent", - requires=['numpy', 'svgwrite'], + requires=['numpy', 'svgwrite', 'scipy'], keywords=['svg', 'svg path', 'svg.path', 'bezier', 'parse svg path', 'display svg'], classifiers=[ "Development Status :: 4 - Beta",