Skip to content

Commit 5b0b493

Browse files
committed
Artefacts fork of Click
* No feature added at all * Deeper localisation, pending tentative addition to the main line. pallets#2890
1 parent 74d7795 commit 5b0b493

File tree

3 files changed

+49
-2
lines changed

3 files changed

+49
-2
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Artefacts Click
2+
3+
This is a simple fork of the [click package](https://github.com/pallets/click) that supports deeper localisation. Artefacts tools are using this fork while its features get tentatively added to the click main line (through [this PR](https://github.com/pallets/click/pull/2890)).
4+
5+
This fork is completely submitted to the click original project. All changes here are for localisation---no feature change. Please note this fork resets versioning to avoid confusion.
6+
7+
The present version 0.1.0 is based off `click==8.2.0` and will be kept in sync. Please get in touch through issues if we're getting late at syncing!
8+
9+
110
# $ click_
211

312
Click is a Python package for creating beautiful command line interfaces

bin/release

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
pip install build twine > /dev/null
6+
7+
version=$1
8+
production=${2:-test}
9+
10+
if [[ -n "$version" ]]
11+
then
12+
echo "Preparing publication of version $version to $production PyPi"
13+
else
14+
echo "Usage: release <version> [test|production]" >&2
15+
exit 1
16+
fi
17+
18+
if [[ -d venv ]]
19+
then
20+
source venv/bin/activate
21+
fi
22+
23+
git restore src/click/__init__.py
24+
echo >> src/click/__init__.py
25+
echo "__version__ = \"$version\"" >> src/click/__init__.py
26+
27+
python -m build
28+
29+
if [[ "$production" = "production" ]]
30+
then
31+
options=
32+
else
33+
options="-r testpypi"
34+
fi
35+
36+
twine upload $options dist/artefacts_click-${version}-py3-none-any.whl
37+
38+
git restore src/click/__init__.py > /dev/null

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[project]
2-
name = "click"
3-
version = "8.2.0"
2+
name = "artefacts-click"
43
description = "Composable command line interface toolkit"
54
readme = "README.md"
65
license = {file = "LICENSE.txt"}
@@ -17,6 +16,7 @@ requires-python = ">=3.8"
1716
dependencies = [
1817
"colorama; platform_system == 'Windows'",
1918
]
19+
dynamic = ["version"]
2020

2121
[project.urls]
2222
Donate = "https://palletsprojects.com/donate"

0 commit comments

Comments
 (0)