diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a4dbb9d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,45 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "svgutils" +version = "0.3.4" +authors = [{name = "Bartosz Telenczuk", email = "bartosz.telenczuk@gmail.com"}] +description = "Python SVG editor" +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3", + "Topic :: Multimedia :: Graphics :: Editors :: Vector-Based", + "Topic :: Scientific/Engineering :: Visualization", + "Topic :: Text Processing :: Markup", +] +requires-python = ">=3.6" +dependencies = ["lxml"] + +[project.readme] +text = """ +This is an utility package that helps to edit and +concatenate SVG files. It is especially directed at scientists preparing +final figures for submission to journal. So far it supports arbitrary +placement and scaling of svg figures and +adding markers, such as labels.""" +content-type = "text/plain" + +[project.urls] +Homepage = "https://svgutils.readthedocs.io" +"Source Code" = "https://github.com/btel/svg_utils/" + +[tool.setuptools] +package-dir = {"" = "src"} +packages = ["svgutils"] +include-package-data = false diff --git a/setup.py b/setup.py deleted file mode 100644 index d2c2f5a..0000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python3 -# coding=utf-8 - -from setuptools import setup - -version_str = "0.3.4" - -setup( - name="svgutils", - version=version_str, - description="Python SVG editor", - long_description="""This is an utility package that helps to edit and - concatenate SVG files. It is especially directed at scientists preparing - final figures for submission to journal. So far it supports arbitrary - placement and scaling of svg figures and - adding markers, such as labels.""", - author="Bartosz Telenczuk", - author_email="bartosz.telenczuk@gmail.com", - url="https://svgutils.readthedocs.io", - packages=["svgutils"], - classifiers=[ - "Development Status :: 4 - Beta", - "Environment :: Console", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3", - "Topic :: Multimedia :: Graphics :: Editors :: Vector-Based", - "Topic :: Scientific/Engineering :: Visualization", - "Topic :: Text Processing :: Markup", - ], - package_dir={"": "src"}, - python_requires=">=3.6", - install_requires=["lxml"], - download_url="https://github.com/btel/svg_utils/archive/v{}.tar.gz".format( - version_str - ), -)