Skip to content

Commit 19fb984

Browse files
committed
add fake setup.py
1 parent 196beff commit 19fb984

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

setup.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
"""Fake timvt setup.py for github."""
2+
import sys
3+
4+
from setuptools import setup
5+
6+
sys.stderr.write(
7+
"""
8+
===============================
9+
Unsupported installation method
10+
===============================
11+
timvt no longer supports installation with `python setup.py install`.
12+
Please use `python -m pip install .` instead.
13+
"""
14+
)
15+
sys.exit(1)
16+
17+
18+
# The below code will never execute, however GitHub is particularly
19+
# picky about where it finds Python packaging metadata.
20+
# See: https://github.com/github/feedback/discussions/6456
21+
#
22+
# To be removed once GitHub catches up.
23+
24+
setup(
25+
name="timvt",
26+
install_requires=[
27+
"orjson",
28+
"asyncpg>=0.23.0",
29+
"buildpg>=0.3",
30+
"fastapi>=0.87",
31+
"jinja2>=2.11.2,<4.0.0",
32+
"morecantile>=3.1,<4.0",
33+
"starlette-cramjam>=0.3,<0.4",
34+
"importlib_resources>=1.1.0; python_version < '3.9'",
35+
"typing_extensions; python_version < '3.9.2'",
36+
],
37+
)

0 commit comments

Comments
 (0)