Skip to content

Commit

Permalink
Use rye to manage project
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed May 29, 2024
1 parent 96b2a8e commit 27755e2
Show file tree
Hide file tree
Showing 10 changed files with 357 additions and 203 deletions.
Binary file added .DS_Store
Binary file not shown.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches:
- main

jobs:
label_issue:
runs-on: ubuntu-latest
steps:
- name: Setup Rye
run: curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
- run: rye sync
- run: |
mkdir -p ./export/js/aws
mkdir -p ./export/ts/aws
- run: rye run aws
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export/
.venv
.env
__pycache__
out.json
export
dist
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.3
201 changes: 0 additions & 201 deletions fig.py

This file was deleted.

27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[project]
name = "aws-cli-plugin"
version = "0.1.0"
description = "Add your description here"
authors = [{ name = "Grant Gurvis", email = "[email protected]" }]
dependencies = [
"awscli>=1.32.114",
]
readme = "README.md"
requires-python = ">= 3.8"

[project.scripts]
aws_cli_plugin = 'aws_cli_plugin:main'

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["src/aws_cli_plugin"]
36 changes: 36 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false

-e file:.
awscli==1.32.114
# via aws-cli-plugin
botocore==1.34.114
# via awscli
# via s3transfer
colorama==0.4.6
# via awscli
docutils==0.16
# via awscli
jmespath==1.0.1
# via botocore
pyasn1==0.6.0
# via rsa
python-dateutil==2.9.0.post0
# via botocore
pyyaml==6.0.1
# via awscli
rsa==4.7.2
# via awscli
s3transfer==0.10.1
# via awscli
six==1.16.0
# via python-dateutil
urllib3==2.2.1
# via botocore
36 changes: 36 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false

-e file:.
awscli==1.32.114
# via aws-cli-plugin
botocore==1.34.114
# via awscli
# via s3transfer
colorama==0.4.6
# via awscli
docutils==0.16
# via awscli
jmespath==1.0.1
# via botocore
pyasn1==0.6.0
# via rsa
python-dateutil==2.9.0.post0
# via botocore
pyyaml==6.0.1
# via awscli
rsa==4.7.2
# via awscli
s3transfer==0.10.1
# via awscli
six==1.16.0
# via python-dateutil
urllib3==2.2.1
# via botocore
3 changes: 3 additions & 0 deletions setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ mkdir -p ./export/ts/aws

aws configure set plugins.fig fig
export PYTHONPATH=$(pwd):$PYTHONPATH


aws configure set plugins.aws_cli_plugin aws_cli_plugin
Loading

0 comments on commit 27755e2

Please sign in to comment.