##// END OF EJS Templates
configitems: declare items in a TOML file...
configitems: declare items in a TOML file Mercurial ships with Rust code that also needs to read from the config. Having a way of presenting `configitems` to both Python and Rust is needed to prevent duplication, drift, and have the appropriate devel warnings. Abstracting away from Python means choosing a config format. No single format is perfect, and I have yet to come across a developer that doesn't hate all of them in some way. Since we have a strict no-dependencies policy for Mercurial, we either need to use whatever comes with Python, vendor a library, or implement a custom format ourselves. Python stdlib means using JSON, which doesn't support comments and isn't great for humans, or `configparser` which is an obscure, untyped format that nobody uses and doesn't have a commonplace Rust parser. Implementing a custom format is error-prone, tedious and subject to the same issues as picking an existing format. Vendoring opens us to the vast array of common config formats. The ones being picked for most modern software are YAML and TOML. YAML is older and common in the Python community, but TOML is much simpler and less error-prone. I would much rather be responsible for the <1000 lines of `tomli`, on top of TOML being the choice of the Rust community, with robust crates for reading it. The structure of `configitems.toml` is explained inline.

File last commit:

r50501:4092db99 stable
r51655:c51b178b default
Show More
requirements-windows.txt.in
23 lines | 507 B | text/plain | TextLexer
/ contrib / packaging / requirements-windows.txt.in
Jason R. Coombs
packaging: refresh dependency hashes (issue6750)...
r50501 # Declare Windows-specific requirements for generating
# the compiled (frozen) set of requirements in
# ./requirements-windows-py3.txt.
# If run on Windows, it may be necessary to run dos2unix
# on the output file to replace any CRLF newlines with LF.
Gregory Szorc
contrib: split Windows requirements into multiple files...
r46344 docutils
Gregory Szorc
packaging: remove requirements constraints to support Python 2...
r49704 dulwich
pyoxidized: install fuzzywuzzy too...
r48654
# Needed by the release note tooling
fuzzywuzzy
Gregory Szorc
contrib: split Windows requirements into multiple files...
r46344 keyring
Gregory Szorc
packaging: remove requirements constraints to support Python 2...
r49704 pygit2
Gregory Szorc
contrib: split Windows requirements into multiple files...
r46344 pygments
windows: add pytest-vcr to the dependencies...
r48657
# Needed by the phabricator tests
pytest-vcr
Gregory Szorc
contrib: split Windows requirements into multiple files...
r46344 # Need to list explicitly so dependency gets pulled in when
# not running on Windows.
pywin32-ctypes
Matt Harbison
packaging: include `windows-curses` on Windows...
r47036 windows-curses