-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from reinout/reinout-uv
Switching to uv
- Loading branch information
Showing
15 changed files
with
109 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ develop-eggs/ | |
buildout.cfg | ||
.installed.cfg | ||
parts/ | ||
/uv.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,8 @@ The idea is that this directory's bin subdirectory is on my path. | |
- Shell scripts are located in ``shell/``. Running | ||
``./install_shell_scripts.sh`` symlinks these into the ``bin/`` directory. | ||
|
||
- The ``setup.py`` lists the python scripts, in the ``tools/`` directory. | ||
These are installed with pipenv. | ||
- The ``pyproject.toml`` lists the python scripts, in the ``tools/`` directory. | ||
These are installed with ``uv`` by the ``Makefile``. | ||
|
||
And.... it is a way for me to be more **explicit** about my setup. A ``Makefile`` for | ||
installing what I need (with homebrew and pipx) instead of trying to remember everything | ||
|
@@ -49,13 +49,13 @@ Checkout ourselves:: | |
cd ~/zelf | ||
git clone [email protected]:reinout/tools.git | ||
|
||
Now install pipx, tools and dotfiles and checkouts and local dev installs:: | ||
Now install uv, tools and dotfiles and checkouts and local dev installs:: | ||
|
||
cd ~/zelf/tools | ||
make install | ||
|
||
Note: the makefile also functions as a documentation on what I brew-install and | ||
pipx-install. | ||
uv-tools-install. | ||
|
||
|
||
Extra OSX install notes | ||
|
@@ -94,3 +94,12 @@ Likewise I've got a README for the python scripts. Look `at /tools on github | |
formatted README at the bottom. This is generated from the scripts' docstrings with | ||
``generate_python_docs.py`` (I just want a simple README, not full Sphinx | ||
documentation). | ||
|
||
|
||
Local dev install notes | ||
----------------------- | ||
|
||
Some hints:: | ||
|
||
$ uv sync | ||
$ uv run dtname (or another command) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
"""Generate a readme for the shell scripts.""" | ||
|
||
import os | ||
import sys | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
"""Generate a readme for the shell scripts.""" | ||
|
||
import os | ||
|
||
OMIT = ["README.rst"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "tools" | ||
version = "0.1.dev0" | ||
description = "Tools and scripts for Reinout" | ||
authors = [ | ||
{name = "Reinout van Rees", email = "[email protected]"}, | ||
] | ||
readme = "README.rst" | ||
requires-python = ">=3.12" | ||
dependencies = [] | ||
|
||
[tool.setuptools] | ||
packages = ["tools"] | ||
|
||
[project.scripts] | ||
log = "tools.engineerlog:main" | ||
add_time = "tools.add_time:main" | ||
copytoblog = "tools.blog:copytoblog" | ||
dtname = "tools.dtname:main" | ||
new_sermon = "tools.blog:new_sermon" | ||
fixthunderbird = "tools.thunderbird:fix_thunderbird" | ||
gh = "tools.github:main" | ||
latestentries = "tools.blog:list_todays_entries" | ||
makedocs = "tools.blog:makedocs" | ||
sommen = "tools.sommen:main" | ||
gac = "tools.git:main" | ||
mkinit = "tools.mkinit:main" | ||
python_coding_cleanup = "tools.python_coding_cleanup:main" | ||
|
||
[tool.ruff] | ||
target-version = "py312" | ||
|
||
[tool.ruff.lint] | ||
select = ["E4", "E7", "E9", "F", "I", "UP", "C901"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.