Skip to content

Add pyproject.toml #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include requirements.txt
include tox.ini
include setup.py
include MANIFEST.in
include LICENSE.txt README.rst CONTRIBUTORS.rst CHANGELOG.rst
include demos/*
Expand Down
22 changes: 1 addition & 21 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ CSS stylesheets.
Installation
------------

There are three ways to install ``svglib``.
Here are two ways to install ``svglib``.

1. Using ``pip``
++++++++++++++++
Expand Down Expand Up @@ -198,24 +198,6 @@ using these simple commands::
`svglib with conda`_.


3. Manual installation
+++++++++++++++++++++++

Alternatively, you can install a tarball like ``svglib-<version>.tar.gz``
after downloading it from the `svglib page on PyPI`_ or the
`svglib releases page on GitHub`_ and executing a sequence of commands
like shown here::

$ tar xfz svglib-<version>.tar.gz
$ cd svglib-<version>
$ python setup.py install

This will install a Python package named ``svglib`` in the
``site-packages`` subfolder of your Python installation and a script
tool named ``svg2pdf`` in your ``bin`` directory, e.g. in
``/usr/local/bin``.


Testing
-------

Expand Down Expand Up @@ -259,8 +241,6 @@ well as the versions of ``svglib``, ReportLab and Python being used!
.. _RML: https://www.reportlab.com/software/rml-reference/
.. _svglib issue tracker: https://github.com/deeplook/svglib/issues
.. _PyTest: http://pytest.org
.. _svglib page on PyPI: https://pypi.org/project/svglib/
.. _svglib releases page on GitHub: https://github.com/deeplook/svglib/releases
.. _Python file object: https://docs.python.org/3/glossary.html#term-file-object
.. _Anaconda: https://www.anaconda.com/download/
.. _Miniconda: https://conda.io/miniconda.html
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
13 changes: 0 additions & 13 deletions setup.py

This file was deleted.

25 changes: 0 additions & 25 deletions tests/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,6 @@ which is a simple ``pip install pytest``)::

=============== 32 passed, 4 skipped in 49.18 seconds ================

If for any reason you don't want to install ``pytest`` you can also
run the following (which installs ``pytest-runner`` during testing)::

$ PYTHONPATH=. python setup.py test
running pytest
running egg_info
writing dependency_links to svglib.egg-info/dependency_links.txt
writing svglib.egg-info/PKG-INFO
writing requirements to svglib.egg-info/requires.txt
writing top-level names to svglib.egg-info/top_level.txt
reading manifest file 'svglib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'svglib.egg-info/SOURCES.txt'
running build_ext
======================== test session starts =========================
platform darwin -- Python 3…, pytest-3…, py-1…, pluggy-0…
rootdir: /Users/dinu/repos/github/deeplook/svglib, inifile:
plugins: cov-2…
collected 33 items

tests/test_basic.py .........................
tests/test_samples.py .s.s.s.s

=============== 29 passed, 4 skipped in 38.95 seconds ================

If you have ``tox`` installed (``pip install tox``) you can simply
run the testsuite on Python 3.8 (assuming you have it installed) or on a
single version (this will not run with ``conda``, yet, though)::
Expand Down