Skip to content

Commit 570708b

Browse files
Merge branch 'master' into v2.3.0-readme
2 parents bd024fb + ea6301c commit 570708b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+335
-320
lines changed

PublishingRelease.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Publishing a Release
2+
3+
## Preparing for the Release
4+
5+
* Make all changes for the release on `master` (except for the readme).
6+
* Have a `vX.Y.Z-readme` branch ready with the readme for the next version.
7+
* Prepare a branch in the docs repo with updated docs for the new version and verify the doc
8+
comments for the new version.
9+
10+
## Steps to Publish Release
11+
12+
1. Create an *annotated* tag of the version number being published prefixed with "v". The tag description should match the tag name.
13+
2. Wait for the build of that tag to complete in Appveyor.
14+
3. Download the nupkg and snupkg files from the assets tab of Appveyor.
15+
4. Upload those to NuGet with the new readme from the readme branch.
16+
* Remove the build and NuGet status from the top of the readme before putting it in NuGet.
17+
18+
## After Publishing a Release
19+
20+
These steps only need to be done for a non-prerelease version.
21+
22+
1. Create a release from the tag on github.
23+
* Write up the changes in that version.
24+
* Attach the nupkg and snupkg files to the release in github.
25+
2. Merge the `vX.Y.Z-readme` branch into `master`.
26+
3. Create a new `vX.Y.Z-readme` branch for the next version.
27+
4. Mark the milestone, and any included issues, done with the current date.
28+
5. Update the `PublicAPI` files to reflect the newly published APIs
29+
6. Update the benchmark to reference the new version as the previous version.

Semver.Benchmarks/Semver.Benchmarks.csproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,25 @@
2020
<Compile Include="..\Semver\*.cs">
2121
<Link>LocalVersion\%(RecursiveDir)%(FileName)%(Extension)</Link>
2222
</Compile>
23-
<Compile Include="..\Semver\Utility\*.cs">
23+
<Compile Include="..\Semver\Utility\**\*.cs">
2424
<Link>LocalVersion\%(RecursiveDir)\Utility\%(FileName)%(Extension)</Link>
2525
</Compile>
26-
<Compile Include="..\Semver\Comparers\*.cs">
26+
<Compile Include="..\Semver\Comparers\**\*.cs">
2727
<Link>LocalVersion\%(RecursiveDir)\Comparers\%(FileName)%(Extension)</Link>
2828
</Compile>
29+
<Compile Include="..\Semver\Parsing\**\*.cs">
30+
<Link>LocalVersion\Ranges\%(RecursiveDir)%(FileName)%(Extension)</Link>
31+
</Compile>
2932
<Compile Include="..\Semver\Ranges\**\*.cs">
3033
<Link>LocalVersion\Ranges\%(RecursiveDir)%(FileName)%(Extension)</Link>
3134
</Compile>
3235
</ItemGroup>
3336

3437
<ItemGroup>
38+
<Compile Remove="..\Semver\LeftBoundedRange.cs" />
3539
<Compile Remove="..\Semver\Ranges\Npm\NpmComparator.cs" />
40+
<Compile Remove="..\Semver\RightBoundedRange.cs" />
41+
<Compile Remove="..\Semver\SemVersionParser.cs" />
42+
<Compile Remove="..\Semver\SemVersionParsingOptions.cs" />
3643
</ItemGroup>
3744
</Project>

Semver.Test/Builders/NpmRangeParsingTestCaseBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using Semver.Ranges;
32
using Semver.Test.Helpers;
43
using Semver.Test.TestCases;
54

