Skip to content

Commit 4e5dd55

Browse files
authored
Merge pull request #239 from DontShaveTheYak/develop
Release 0.6.2
2 parents 28c3898 + 9bfa939 commit 4e5dd55

37 files changed

+18389
-244
lines changed

.devcontainer/Dockerfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
4949

5050
# Install the required python versions (this takes a bit usually) so we do lots of cacheing
5151
RUN --mount=type=cache,target=/home/vscode/.pyenv/cache,uid=1000 \
52-
pyenv install -s 3.7.13 && \
53-
pyenv install -s 3.8.13 && \
54-
pyenv install -s 3.9.12 && \
55-
pyenv install -s 3.10.4 && \
56-
pyenv global 3.9.12 && \
52+
pyenv install -s 3.8.18 && \
53+
pyenv install -s 3.9.18 && \
54+
pyenv install -s 3.10.13 && \
55+
pyenv install -s 3.11.6 && \
56+
pyenv install -s 3.12.0 && \
57+
pyenv global 3.11.6 && \
5758
pyenv rehash
5859

5960
# Install poetry to manage our python project

.github/workflows/release.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
steps:
1818

1919
- name: Checkout Code
20-
uses: actions/checkout@v3.5.3
20+
uses: actions/checkout@v4.1.1
2121
with:
2222
fetch-depth: 0
2323

24-
- name: Setup Python 3.9
25-
uses: actions/[email protected].0
24+
- name: Setup Python 3.11
25+
uses: actions/[email protected].1
2626
with:
27-
python-version: '3.9'
27+
python-version: '3.11'
2828
architecture: x64
2929

3030
- name: Install dependencies
@@ -72,12 +72,12 @@ jobs:
7272
needs: tag
7373
steps:
7474
- name: Checkout Code
75-
uses: actions/checkout@v3.5.3
75+
uses: actions/checkout@v4.1.1
7676

77-
- name: Setup Python 3.9
78-
uses: actions/[email protected].0
77+
- name: Setup Python 3.11
78+
uses: actions/[email protected].1
7979
with:
80-
python-version: '3.9'
80+
python-version: '3.11'
8181
architecture: x64
8282

8383
- name: Setup Poetry
@@ -104,7 +104,7 @@ jobs:
104104
needs: [tag, publish]
105105
steps:
106106
- name: Create Draft Release
107-
uses: release-drafter/release-drafter@v5.24.0
107+
uses: release-drafter/release-drafter@v5.25.0
108108
if: github.base_ref == 'develop'
109109
with:
110110
tag: ${{needs.tag.outputs.tag}}
@@ -114,7 +114,7 @@ jobs:
114114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115115

116116
- name: Create Release
117-
uses: release-drafter/release-drafter@v5.24.0
117+
uses: release-drafter/release-drafter@v5.25.0
118118
if: github.base_ref == 'master'
119119
with:
120120
tag: ${{needs.tag.outputs.tag}}

.github/workflows/test.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ on:
1212
jobs:
1313
single:
1414
runs-on: ubuntu-latest
15-
name: Python 3.9
15+
name: Python 3.11
1616
steps:
1717
- name: Checkout Code
18-
uses: actions/checkout@v3.5.3
18+
uses: actions/checkout@v4.1.1
1919

2020
- name: Setup Latest Python
21-
uses: actions/[email protected].0
21+
uses: actions/[email protected].1
2222
with:
23-
python-version: 3.9
23+
python-version: 3.11
2424
architecture: x64
2525

2626
- name: Setup Poetry
@@ -32,10 +32,10 @@ jobs:
3232
run: pip install nox nox_poetry coverage[toml]
3333

3434
- name: Run Tests
35-
run: nox -s tests -p 3.9
35+
run: nox -s tests -p 3.11
3636

3737
- name: Combine Coverage reports
38-
run: nox -s coverage -p 3.9
38+
run: nox -s coverage -p 3.11
3939

4040
- name: Convert Coverage
4141
run: coverage xml --fail-under=0
@@ -52,14 +52,14 @@ jobs:
5252
runs-on: ubuntu-latest
5353
strategy:
5454
matrix:
55-
python-version: ["3.8", "3.10"] # 3.9 is done in the job above
55+
python-version: ["3.8", "3.9", "3.10", "3.12"] # 3.11 is done in the job above
5656
name: Python ${{ matrix.python-version }}
5757
steps:
5858
- name: Checkout Code
59-
uses: actions/checkout@v3.5.3
59+
uses: actions/checkout@v4.1.1
6060

