Skip to content

Commit

Permalink
Do not depende on pyd, thus making project more portable
Browse files Browse the repository at this point in the history
  • Loading branch information
katyukha committed Sep 11, 2023
1 parent ffaf9e0 commit 1a71ed7
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 20 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:

- name: Build Odood
run: |
dub build -b release -c bash-autocomplete --override-config=pyd/python38
dub build -b release --override-config=pyd/python38
dub build -b release -c bash-autocomplete
dub build -b release
- name: Prepare dependencies for deb package
id: prepare_deb_deps
Expand Down Expand Up @@ -86,8 +86,8 @@ jobs:

- name: Build Odood
run: |
dub build -b release -c bash-autocomplete --override-config=pyd/python310
dub build -b release --override-config=pyd/python310
dub build -b release -c bash-autocomplete
dub build -b release
- name: Prepare dependencies for deb package
id: prepare_deb_deps
Expand Down Expand Up @@ -152,8 +152,8 @@ jobs:

- name: Build Odood
run: |
dub build -b release -c bash-autocomplete --override-config=pyd/python39
dub build -b release --override-config=pyd/python39
dub build -b release -c bash-autocomplete
dub build -b release
- name: Prepare dependencies for deb package
id: prepare_deb_deps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-os-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Run tests (Debian Bullseye)
if: matrix.image == 'debian:bullseye'
run: dub test -b unittest-cov --override-config=pyd/python39
run: dub test -b unittest-cov

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

- name: Run tests (Debian Bullseye)
if: matrix.image == 'debian:bullseye'
run: dub test -b unittest-cov -c unittest-silly --override-config=pyd/python39 -- --threads=1 --verbose
run: dub test -b unittest-cov -c unittest-silly

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:

- name: Run tests
if: matrix.os == 'ubuntu-20.04'
run: dub test -b unittest-cov --override-config=pyd/python38
run: dub test -b unittest-cov
- name: Run tests
if: matrix.os == 'ubuntu-22.04'
run: dub test -b unittest-cov --override-config=pyd/python310
run: dub test -b unittest-cov

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -98,15 +98,15 @@ jobs:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
if: matrix.os == 'ubuntu-20.04'
run: dub test -b unittest-cov -c unittest-silly --override-config=pyd/python38
run: dub test -b unittest-cov -c unittest-silly
- name: Run tests (Ubuntu 22.04)
env:
POSTGRES_HOST: localhost
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
if: matrix.os == 'ubuntu-22.04'
run: dub test -b unittest-cov -c unittest-silly --override-config=pyd/python310
run: dub test -b unittest-cov -c unittest-silly

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
Expand Down
3 changes: 0 additions & 3 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ description "Manage local development odoo installations with ease"
authors "Dmytro Katyukha"
copyright "Copyright © 2022-2023, Dmytro Katyukha"
license "MPL-2.0"
dependency "pyd" version=">=0.14.4"

dependency ":exception" version="*"
dependency ":utils" version="*"
Expand All @@ -16,8 +15,6 @@ subPackage "./subpackages/cli"

targetPath "build"

subConfiguration "pyd" "python311"

configuration "executable" {
targetType "executable"
mainSourceFile "source/odood/app.d"
Expand Down
1 change: 0 additions & 1 deletion dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"dyaml": "0.9.2",
"east_asian_width": "1.1.0",
"prettyprint": "1.0.9",
"pyd": "0.14.4",
"requests": "2.1.1",
"semver": "0.5.0",
"silly": "1.1.1",
Expand Down
3 changes: 2 additions & 1 deletion subpackages/cli/dub.selections.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"fileVersion": 1,
"versions": {
"bindbc-common": "~master",
"bindbc-loader": "1.1.2",
"cachetools": "0.3.1",
"color": "0.0.9",
"colored": "0.0.31",
Expand All @@ -13,7 +15,6 @@
"east_asian_width": "1.1.0",
"odood": {"path":"../../"},
"prettyprint": "1.0.9",
"pyd": "0.14.4",
"requests": "2.1.1",
"semver": "0.5.0",
"tabletool": "0.5.0",
Expand Down
3 changes: 2 additions & 1 deletion subpackages/lib/dub.selections.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"fileVersion": 1,
"versions": {
"bindbc-common": "~master",
"bindbc-loader": "1.1.2",
"cachetools": "0.3.1",
"dini": "2.0.0",
"dlibzip": "1.9.2",
Expand All @@ -9,7 +11,6 @@
"dyaml": "0.9.2",
"odood": {"path":"../../"},
"prettyprint": "1.0.9",
"pyd": "0.14.4",
"requests": "2.1.1",
"semver": "0.5.0",
"thepath": "0.1.8",
Expand Down
1 change: 0 additions & 1 deletion subpackages/utils/dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependency "thepath" version=">=0.1.7"
dependency "theprocess" version=">=0.0.5"
dependency "zipper" version=">=0.0.3"
dependency "semver" version=">=0.4.0"
dependency "pyd" version=">=0.14.4"
dependency "bindbc-loader" version="~>1.1.2"
dependency "bindbc-common" version="~master"

Expand Down
3 changes: 2 additions & 1 deletion subpackages/utils/dub.selections.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"fileVersion": 1,
"versions": {
"bindbc-common": "~master",
"bindbc-loader": "1.1.2",
"cachetools": "0.3.1",
"dlibzip": "1.9.2",
"dshould": "1.7.1",
"odood": {"path":"../../"},
"prettyprint": "1.0.9",
"pyd": "0.14.4",
"requests": "2.1.1",
"semver": "0.5.0",
"thepath": "0.1.8",
Expand Down

0 comments on commit 1a71ed7

Please sign in to comment.