Semver.Test/Builders/UnbrokenSemVersionRangeBuilder.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Semver.Ranges;
2-
3-
namespace Semver.Test.Builders
1+
namespace Semver.Test.Builders
42
{
53
public static class UnbrokenSemVersionRangeBuilder
64
{

Semver.Test/Comparers/UnbrokenSemVersionRangeComparerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Semver.Comparers;
2-
using Semver.Ranges;
32
using Xunit;
43

54
namespace Semver.Test.Comparers

Semver.Test/Ranges/Parsers/GeneralRangeParserTests.cs renamed to Semver.Test/Parsing/GeneralRangeParserTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
using Semver.Ranges;
2-
using Semver.Ranges.Parsers;
1+
using Semver.Parsing;
32
using Xunit;
4-
using static Semver.Ranges.SemVersionRangeOptions;
3+
using static Semver.SemVersionRangeOptions;
54

6-
namespace Semver.Test.Ranges.Parsers
5+
namespace Semver.Test.Parsing
76
{
87
public class GeneralRangeParserTests
98
{

Semver.Test/ReadmeTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Semver.Ranges;
2-
using Xunit;
1+
using Xunit;
32
using Xunit.Abstractions;
43

54
namespace Semver.Test
@@ -49,14 +48,14 @@ public void ReadmeRuns()
4948
var prereleaseRange = SemVersionRange.ParseNpm("^1.0.0", includeAllPrerelease: true);
5049
console.WriteLine($"Range: {range}");
5150
console.WriteLine($"Prerelease range: {prereleaseRange}");
52-
console.WriteLine($"Range includes version: {range.Contains(version)}");
51+
console.WriteLine($"Range includes version {version}: {range.Contains(version)}");
5352
console.WriteLine($"Prerelease range includes version: {prereleaseRange.Contains(version)}");
5453

5554
// Alternative: another way to call SemVersionRange.Contains(version)
5655
Assert.False(version.Satisfies(range));
5756

5857
// Alternative: slower because it parses the range on every call
59-
Assert.True(version.Satisfies("^1.0.0", SemVersionRangeOptions.IncludeAllPrerelease));
58+
Assert.True(version.SatisfiesNpm("^1.0.0", includeAllPrerelease: true));
6059
}
6160
}
6261
}

Semver.Test/Ranges/SemVersionRangeNpmParsingTests.cs renamed to Semver.Test/SemVersionRangeNpmParsingTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
using System;
2-
using Semver.Ranges;
32
using Semver.Test.Helpers;
43
using Semver.Test.TestCases;
54
using Xunit;
65
using static Semver.Test.Builders.NpmRangeParsingTestCaseBuilder;
76
using static Semver.Test.Builders.UnbrokenSemVersionRangeBuilder;
87

9-
namespace Semver.Test.Ranges
8+
namespace Semver.Test
109
{
1110
public class SemVersionRangeNpmParsingTests
1211
{

Semver.Test/Ranges/SemVersionRangeStandardParsingTests.cs renamed to Semver.Test/SemVersionRangeStandardParsingTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
using System;
2-
using Semver.Ranges;
32
using Semver.Test.Helpers;
43
using Semver.Test.TestCases;
54
using Xunit;
6-
using static Semver.Ranges.SemVersionRangeOptions;
5+
using static Semver.SemVersionRangeOptions;
76
using static Semver.Test.Builders.UnbrokenSemVersionRangeBuilder;
87

9-
namespace Semver.Test.Ranges
8+
namespace Semver.Test
109
{
1110
public class SemVersionRangeStandardParsingTests
1211
{

Semver.Test/Ranges/SemVersionRangeStandardParsingToStringTests.cs renamed to Semver.Test/SemVersionRangeStandardParsingToStringTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
using Semver.Ranges;
2-
using Semver.Test.TestCases;
1+
using Semver.Test.TestCases;
32
using Xunit;
4-
using static Semver.Ranges.SemVersionRangeOptions;
3+
using static Semver.SemVersionRangeOptions;
54

6-
namespace Semver.Test.Ranges
5+
namespace Semver.Test
76
{
87
/// <summary>
98
/// It was difficult to ensure that the <see cref="SemVersionRange.ToString"/> would output

0 commit comments

Comments
 (0)