-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from zkurtz/uv-not-poetry
uv not poetry/pyenv
- Loading branch information
Showing
8 changed files
with
310 additions
and
1,157 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,7 +9,11 @@ __pycache__/ | |
# Build artifacts | ||
dist/ | ||
build/ | ||
*.egg-info/ | ||
|
||
# IDE-specific files | ||
.idea/ | ||
.vscode/ | ||
|
||
# Dev ops | ||
dev.py |
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.2 |
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 |
---|---|---|
|
@@ -45,28 +45,14 @@ assert data == dummio.yaml.load(path) | |
|
||
## Installation | ||
|
||
We're [on pypi](https://pypi.org/project/dummio/) so you can just `pip install dummio` or `poetry add dummio` etc. | ||
We're [on pypi](https://pypi.org/project/dummio/), so `pip install dummio`. | ||
|
||
## Development | ||
|
||
1. Install poetry: `curl -sSL https://install.python-poetry.org | python3 -` | ||
1. Install [pyenv and its virtualenv plugin](https://github.com/pyenv/pyenv-virtualenv). | ||
1. Create a dev ops virtual environment: | ||
``` | ||
PYTHON_VERSION=3.12.2 | ||
function makenv { | ||
# clean up any existing env | ||
source deactivate | ||
pyenv uninstall --force $1 | ||
# build new venv | ||
pyenv install $PYTHON_VERSION --skip-existing | ||
pyenv global $PYTHON_VERSION | ||
pyenv virtualenv $PYTHON_VERSION $1 | ||
pyenv activate $1 | ||
poetry install --with extras --with dev | ||
pre-commit install | ||
poetry lock --no-update | ||
} | ||
makenv dummio | ||
git clone [email protected]:zkurtz/dummio.git | ||
cd dummio | ||
pip install uv | ||
uv sync --group extras | ||
source .venv/bin/activate | ||
``` |
This file was deleted.
Oops, something went wrong.
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,41 +1,33 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "dummio" | ||
version = "0.0.3" | ||
description = "Easiest-possible IO for basic file types." | ||
authors = ["Zach Kurtz <[email protected]>"] | ||
authors = [{ name = "Zach Kurtz", email = "[email protected]" }] | ||
readme = "README.md" | ||
homepage = "https://github.com/zkurtz/dummio" | ||
requires-python = ">=3.10" | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"pre-commit >=3.8.0", | ||
"pyright >=1.1.378", | ||
"ruff >=0.7.4", | ||
"pytest >=8.3.2", | ||
] | ||
extras = [ | ||
"pyyaml >=6.0.2", | ||
] | ||
|
||
[project.urls] | ||
Source = "https://github.com/zkurtz/dummio" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
[tool.uv] | ||
package = true | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ruff = "^0.6.3" | ||
pyright = "^1.1.378" | ||
pytest = "^8.3.2" | ||
pre-commit = "^3.8.0" | ||
build = "^1.2.1" | ||
twine = "^5.1.1" | ||
|
||
[tool.poetry.group.extras.dependencies] | ||
pyyaml = "^6.0.2" | ||
[tool.pytest.ini_options] | ||
testpaths = ["tests",] | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
|
||
[tool.ruff.lint] | ||
select = ["E", "F", "I"] | ||
ignore = [] | ||
|
||
[tool.pyright] | ||
include = ["dummio"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
include = ["dummio", "tests"] |