Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Wilms committed Jan 17, 2025
1 parent 74860bf commit 77ac5c5
Show file tree
Hide file tree
Showing 25 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: |
(cd src/Nexus && libman restore)
dotnet publish -c Release -o app /p:GeneratePackage=true src/Nexus/Nexus.csproj
python -m build --wheel --outdir artifacts/package --no-isolation src/clients/python-client
python -m build --wheel --outdir artifacts/package --no-isolation src/clients/python
python -m build --wheel --outdir artifacts/package --no-isolation src/extensibility/python-extensibility
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.analysis.extraPaths": [
"src/clients/python-client"
"src/clients/python"
],
"editor.formatOnSave": true,
"[aspnetcorerazor]": {
Expand Down
4 changes: 2 additions & 2 deletions Nexus.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nexus.Tests", "tests\Nexus.
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nexus", "src\Nexus\Nexus.csproj", "{6DDD84D7-8FCF-4E49-A5DB-EAF95B0E040F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-client", "src\clients\dotnet-client\dotnet-client.csproj", "{FD8E5EA0-674B-492D-8D1E-1D0B8374B71D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet", "src\clients\dotnet\client.csproj", "{FD8E5EA0-674B-492D-8D1E-1D0B8374B71D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nexus.UI", "src\Nexus.UI\Nexus.UI.csproj", "{121840FD-19CC-4C48-86DE-AF0B6C70A089}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-client-tests", "tests\clients\dotnet-client-tests\dotnet-client-tests.csproj", "{AFCE2F13-F54D-439A-B796-DC3F32E1A12B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-tests", "tests\clients\dotnet-tests\client-tests.csproj", "{AFCE2F13-F54D-439A-B796-DC3F32E1A12B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nexus.ClientGenerator", "src\Nexus.ClientGenerator\Nexus.ClientGenerator.csproj", "{E12BE061-CCEF-48AF-8442-BC23A1C4D3F2}"
EndProject
Expand Down
6 changes: 3 additions & 3 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"include": [
"src/clients/python-client",
"src/clients/python",
"src/extensibility/python-extensibility",
"tests/clients/python-client-tests",
"tests/clients/python-tests",
"tests/extensibility/python-extensibility-tests"
],
"stubPath": "",
"executionEnvironments": [
{
"root": ".",
"extraPaths": [
"src/clients/python-client",
"src/clients/python",
"src/extensibility/python-extensibility"
]
}
Expand Down
4 changes: 2 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ python_files=*-tests.py
python_classes=*Tests
python_functions=*_test
pythonpath =
src/clients/python-client
src/clients/python
src/extensibility/python-extensibility
testpaths =
tests/clients/python-client-tests
tests/clients/python-tests
tests/extensibility/python-extensibility-tests
2 changes: 1 addition & 1 deletion samples/matlab/sample_export.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% load Nexus client
connectorFolderPath = fullfile(tempdir, 'nexus');
[~, ~] = mkdir(connectorFolderPath);
url = 'https://raw.githubusercontent.com/nexus-main/nexus/master/src/clients/matlab-client/NexusClient.m';
url = 'https://raw.githubusercontent.com/nexus-main/nexus/master/src/clients/matlab/NexusClient.m';
websave(fullfile(connectorFolderPath, 'NexusClient.m'), url);
addpath(connectorFolderPath)

Expand Down
2 changes: 1 addition & 1 deletion samples/matlab/sample_load.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% load Nexus client
connectorFolderPath = fullfile(tempdir, 'nexus');
[~, ~] = mkdir(connectorFolderPath);
url = 'https://raw.githubusercontent.com/nexus-main/nexus/master/src/clients/matlab-client/NexusClient.m';
url = 'https://raw.githubusercontent.com/nexus-main/nexus/master/src/clients/matlab/NexusClient.m';
websave(fullfile(connectorFolderPath, 'NexusClient.m'), url);
addpath(connectorFolderPath)

Expand Down
4 changes: 2 additions & 2 deletions src/Nexus.ClientGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ public static async Task Main(string[] args)

// generate C# client
var csharpGenerator = new CSharpGenerator(settings);
var csharpOutputFolderPath = $"{solutionRoot}src/clients/dotnet-client";
var csharpOutputFolderPath = $"{solutionRoot}src/clients/dotnet";

csharpGenerator.Generate(csharpOutputFolderPath, document);

// generate Python client
var pythonOutputFolderPath = $"{solutionRoot}src/clients/python-client/nexus_api";
var pythonOutputFolderPath = $"{solutionRoot}src/clients/python/nexus_api";
var pythonGenerator = new PythonGenerator(settings);

pythonGenerator.Generate(pythonOutputFolderPath, document);
Expand Down
2 changes: 1 addition & 1 deletion src/Nexus.UI/Nexus.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\clients\dotnet-client\dotnet-client.csproj" />
<ProjectReference Include="..\clients\dotnet\client.csproj" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\clients\dotnet-client\dotnet-client.csproj" />
<ProjectReference Include="..\..\..\src\clients\dotnet\client.csproj" />
</ItemGroup>

</Project>

0 comments on commit 77ac5c5

Please sign in to comment.