Skip to content

Commit d059234

Browse files
authored
chore: update deps (#24)
1 parent cbf55ef commit d059234

File tree

10 files changed

+1234
-1395
lines changed

10 files changed

+1234
-1395
lines changed

.github/workflows/bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
with:
1414
token: "${{ secrets.GITHUB_TOKEN }}"
1515
fetch-depth: 0

.github/workflows/check.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ on:
55
paths:
66
- "termynal/**"
77
- "tests/**"
8-
- "poetry.lock"
8+
- "uv.lock"
99
branches: [ main ]
1010
pull_request:
1111
paths:
1212
- "termynal/**"
1313
- "tests/**"
14-
- "poetry.lock"
14+
- "uv.lock"
1515
branches: [ main ]
1616
workflow_dispatch:
1717

1818
jobs:
1919
lint:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- uses: actions/setup-python@v4
2424
with:
25-
python-version: '3.8'
25+
python-version: '3.9'
2626

2727
- name: Install python dependencies
28-
run: make install-poetry install
28+
run: make install-uv install
2929

3030
- name: Run linters
3131
run: make lint
@@ -34,15 +34,15 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
matrix:
37-
version: ['3.8', '3.9', '3.10', '3.11', '3.12']
37+
version: ['3.9', '3.10', '3.11', '3.12', '3.13']
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
- uses: actions/setup-python@v4
4141
with:
4242
python-version: ${{ matrix.version }}
4343

4444
- name: Install python dependencies
45-
run: make install-poetry install
45+
run: make install-uv install
4646

4747
- name: Run test
4848
run: make test

.github/workflows/github_pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: Install python dependencies
15-
run: make install-poetry install-docs
15+
run: make install-uv install-docs
1616

1717
- name: Generate docs
1818
run: make docs
1919

2020
- name: Deploy pages
21-
uses: peaceiris/actions-gh-pages@v3
21+
uses: peaceiris/actions-gh-pages@v4
2222
with:
2323
github_token: ${{ secrets.GITHUB_TOKEN }}
2424
publish_dir: ./site

.github/workflows/pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414

1515
- name: Publish package to pypi
16-
run: make install-poetry publish
16+
run: make install-uv publish
1717
env:
1818
pypi_username: ${{ secrets.PYPI_USERNAME }}
1919
pypi_password: ${{ secrets.PYPI_PASSWORD }}

CONTRIBUTING.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ Welcome! Happy to see you willing to make the project better.
88

99
### Install
1010

11-
**Install poetry**
11+
**Install uv**
1212

1313
```
14-
make install-poetry
15-
# pip install poetry
14+
make install-uv
15+
# pip install uv
1616
```
1717

18-
- don't forget to use the last version of poetry
19-
- don't forget to write a code for python 3.8+
20-
- don't forget to use virtualenv
21-
- For using venv in the project directory, run `poetry config virtualenvs.in-project true`
18+
- don't forget to use the last version of uv
19+
- don't forget to write a code for python 3.9+
2220

2321
**Install dependencies**
2422

Makefile

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DEFAULT_GOAL := help
22
CODE = termynal tests
3-
POETRY_RUN = poetry run
4-
TEST = $(POETRY_RUN) pytest $(args)
3+
RUNNER = uv run
4+
TEST = $(RUNNER) pytest $(args)
55

66
.PHONY: help
77
help: ## Show help
@@ -10,25 +10,29 @@ help: ## Show help
1010
.PHONY: all
1111
all: format lint test ## Run format lint test
1212

13-
.PHONY: install-poetry
14-
install-poetry: ## Install poetry
15-
pip install poetry
13+
.PHONY: install-uv
14+
install-uv: ## Install uv
15+
pip install uv
1616

1717
.PHONY: install
1818
install: ## Install dependencies
19-
poetry install
19+
uv sync --all-extras
2020

2121
.PHONY: install-docs
2222
install-docs: ## Install docs dependencies
23-
poetry install --only docs
23+
uv sync --group docs
2424

2525
.PHONY: install-git
2626
install-git: ## Install git dependencies
27-
poetry install --only git
27+
uv sync --group git
28+
29+
.PHONY: build
30+
build: ## Build package
31+
@uv build
2832

2933
.PHONY: publish
30-
publish: ## Publish package
31-
@poetry publish --build --no-interaction --username=$(pypi_username) --password=$(pypi_password)
34+
publish: build ## Publish package
35+
@uv publish --username=$(pypi_username) --password=$(pypi_password)
3236

3337
.PHONY: test
3438
test: ## Test with coverage
@@ -45,31 +49,31 @@ test-failed: ## Test failed
4549
.PHONY: test-report
4650
test-report: ## Report testing
4751
$(TEST) --cov --cov-report html
48-
$(POETRY_RUN) python -m webbrowser 'htmlcov/index.html'
52+
$(RUNNER) python -m webbrowser 'htmlcov/index.html'
4953

5054
.PHONY: lint
5155
lint: ## Check code
52-
$(POETRY_RUN) ruff $(CODE)
53-
$(POETRY_RUN) black --check $(CODE)
54-
$(POETRY_RUN) pytest --dead-fixtures --dup-fixtures
55-
$(POETRY_RUN) mypy $(CODE)
56+
$(RUNNER) ruff $(CODE)
57+
$(RUNNER) black --check $(CODE)
58+
$(RUNNER) pytest --dead-fixtures --dup-fixtures
59+
$(RUNNER) mypy $(CODE)
5660

5761
.PHONY: format
5862
format: ## Formating code
59-
$(POETRY_RUN) ruff --fix-only $(CODE)
60-
$(POETRY_RUN) black $(CODE)
63+
$(RUNNER) ruff --fix-only $(CODE)
64+
$(RUNNER) black $(CODE)
6165

6266
.PHONY: docs
6367
docs: ## Build docs
64-
$(POETRY_RUN) mkdocs build -s -v
68+
$(RUNNER) mkdocs build -s -v
6569

6670
.PHONY: docs-serve
6771
docs-serve: ## Serve docs
68-
$(POETRY_RUN) mkdocs serve
72+
$(RUNNER) mkdocs serve
6973

7074
.PHONY: bump
7175
bump: ## Bump version (commit and tag)
72-
$(POETRY_RUN) cz bump --major-version-zero
76+
$(RUNNER) cz bump --major-version-zero
7377

7478
.PHONY: clean
7579
clean: ## Clean

docs/README.md

Lines changed: 52 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ command, start with `$`. You can change it with `prompt_literal_start` option.
8585

8686
=== "HTML"
8787
<!-- termynal -->
88-
88+
8989
```
9090
> some longish command with \
9191
many \
@@ -134,51 +134,63 @@ tool's help looks like this:
134134
<!-- termynal -->
135135

136136
```
137-
$ poetry --help
138-
139-
Description:
140-
Lists commands.
141-
142-
Usage:
143-
list [options] [--] [<namespace>]
144-
145-
Arguments:
146-
namespace The namespace name
147-
148-
Options:
149-
-h, --help Display help for the given command.
150-
When no command is given display help
151-
for the list command.
152-
-q, --quiet Do not output any message.
153-
-V, --version Display this application version.
154-
--ansi Force ANSI output.
155-
--no-ansi Disable ANSI output.
156-
-n, --no-interaction Do not ask any interactive question.
157-
--no-plugins Disables plugins.
158-
--no-cache Disables Poetry source caches.
159-
-C, --directory=DIRECTORY The working directory for the Poetry
160-
command (defaults to the current
161-
working directory).
162-
-v|vv|vvv, --verbose Increase the verbosity of messages:
163-
1 for normal output,
164-
2 for more verbose output and
165-
3 for debug.
166-
167-
Help:
168-
The list command lists all commands:
169-
170-
poetry list
171-
172-
You can also display the commands for a specific namespace:
173-
174-
poetry list test
137+
$ uv -h
138+
139+
An extremely fast Python package manager.
140+
141+
Usage: uv [OPTIONS] <COMMAND>
142+
143+
Commands:
144+
run Run a command or script
145+
init Create a new project
146+
add Add dependencies to the project
147+
remove Remove dependencies from the project
148+
sync Update the project's environment
149+
lock Update the project's lockfile
150+
export Export the project's lockfile to an alternate format
151+
tree Display the project's dependency tree
152+
tool Run and install commands provided by Python packages
153+
python Manage Python versions and installations
154+
pip Manage Python packages with a pip-compatible interface
155+
venv Create a virtual environment
156+
build Build Python packages into source distributions and wheels
157+
publish Upload distributions to an index
158+
cache Manage uv's cache
159+
self Manage the uv executable
160+
version Display uv's version
161+
help Display documentation for a command
162+
163+
Cache options:
164+
-n, --no-cache Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation [env: UV_NO_CACHE=]
165+
--cache-dir <CACHE_DIR> Path to the cache directory [env: UV_CACHE_DIR=]
166+
167+
Python options:
168+
--python-preference <PYTHON_PREFERENCE> Whether to prefer uv-managed or system Python installations [env: UV_PYTHON_PREFERENCE=] [possible values: only-managed, managed, system, only-system]
169+
--no-python-downloads Disable automatic downloads of Python. [env: "UV_PYTHON_DOWNLOADS=never"]
170+
171+
Global options:
172+
-q, --quiet Do not print any output
173+
-v, --verbose... Use verbose output
174+
--color <COLOR_CHOICE> Control colors in output [default: auto] [possible values: auto, always, never]
175+
--native-tls Whether to load TLS certificates from the platform's native certificate store [env: UV_NATIVE_TLS=]
176+
--offline Disable network access
177+
--allow-insecure-host <ALLOW_INSECURE_HOST> Allow insecure connections to a host [env: UV_INSECURE_HOST=]
178+
--no-progress Hide all progress outputs [env: UV_NO_PROGRESS=]
179+
--directory <DIRECTORY> Change to the given directory prior to running the command
180+
--project <PROJECT> Run the command within the given project directory
181+
--config-file <CONFIG_FILE> The path to a `uv.toml` file to use for configuration [env: UV_CONFIG_FILE=]
182+
--no-config Avoid discovering configuration files (`pyproject.toml`, `uv.toml`) [env: UV_NO_CONFIG=]
183+
-h, --help Display the concise help for this command
184+
-V, --version Display the uv version
185+
186+
Use `uv help` for more details.
175187

176188
```
177189

178190
=== "Markdown"
179191
````
180192
```
181-
$ poetry --help
193+
$ uv -h
182194

183195
...
184196
```

0 commit comments

Comments
 (0)