Skip to content

Commit

Permalink
Merge pull request #4437 from voxel51/chore/db-centos
Browse files Browse the repository at this point in the history
Add CentOS support to `fiftyone-db`
  • Loading branch information
benjaminpkane committed Jun 4, 2024
2 parents ef5635e + ec57f0d commit 8fbbdd1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ jobs:
with:
name: dist-${{ matrix.platform }}
path: package/db/dist/*
- name: Upload wheel
if: ${{ matrix.platform != 'sdist' }}
uses: actions/upload-artifact@v3
with:
name: dist-${{ matrix.platform }}
path: package/db/dist/*.whl

test:
runs-on: ubuntu-20.04
Expand Down
20 changes: 17 additions & 3 deletions package/db/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@
"x86_64": "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon2023-7.0.2.tgz",
},
},
"centos": {
"7": {
"x86_64": "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-5.0.4.tgz",
},
"8": {
"aarch64": "https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-rhel82-5.0.22.tgz",
"x86_64": "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-5.0.4.tgz",
},
"9": {
"aarch64": "https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-rhel90-7.0.2.tgz",
"x86_64": "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel90-7.0.2.tgz",
},
},
"debian": {
"9": {
"x86_64": "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-5.0.22.tgz",
Expand Down Expand Up @@ -87,7 +100,8 @@

WINDOWS = "Windows"
WINDOWS_DOWNLOADS = {
"x86_64": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.4.zip"
"x86_64": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.4.zip",
"amd64": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.4.zip",
}


Expand All @@ -113,7 +127,7 @@ def _get_download():
return DARWIN_DOWNLOADS[MACHINE]

if SYSTEM == WINDOWS:
return WINDOWS_DOWNLOADS[MACHINE]
return WINDOWS_DOWNLOADS[MACHINE.lower()]

if SYSTEM == LINUX:
return _get_linux_download()
Expand All @@ -125,7 +139,7 @@ def _get_download():
MONGODB_BINARIES = ["mongod"]


VERSION = "1.1.1"
VERSION = "1.1.3"


def get_version():
Expand Down

0 comments on commit 8fbbdd1

Please sign in to comment.