2022-09-18 18:44:18 +03:00
|
|
|
import sys
|
2022-09-11 17:05:55 +03:00
|
|
|
|
2022-09-18 18:44:18 +03:00
|
|
|
from setuptools import setup
|
2022-09-11 17:05:55 +03:00
|
|
|
|
2022-09-18 18:44:18 +03:00
|
|
|
sys.stderr.write(
|
|
|
|
"""
|
|
|
|
===============================
|
|
|
|
Unsupported installation method
|
|
|
|
===============================
|
|
|
|
This version of mkdocs-material no longer supports
|
|
|
|
installation with `python setup.py install`.
|
2022-09-11 17:05:55 +03:00
|
|
|
|
2022-09-18 18:44:18 +03:00
|
|
|
Please use `python -m pip install .` instead.
|
|
|
|
"""
|
|
|
|
)
|
|
|
|
sys.exit(1)
|
2022-09-11 17:05:55 +03:00
|
|
|
|
|
|
|
|
2022-09-18 18:44:18 +03:00
|
|
|
# The below code will never execute, however GitHub is particularly
|
|
|
|
# picky about where it finds Python packaging metadata.
|
|
|
|
# See: https://github.com/github/feedback/discussions/6456
|
2022-09-11 17:05:55 +03:00
|
|
|
|
|
|
|
with open("requirements.txt") as f:
|
|
|
|
install_requires = [
|
|
|
|
line for line in f.read().split("\n")
|
|
|
|
if line and not line.startswith("#")
|
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
2022-09-18 18:44:18 +03:00
|
|
|
name="mkdocs-material",
|
|
|
|
install_requires=install_requires,
|
2022-09-11 17:05:55 +03:00
|
|
|
)
|