-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include core quantities in Atmoos namespace (#83)
- Loading branch information
Showing
138 changed files
with
666 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Publish Library to NuGet | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tag-prefix: | ||
required: true | ||
type: string | ||
project-path: | ||
required: true | ||
type: string | ||
|
||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_NOLOGO: true | ||
DotNetVersion: 8.0.x | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DotNetVersion }} | ||
- uses: tedd/publish-nuget-neo@v1 | ||
with: | ||
NUGET_KEY: ${{secrets.PUSH_NEW_QUANTITY_VERSION}} | ||
PROJECT_FILE_PATH: ${{inputs.project-path}} | ||
TAG_COMMIT: true | ||
TAG_FORMAT: ${{inputs.tag-prefix}}/v* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project> | ||
<!-- Build info common to all projects within the quantities project --> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="$(IsPackable)"> | ||
<InternalsVisibleTo Include="$(AssemblyName).Test" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<Project> | ||
<!-- Packaging info common to all projects within the quantities project --> | ||
|
||
<PropertyGroup> | ||
<Authors>Thomas Kägi</Authors> | ||
<Copyright>Thomas Kägi</Copyright> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/atmoos/Quantities</PackageProjectUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>units, quantities, measures, measurements, unitsofmeasure, units-of-measure, units-of-measurement, conversion, unit-conversion, units-measures-converter</PackageTags> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageReleaseNotes>Please see: https://github.com/atmoos/Quantities/releases</PackageReleaseNotes> | ||
<PackageReadmeFile>readme.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="readme.md" Pack="true" PackagePath="\"/> | ||
<None Include="$(RootDirectory)assets\images\nuget.png" Pack="true" PackagePath="\icon.png"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All"/> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project> | ||
<!-- Test info common to all test projects within the quantities project --> | ||
|
||
<PropertyGroup> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="xunit" Version="2.8.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.0"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector" Version="6.0.2"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
</Project> |
2 changes: 1 addition & 1 deletion
2
source/Quantities.Test/AllocationFreeTest.cs → ...oos.Quantities.Test/AllocationFreeTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Quantities.Test; | ||
namespace Atmoos.Quantities.Test; | ||
|
||
public class AllocationFreeTest | ||
{ | ||
|
10 changes: 10 additions & 0 deletions
10
source/Atmoos.Quantities.Test/Atmoos.Quantities.Test.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="../Atmoos.Quantities.Build.props" /> | ||
<Import Project="../Atmoos.Quantities.Test.props" /> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Atmoos.Quantities\Atmoos.Quantities.csproj" /> | ||
<ProjectReference Include="..\Atmoos.Quantities.TestTools\Atmoos.Quantities.TestTools.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
4 changes: 2 additions & 2 deletions
4
source/Quantities.Test/Convenience.cs → source/Atmoos.Quantities.Test/Convenience.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
source/Quantities.Test/Dim.cs → source/Atmoos.Quantities.Test/Dim.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ies.Test/Dimensions/DimensionUtilities.cs → ...ies.Test/Dimensions/DimensionUtilities.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...Quantities.Test/Dimensions/ProductTest.cs → ...Quantities.Test/Dimensions/ProductTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Quantities.Test/Dimensions/ScalarTest.cs → ....Quantities.Test/Dimensions/ScalarTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ce/Quantities.Test/Dimensions/UnitTest.cs → ...os.Quantities.Test/Dimensions/UnitTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...ties.Test/Infrastructure/ReadmeUpdates.cs → ...ties.Test/Infrastructure/ReadmeUpdates.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
using Atmoos.Sphere.Text; | ||
using Quantities.TestTools; | ||
using Atmoos.Quantities.TestTools; | ||
|
||
using static Atmoos.Sphere.Text.LineTags; | ||
using static Quantities.TestTools.Extensions; | ||
using static Atmoos.Quantities.TestTools.Extensions; | ||
|
||
namespace Quantities.Test.Infrastructure; | ||
namespace Atmoos.Quantities.Test.Infrastructure; | ||
|
||
[Trait(AutoGenerate, Kind.Documentation)] | ||
public class ReadmeUpdates | ||
{ | ||
private static readonly FileInfo readme = RepoDir.FindFile(Path.Combine("source", "Quantities", "readme.md")); | ||
private static readonly FileInfo readme = RepoDir.FindFile(Path.Combine("source", "Atmoos.Quantities", "readme.md")); | ||
|
||
[Fact] | ||
public void ExportAllQuantities() | ||
{ | ||
var tag = Markdown.Code("text quantities"); | ||
var allQuantities = typeof(IQuantity<>).ExportAllImplementations().OrderBy(q => q.Name); | ||
readme.InsertSection(tag, Export.Section("Quantities", allQuantities, String.Empty)); | ||
readme.InsertSection(tag, Export.Section("Atmoos.Quantities", allQuantities, String.Empty)); | ||
} | ||
|
||
[Fact] | ||
public void ExportAllUnits() | ||
{ | ||
var mark = Markdown.Code("text units"); | ||
readme.InsertSection(mark, Export.AllUnits("Units", typeof(Metre).Assembly)); | ||
readme.InsertSection(mark, Export.AllUnits("Atmoos.Quantities.Units", typeof(Metre).Assembly)); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
source/Quantities.Test/Measures/Expect.cs → ...Atmoos.Quantities.Test/Measures/Expect.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...Quantities.Test/Measures/InversionTest.cs → ...Quantities.Test/Measures/InversionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ties.Test/Measures/MeasureDivisionTest.cs → ...ties.Test/Measures/MeasureDivisionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...est/Measures/MeasureMultiplicationTest.cs → ...est/Measures/MeasureMultiplicationTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...Test/Measures/PolynomialConversionTest.cs → ...Test/Measures/PolynomialConversionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
.../Quantities.Test/Measures/QuantityTest.cs → ....Quantities.Test/Measures/QuantityTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...uantities.Test/Numerics/AlgorithmsTest.cs → ...uantities.Test/Numerics/AlgorithmsTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...uantities.Test/Numerics/PolynomialTest.cs → ...uantities.Test/Numerics/PolynomialTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ntities.Test/Prefixes/BinaryPrefixTest.cs → ...ntities.Test/Prefixes/BinaryPrefixTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ities.Test/Prefixes/BinaryPrefixesTest.cs → ...ities.Test/Prefixes/BinaryPrefixesTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ntities.Test/Prefixes/MetricPrefixTest.cs → ...ntities.Test/Prefixes/MetricPrefixTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ities.Test/Prefixes/MetricPrefixesTest.cs → ...ities.Test/Prefixes/MetricPrefixesTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.