Skip to content

Commit b29c5d9

Browse files
authored
Handle module installtion with poetry (#67)
* Test poetry installing modules
1 parent 261d1d8 commit b29c5d9

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,31 @@ jobs:
5050
httpPort: 8008
5151
public_baseurl: http://10.0.2.2:8008/
5252

53+
test-modules-poetry:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v3
57+
- uses: actions/setup-python@v4
58+
with:
59+
python-version: "3.x"
60+
- name: Run synapse
61+
uses: ./
62+
with:
63+
installer: poetry
64+
uploadLogs: true
65+
httpPort: 8008
66+
customModules: "git+https://github.com/michaelkaye/noop-synapse-storage-provider.git"
67+
customConfig: |
68+
media_storage_providers:
69+
- module: noop_storage_provider.NoopStorageProviderBackend
70+
store_local: True
71+
store_remote: True
72+
store_synchronous: True
73+
config:
74+
sample: "sample"
75+
- name: Wait for synapse to do something
76+
run: sleep 60
77+
5378
test-modules:
5479
runs-on: ubuntu-latest
5580
steps:

create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function run() {
3939
const toLoad = customModules.split(',');
4040
for (let module of toLoad) {
4141
if (installer == "poetry") {
42-
await exec.exec("poetry", ["install", module]);
42+
await exec.exec("poetry", ["add", module]);
4343
} else {
4444
await exec.exec("env/bin/pip", ["install", "-q", module]);
4545
}

dist/create/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/create/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)