File: setup.py

package info (click to toggle)
pytest-flask 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 280 kB
  • sloc: python: 553; makefile: 161; sh: 5
file content (28 lines) | stat: -rwxr-xr-x 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python
import os

from setuptools import setup


def read(*parts):
    """Reads the content of the file located at path created from *parts*."""
    try:
        return open(os.path.join(*parts), "r", encoding="utf-8").read()
    except OSError:
        return ""


tests_require = []
requirements = read("requirements", "main.txt").splitlines()
extras_require = {
    "docs": read("requirements", "docs.txt").splitlines(),
    "tests": tests_require,
}

setup(
    # Dependencies are here for GitHub's dependency graph.
    use_scm_version={"write_to": "src/pytest_flask/_version.py"},
    install_requires=requirements,
    tests_require=tests_require,
    extras_require=extras_require,
)