Skip to content

Commit

Permalink
vendor docopt-ng
Browse files Browse the repository at this point in the history
jazzband/docopt-ng@fab01f5

Docopt-ng is not backwards-compatible with Docopt. The change that
affects peru is that the `help` kwarg has been renamed to
`default_help`, but there are other changes that will affect other
projects. If we install docopt-ng as a dependency on e.g. Arch, it's
likely to break other projects that `import docopt` expecting the old
API. It seems like the best way to avoid trouble here is to vendor it.
  • Loading branch information
oconnor663 committed Dec 4, 2024
1 parent 90e6a52 commit aa38ede
Show file tree
Hide file tree
Showing 7 changed files with 956 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packaging/arch/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pkgrel=1
arch=('any')
# Asyncio and pathlib are standard in Python 3.4, so they're not in the
# dependencies list.
depends=(python python-yaml python-docopt git)
depends=(python python-yaml git)
makedepends=(python-setuptools)
optdepends=(
'mercurial: fetching from hg repos'
Expand Down
23 changes: 23 additions & 0 deletions peru/docopt/LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2012 Vladimir Keleshev, <[email protected]>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit aa38ede

Please sign in to comment.