-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path__init__.py
More file actions
35 lines (27 loc) · 1.42 KB
/
__init__.py
File metadata and controls
35 lines (27 loc) · 1.42 KB
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
30
31
32
33
34
35
# Copyright (C) 2021-2024 Steven Clontz and Oscar Levin
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from pathlib import Path
from single_version import get_version
VERSION = get_version("pretext", Path(__file__).parent.parent)
CORE_COMMIT = "2c3fda724738cabba04c28378f91a64a72a0e7c2"
def activate() -> None:
"""
This function was provided by the original `pretext` package
deployed to PyPI by Alex Willmer. Thanks to their generosity,
we were allowed to adopt this namespace as of 1.0, so we raise an error here
to help anyone who might have upgraded from the original package.
"""
raise RuntimeError(
"As of version 1.0, the `pretext` PyPI package has been "
+ "transferred to PreTeXtBook.org. Install a <1.0 version to use the "
+ "pretext.activate() feature from the original `pretext` package."
)