Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move code to src/ folder #860

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading