forked from pytest-dev/pytest-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·29 lines (23 loc) · 740 Bytes
/
setup.py
File metadata and controls
executable file
·29 lines (23 loc) · 740 Bytes
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
29
#!/usr/bin/env python
import os
from setuptools import find_packages
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": "pytest_flask/_version.py"},
install_requires=requirements,
tests_require=tests_require,
extras_require=extras_require,
)