Skip to content

Commit

Permalink
Update boost binaries download URL
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeVerney committed Jan 10, 2025
1 parent 62f3e4f commit adc2aba
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v4
- name: Boost install
run: |
(New-Object System.Net.WebClient).DownloadFile("https://boostorg.jfrog.io/artifactory/main/release/1.86.0/binaries/boost_1_86_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
(New-Object System.Net.WebClient).DownloadFile("https://archives.boost.io/release/1.87.0/binaries/boost_1_87_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
Start-Process -Wait -FilePath "${{ runner.temp }}\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=${{ runner.temp }}\boost-install"
- name: AVRO install
run: |
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v4
- name: Boost install
run: |
(New-Object System.Net.WebClient).DownloadFile("https://boostorg.jfrog.io/artifactory/main/release/1.86.0/binaries/boost_1_86_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
(New-Object System.Net.WebClient).DownloadFile("https://archives.boost.io/release/1.87.0/binaries/boost_1_87_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
Start-Process -Wait -FilePath "${{ runner.temp }}\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=${{ runner.temp }}\boost-install"
- name: AVRO install
run: |
Expand Down Expand Up @@ -229,11 +229,11 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: cp312-manylinux_* cp313-manylinux_*
CIBW_BUILD: cp38-manylinux_* cp39-manylinux_* cp310-manylinux_* cp311-manylinux_* cp312-manylinux_* cp313-manylinux_*
CIBW_ARCHS: auto64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_BEFORE_ALL: >
yum install -y wget gcc-c++ openssl-devel boost-devel &&
yum install -y wget gcc-c++ boost-devel openssl-devel &&
yum search epel-release &&
yum info epel-release &&
yum install -y epel-release &&
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: cp312-macosx_* cp313-macosx_*
CIBW_BUILD: cp38-macosx_* cp39-macosx_* cp310-macosx_* cp311-macosx_* cp312-macosx_* cp313-macosx_*
CIBW_ARCHS: auto64
# See https://cibuildwheel.pypa.io/en/stable/cpp_standards/#macos-and-deployment-target-versions
MACOSX_DEPLOYMENT_TARGET: 11.0
Expand Down
27 changes: 17 additions & 10 deletions python/example/etp_client_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def start_etp_server(client_session):
sys.exit()
print("Now connected to ETP Server")

# Find an available ETP dataspace
print("List dataspaces")
all_dataspaces = client_session.getDataspaces()
if all_dataspaces.empty() :
print("There is no dataspace on this ETP server.")
Expand All @@ -38,32 +38,38 @@ def start_etp_server(client_session):
print(dataspace.uri)
dataspace = all_dataspaces.front()

print("Working on dataspace " + dataspace.uri);
# List resources of this ETP dataspace
print("List resources of dataspace " + dataspace.uri)
etp_context = fetpapi.ContextInfo()
etp_context.uri = dataspace.uri
etp_context.depth = 1
all_resources = client_session.getResources(etp_context, fetpapi.ContextScopeKind__self);
etp_context.navigableEdges = fetpapi.RelationshipKind_Both
etp_context.includeSecondaryTargets = False
etp_context.includeSecondarySources = False
all_resources = client_session.getResources(etp_context, fetpapi.ContextScopeKind__self)
if all_resources.empty() :
print("There is no resource on this dataspace.")
sys.exit()
for resource in all_resources:
print(resource.uri)
else :
print("There are " + str(len(all_resources)) + " resource on this dataspace.")
for index, resource in enumerate(all_resources):
print(str(index) + ' : ' + resource.uri)

# Create a FESAPI Dataobject repository to ease access to dataobjects
print("Create a FESAPI Dataobject repository to ease access to dataobjects");
repo = fesapi.DataObjectRepository()
hdf_proxy_factory = fetpapi.FesapiHdfProxyFactory(client_session)
print("Set specialized HdfProxy to deal with ETP DataArray subprotocol")
repo.setHdfProxyFactory(hdf_proxy_factory)
print(type(hdf_proxy_factory))

# Get dataobjects from the resources to the DataObjectRepository
print("Get dataobjects from the resources to the DataObjectRepository");
uriMap = fetpapi.MapStringString();
for index, resource in enumerate(all_resources):
uriMap[str(index)] = resource.uri
all_resources = client_session.getDataObjects(uriMap);
for dataObject in all_resources.values():
repo.addOrReplaceGsoapProxy(dataObject.data, fetpapi.getDataObjectType(dataObject.resource.uri), fetpapi.getDataspaceUri(dataObject.resource.uri))

# Read data of the first ijk grid
print("Read data of the first ijk grid");
if repo.getIjkGridRepresentationCount() > 0:
ijk_grid = repo.getIjkGridRepresentation(0)
print("IJK Grid : " + ijk_grid.getTitle())
Expand All @@ -81,7 +87,7 @@ def start_etp_server(client_session):
else:
print("This dataspace has no IJK Grid")

# Read data of the first 2d grid
print("Read data of the first 2d grid");
if repo.getHorizonGrid2dRepresentationCount() > 0:
grid2d = repo.getHorizonGrid2dRepresentation(0)
print("2d Grid : " + grid2d.getTitle())
Expand All @@ -96,6 +102,7 @@ def start_etp_server(client_session):
else:
print("This dataspace has no 2d Grid")

print(type(hdf_proxy_factory))
repo.clear()
client_session.close()
print("FINISHED")

0 comments on commit adc2aba

Please sign in to comment.