Skip to content

Commit

Permalink
Switch over to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
tnm committed Dec 17, 2024
1 parent d82820a commit 3d66b2a
Show file tree
Hide file tree
Showing 6 changed files with 665 additions and 30 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
uv pip install -r requirements.txt
- name: Run pre-commit
run: |
uv pip install pre-commit
pre-commit run --all-files
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,22 @@ venv/
.DS_STORE
.pre-commit-config.yaml
.pem
.uv/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.installed.cfg
*.egg
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Cased CLI is a powerful command-line interface tool designed to streamline deplo
You can install the Cased CLI tool using pip:

```
pip install cased
pip install cased-cli
```

This will install the latest version of the tool from PyPI.
Expand Down
87 changes: 58 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,63 @@
[tool.poetry]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "cased"
version = "0.1.0"
description = "A CLI tool for managing deployments and branches"
authors = ["Cased <[email protected]>"]
readme = "README.md"
repository = "https://github.com/cased/cli"
packages = [{include = "cased"}]

[tool.poetry.dependencies]
python = "^3.12"
click = "*"
requests = "*"
rich = "*"
questionary = "*"
python-dateutil = "*"
pyyaml = "^6.0.2"
inquirer = "^3.4.0"
jinja2 = "^3.1.4"
description = "A CLI tool for managing cloud infrastructure"
requires-python = ">=3.12"
dependencies = [
"ansicon==1.89.0",
"blessed==1.20.0",
"certifi==2024.8.30",
"cfgv==3.4.0",
"charset-normalizer==3.3.2",
"click==8.1.7",
"colorama==0.4.6",
"commonmark==0.9.1",
"distlib==0.3.8",
"editor==1.6.6",
"filelock==3.16.1",
"identify==2.6.1",
"idna==3.10",
"inquirer==3.4.0",
"isort==5.13.2",
"jinja2==3.1.4",
"jinxed==1.3.0",
"markupsafe==2.1.5",
"nodeenv==1.9.1",
"platformdirs==4.3.6",
"pre-commit==3.8.0",
"prompt-toolkit==3.0.36",
"pygments==2.18.0",
"python-dateutil==2.9.0.post0",
"pyyaml==6.0.2",
"questionary==2.0.1",
"readchar==4.2.0",
"requests==2.32.3",
"rich==12.6.0",
"ruff==0.6.8",
"runs==1.2.2",
"six==1.16.0",
"urllib3==2.2.3",
"virtualenv==20.26.6",
"wcwidth==0.2.13",
"xmod==1.8.1",
]

[tool.poetry.scripts]
cased = "cased.cli:cli"
[project.scripts]
cased = "cased.cli:main"

[tool.poetry.group.dev.dependencies]
pre-commit = "^3.8.0"
ruff = "^0.6.2"
isort = "^5.13.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 88
target-version = "py312"

[tool.poetry.urls]
"Homepage" = "https://github.com/cased/csd"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
36 changes: 36 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
ansicon==1.89.0
blessed==1.20.0
certifi==2024.8.30
cfgv==3.4.0
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
commonmark==0.9.1
distlib==0.3.8
editor==1.6.6
filelock==3.16.1
identify==2.6.1
idna==3.10
inquirer==3.4.0
isort==5.13.2
jinja2==3.1.4
jinxed==1.3.0
markupsafe==2.1.5
nodeenv==1.9.1
platformdirs==4.3.6
pre-commit==3.8.0
prompt-toolkit==3.0.36
pygments==2.18.0
python-dateutil==2.9.0.post0
pyyaml==6.0.2
questionary==2.0.1
readchar==4.2.0
requests==2.32.3
rich==12.6.0
ruff==0.6.8
runs==1.2.2
six==1.16.0
urllib3==2.2.3
virtualenv==20.26.6
wcwidth==0.2.13
xmod==1.8.1
Loading

0 comments on commit 3d66b2a

Please sign in to comment.