6161
- name: Setup Python ${{ matrix.python-version }}
62-
uses: actions/[email protected].0
62+
uses: actions/[email protected].1
6363
with:
6464
python-version: ${{ matrix.python-version }}
6565
architecture: x64

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
language: python
1010
language_version: python3
1111
types: ["python"]
12-
args: ["-rs", "black", "-p", "3.9"]
12+
args: ["-rs", "black", "-p", "3.11"]
1313
require_serial: true
1414
additional_dependencies: []
1515
- id: lint
@@ -18,7 +18,7 @@ repos:
1818
language: python
1919
language_version: python3
2020
types: ["python"]
21-
args: ["-rs", "lint", "-p", "3.9"]
21+
args: ["-rs", "lint", "-p", "3.11"]
2222
require_serial: true
2323
additional_dependencies: []
2424
- id: mypy
@@ -27,7 +27,7 @@ repos:
2727
language: python
2828
language_version: python3
2929
types: ["python"]
30-
args: ["-rs", "mypy", "-p", "3.9"]
30+
args: ["-rs", "mypy", "-p", "3.11"]
3131
require_serial: true
3232
additional_dependencies: []
3333
- id: tests
@@ -36,6 +36,6 @@ repos:
3636
language: python
3737
language_version: python3
3838
types: ["python"]
39-
args: ["-rs", "tests", "-p", "3.9"]
39+
args: ["-rs", "tests", "-p", "3.11"]
4040
require_serial: true
4141
additional_dependencies: []

.python-version

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
3.9.12
2-
3.7.13
3-
3.8.13
4-
3.10.4
1+
3.11.6
2+
3.12.0
3+
3.10.13
4+
3.9.18
5+
3.8.18

.scripts/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
requests==2.31.0
2-
semver==3.0.1
2+
semver==3.0.2

.vscode/launch.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Python: Current File",
8+
"name": "cf2tf: Test Template",
99
"type": "python",
1010
"request": "launch",
1111
"program": "${workspaceFolder}/src/cf2tf/app.py",
1212
"console": "integratedTerminal",
1313
"args": [
1414
"-v",
1515
"debug",
16-
"tests/data/log_bucket.yaml"
16+
"tests/data/templates/log_bucket.yaml"
1717
],
1818
"justMyCode": true
1919
}
2020
]
21-
}
21+
}

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
### Prerequisites
7878

79-
Cloudformation 2 Terraform requires python >= 3.7
79+
Cloudformation 2 Terraform requires python >= 3.8
8080

8181
### Installation
8282

@@ -85,6 +85,12 @@ cf2tf is available as an easy to install pip package.
8585
pip install cf2tf
8686
```
8787

88+
If you are a [Homebrew](https://brew.sh/) user, can you install via brew:
89+
90+
```
91+
$ brew install cf2tf
92+
```
93+
8894
## Usage
8995

9096
To convert a template to terraform.
@@ -119,13 +125,13 @@ Contributions are what make the open-source community such an amazing place to l
119125

120126

121127

122-
This project uses poetry to manage dependencies and pre-commit to run formatting, linting and tests. You will need to have both installed to your system as well as python 3.9.
128+
This project uses poetry to manage dependencies and pre-commit to run formatting, linting and tests. You will need to have both installed to your system as well as python 3.11.
123129

124130
1. Fork the Project
125-
2. Setup the environment.
131+
2. Setup the environment.
126132
This project uses vscode devcontainer to provide a completly configured development environment. If you are using vscode and have the remote container extension installed, you should be asked to use the devcontainer when you open this project inside of vscode.
127133

128-
If you are not using devcontainers then you will need to have python installed. Install the `poetry`, `nox`, `nox_poetry` and `pre-commit` packages. Then run `poetry install` and `pre-commit install` commands.
134+
If you are not using devcontainers then you will need to have python installed. Install the `poetry`, `nox`, `nox_poetry` and `pre-commit` packages. Then run `poetry install` and `pre-commit install` commands.
129135

130136
Most of the steps can be found in the [Dockerfile](.devcontainer/Dockerfile).
131137
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
raise SystemExit(dedent(message)) from None
1818

1919

20-
python_versions = ["3.10", "3.9", "3.8", "3.7"]
20+
python_versions = ["3.12", "3.11", "3.10", "3.9", "3.8"]
2121

2222
nox.options.sessions = (
2323
# "pre-commit",

0 commit comments

Comments
 (0)