Skip to content

Commit

Permalink
Merge pull request #860 from asfadmin/rew/add-src-folder
Browse files Browse the repository at this point in the history
Move code to src/ folder
  • Loading branch information
reweeden authored Jan 16, 2025
2 parents fa681ac + 6db0627 commit 964e98d
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.terraform
terraform.tfstate*
*.tfvars
/thin_egress_app/.chalice
/src/thin_egress_app/.chalice
.coverage

# Config
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
SOURCES := \
thin_egress_app/var/otel-config/collector.yaml \
thin_egress_app/app.py \
thin_egress_app/tea_bumper.py \
thin_egress_app/update_lambda.py
src/thin_egress_app/var/otel-config/collector.yaml \
src/thin_egress_app/app.py \
src/thin_egress_app/tea_bumper.py \
src/thin_egress_app/update_lambda.py

HTML_TEMPLATES := $(wildcard templates/*.html)
MD_TEMPLATES := $(wildcard templates/*.md)
Expand All @@ -15,7 +15,7 @@ REQUIREMENTS_TXT := $(REQUIREMENTS_IN:.in=.txt)
DIR := dist
EMPTY := $(DIR)/empty
# Temporary artifacts
DIST_SOURCES := $(SOURCES:thin_egress_app/%=$(DIR)/code/%)
DIST_SOURCES := $(SOURCES:src/thin_egress_app/%=$(DIR)/code/%)
DIST_MD_RESOURCES := $(MD_TEMPLATES:%.md=$(DIR)/code/%.html)
DIST_HTML_RESOURCES := $(HTML_TEMPLATES:%=$(DIR)/code/%)
DIST_RESOURCES := $(DIST_HTML_RESOURCES) $(DIST_MD_RESOURCES)
Expand Down Expand Up @@ -118,7 +118,7 @@ $(DIST_HTML_RESOURCES): $(DIR)/code/%: %
cp $< $@

.SECONDARY: $(DIST_SOURCES)
$(DIST_SOURCES): $(DIR)/code/%: thin_egress_app/%
$(DIST_SOURCES): $(DIR)/code/%: src/thin_egress_app/%
@mkdir -p $(@D)
cp $< $@
$(PYTHON) scripts/sed.py -i $@ "<BUILD_ID>" "${BUILD_ID}"
Expand Down
4 changes: 2 additions & 2 deletions docs/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ environment management.

To install the TEA CLI using git over SSH:
```
pipx install git+ssh://[email protected]/asfadmin/thin-egress-app.git#subdirectory=tea-cli
pipx install git+ssh://[email protected]/asfadmin/thin-egress-app.git#subdirectory=src/tea-cli
```

Or, to install the TEA CLI using git over HTTPS:
```
pipx install git+https://github.com/asfadmin/thin-egress-app.git#subdirectory=tea-cli
pipx install git+https://github.com/asfadmin/thin-egress-app.git#subdirectory=src/tea-cli
```

### Using the TEA CLI
Expand Down
2 changes: 1 addition & 1 deletion docs/technical.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ file, parses out the IP CIDRs for the deploy region, and automatically
updates the In-Region IAM Role's Policy Document `condition` block.

This lambda is defined in
[update_lambda.py](https://github.com/asfadmin/thin-egress-app/blob/devel/thin_egress_app/update_lambda.py)
[update_lambda.py](https://github.com/asfadmin/thin-egress-app/blob/devel/src/thin_egress_app/update_lambda.py)

## Build Process

Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
pythonpath = src/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 964e98d

Please sign in to comment.