File: setup.py

package info (click to toggle)
python-svglib 1.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 328 kB
  • sloc: python: 2,717; sh: 6; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import sys
from setuptools import setup

with open('requirements.txt', 'r') as f:
    install_requires = f.read().strip().split()

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []

setup(
    install_requires=install_requires,
    setup_requires=[] + pytest_runner
)