Skip to content

Commit 8b8c77a

Browse files
committed
Use finecode_extension_api from pypi instead of git in extensions: ast, black, isort, mypy. Build and publish ast and black extension in ci/cd
1 parent 85ba260 commit 8b8c77a

13 files changed

Lines changed: 208 additions & 225 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,38 @@ jobs:
8888
popd
8989
shell: bash
9090

91+
- name: Build fine_python_ast
92+
if: runner.os == 'Linux'
93+
run: |
94+
pushd extensions/fine_python_ast
95+
poetry build
96+
popd
97+
shell: bash
98+
9199
- name: Build fine_python_black
92100
if: runner.os == 'Linux'
93101
run: |
94102
pushd extensions/fine_python_black
95103
poetry build
96104
popd
97105
shell: bash
98-
106+
99107
- name: Build fine_python_isort
100108
if: runner.os == 'Linux'
101109
run: |
102110
pushd extensions/fine_python_isort
103111
poetry build
104112
popd
105113
shell: bash
106-
114+
115+
- name: Build fine_python_mypy
116+
if: runner.os == 'Linux'
117+
run: |
118+
pushd extensions/fine_python_mypy
119+
poetry build
120+
popd
121+
shell: bash
122+
107123
- name: Build fine_python_format
108124
if: runner.os == 'Linux'
109125
run: |
@@ -112,22 +128,23 @@ jobs:
112128
popd
113129
shell: bash
114130

115-
# - name: Build finecode
116-
# if: runner.os == 'Linux'
117-
# run: |
118-
# poetry build
119-
# shell: bash
120-
131+
- name: Build finecode
132+
if: runner.os == 'Linux'
133+
run: |
134+
poetry build
135+
shell: bash
136+
121137
- name: Collect all distribution packages
122138
if: runner.os == 'Linux'
123139
run: |
124140
mkdir -p dist
125141
cp finecode_extension_api/dist/* dist/
126-
# cp extensions/fine_python_black/dist/* dist/
142+
cp extensions/fine_python_ast/dist/* dist/
143+
cp extensions/fine_python_black/dist/* dist/
127144
# cp extensions/fine_python_isort/dist/* dist/
145+
# cp extensions/fine_python_mypy/dist/* dist/
128146
# cp presets/fine_python_format/dist/* dist/
129147
shell: bash
130-
131148

132149
- name: Store the distribution packages
133150
uses: actions/upload-artifact@v4

extensions/fine_python_ast/poetry.lock

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/fine_python_ast/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ description = ""
55
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11, < 3.14"
8-
dependencies = [
9-
"finecode_extension_api @ git+https://github.com/finecode-dev/finecode.git#subdirectory=finecode_extension_api",
10-
]
8+
dependencies = ["finecode_extension_api==0.1.0"]
119

1210

1311
[build-system]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Black Integration with FineCode

extensions/fine_python_black/poetry.lock

Lines changed: 13 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/fine_python_black/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ description = ""
55
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11, < 3.14"
8-
dependencies = [
9-
"finecode_extension_api @ git+https://github.com/finecode-dev/finecode.git#subdirectory=finecode_extension_api",
10-
"black (>=25.1.0,<26.0.0)",
11-
]
8+
dependencies = ["finecode_extension_api==0.1.0", "black (>=25.1.0,<26.0.0)"]
129

1310

1411
[build-system]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Isort Integration with FineCode

extensions/fine_python_isort/poetry.lock

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/fine_python_isort/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ description = ""
55
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">= 3.11, < 3.14"
8-
dependencies = [
9-
"finecode_extension_api @ git+https://github.com/finecode-dev/finecode.git#subdirectory=finecode_extension_api",
10-
"isort (>=5.13, <6)",
11-
]
8+
dependencies = ["finecode_extension_api==0.1.0", "isort (>=5.13, <6)"]
129

1310

1411
[build-system]

extensions/fine_python_mypy/poetry.lock

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)