Skip to content

Commit 6fe42d9

Browse files
committed
[doc] Add important note to readme that the latest version only supports 2023-07-draft
1 parent c5adbcf commit 6fe42d9

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

doc/commands.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ This lists all subcommands and their most important options.
4343
- [`bt solve_stats [--contest-id CONTESTID] [--post-freeze]`](#solve_stats)
4444
- [`bt sort`](#sort)
4545
- [`bt update_problems_yaml [--colors COLORS] [--sort]`](#update_problems_yaml)
46+
- [`bt upgrade`](#upgrade)
4647
- [`bt tmp [--clean]`](#tmp)
4748
- `bt create_slack_channels --token xoxb-...`
4849

@@ -634,6 +635,11 @@ This file should contain a list of problems, with for every problem the keys `id
634635
Should be a comma-separated list of colors (hash-sign is optional), e.g.: `--colors ff0000,00ff00,0000ff`.
635636
- `--sort`: Sort the problems in `problems.yaml` and re-label them starting from `A` (or `X` if `contest.yaml` contains `test_session: True`).
636637

638+
## `upgrade`
639+
640+
`bt upgrade` upgrades a problem from problem format version [`legacy`](https://icpc.io/problem-package-format/spec/legacy.html)
641+
to [`2023-07-draft`](https://icpc.io/problem-package-format/spec/2023-07-draft.html).
642+
637643
## `tmp`
638644

639645
`bt tmp` prints the temporary directory that's used for all compilation output, run results, etc for the current problem or contest:

readme.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ time since I'm not aware of usage outside of BAPC yet.
1313

1414
## Installation
1515

16-
You can install the [bapctools-git AUR
17-
package](https://aur.archlinux.org/packages/bapctools-git/), mirrored
18-
[here](https://github.com/RagnarGrootKoerkamp/bapctools-git), or use the [Docker
19-
image](#Docker).
16+
> [!IMPORTANT]
17+
> The latest version of BAPCtools is only compatible with problem format version
18+
> [`2023-07-draft`](https://icpc.io/problem-package-format/spec/2023-07-draft.html).
19+
> The [`bt upgrade` command](https://github.com/RagnarGrootKoerkamp/BAPCtools/blob/HEAD/doc/commands.md#upgrade)
20+
> is a best-effort automated way to upgrade `legacy` problems to `2023-07-draft`.
21+
> To use BAPCtools with `legacy` problems,
22+
> you can use the [`legacy` branch](https://github.com/RagnarGrootKoerkamp/BAPCtools/tree/legacy) of this repository,
23+
> which is no longer maintained.
24+
25+
You can install the [bapctools-git AUR package](https://aur.archlinux.org/packages/bapctools-git/),
26+
mirrored [here](https://github.com/RagnarGrootKoerkamp/bapctools-git),
27+
or use the [Docker image](#Docker).
2028

2129
Otherwise, clone this repository and install the required dependencies manually.
2230
(If you know how to make a Debian package, feel free to help out.)
@@ -35,7 +43,7 @@ Otherwise, clone this repository and install the required dependencies manually.
3543
Optional dependencies, required for some subcommands:
3644

3745
- The [ruamel.yaml library](https://pypi.org/project/ruamel.yaml/) via `pip install ruamel.yaml` or the `python-ruamel-yaml` Arch Linux package (`python3-ruamel.yaml` on Debian derivatives).
38-
- This is only needed for commands that update `generators.yaml`.
46+
- This is only needed for commands that update `generators.yaml` and `bt upgrade`.
3947
- The `latexmk` and `pdflatex` commands, provided by `texlive-bin` on Arch Linux and
4048
potentially some specific LaTeX packages (like tikz) provided by
4149
`texlive-extra`.
@@ -77,7 +85,7 @@ Resource limits (memory limit/hard cpu time limit) are not supported.
7785

7886
A docker image containing this git repo and dependencies, together with commonly
7987
used languages, is provided at
80-
[ragnargrootkoerkamp/bacptools](https://hub.docker.com/r/ragnargrootkoerkamp/bapctools).
88+
[ragnargrootkoerkamp/bapctools](https://hub.docker.com/r/ragnargrootkoerkamp/bapctools).
8189
This version may be somewhat outdated, but we intend to update it whenever dependencies change.
8290
Ping me if you'd like it to be updated.
8391
Alternatively, inside the Docker container, you can run `git -C /opt/BAPCtools pull` to update to the latest version of BAPCtools,

0 commit comments

Comments
 (0)