Merge pull request #398 from vmuriart/bumpversion · pythonnet/pythonnet@909b7c0 · GitHub
Skip to content

Commit 909b7c0

Browse files
authored
Merge pull request #398 from vmuriart/bumpversion
Add bumpversion & fix version numbers in code.
2 parents 02a8a34 + 5a7d297 commit 909b7c0

15 files changed

Lines changed: 114 additions & 75 deletions

File tree

.bumpversion.cfg

Lines changed: 29 additions & 0 deletions

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ indent_size = 2
2222
# Solution
2323
[*.sln]
2424
indent_style = tab
25+
26+
# bumpversion reformats itself after every bump
27+
[.bumpversion.cfg]
28+
trim_trailing_whitespace = false
29+
indent_style = tab

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: pythonnet
3-
version: {{ environ.get('GIT_DESCRIBE_TAG', '').replace('-dev', '.dev') }}
3+
version: "2.3.0.dev1"
44

55
build:
66
skip: True # [not win]

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
# [bumpversion] comments. bumpversion deleted all comments on its file.
12
# Don't combine `.bumpversion.cfg` with `setup.cfg`. Messes up formatting.
3+
# Don't use `first_value = 1`. It will break `release` bump
4+
# Keep `optional = dummy` needed to bump to release.
5+
# See: https://github.com/peritus/bumpversion/issues/59
26

37
[tool:pytest]
48
xfail_strict = True

src/SharedAssemblyInfo.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Reflection;
3+
using System.Resources;
4+
using System.Runtime.InteropServices;
5+
6+
// General Information about an assembly is controlled through the following
7+
// set of attributes. Change these attribute values to modify the information
8+
// associated with an assembly.
9+
[assembly: AssemblyConfiguration("")]
10+
[assembly: AssemblyCompany("pythonnet")]
11+
[assembly: AssemblyProduct("Python for .NET")]
12+
[assembly: AssemblyCopyright("Copyright (c) 2006-2017 the contributors of the 'Python for .NET' project")]
13+
[assembly: AssemblyTrademark("")]
14+
15+
[assembly: AssemblyCulture("")]
16+
[assembly: NeutralResourcesLanguage("")]
17+
18+
[assembly: CLSCompliant(true)]
19+
20+
// Setting ComVisible to false makes the types in this assembly not visible
21+
// to COM components. If you need to access a type in this assembly from
22+
// COM, set the ComVisible attribute to true on that type.
23+
[assembly: ComVisible(false)]
24+
25+
// Version Information. Keeping it simple. May need to revisit for Nuget
26+
// See: https://codingforsmarties.wordpress.com/2016/01/21/how-to-version-assemblies-destined-for-nuget/
27+
// AssemblyVersion can only be numeric
28+
[assembly: AssemblyVersion("2.3.0")]

src/clrmodule/AssemblyInfo.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/clrmodule/ClrModule.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public static void initclr()
5252
var pythonRuntimeName = new AssemblyName("Python.Runtime")
5353
{
5454
#if USE_PYTHON_RUNTIME_VERSION
55-
Version = new Version("4.0.0.1"),
55+
// Has no effect until SNK works. Keep updated anyways.
56+
Version = new Version("2.3.0"),
5657
#endif
5758
CultureInfo = CultureInfo.InvariantCulture
5859
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Reflection;
2+
using System.Runtime.InteropServices;
3+
4+
// General Information about an assembly is controlled through the following
5+
// set of attributes. Change these attribute values to modify the information
6+
// associated with an assembly.
7+
[assembly: AssemblyTitle("clrmodule")]
8+
[assembly: AssemblyDescription("")]
9+
10+
// The following GUID is for the ID of the typelib if this project is exposed to COM
11+
[assembly: Guid("ae10d6a4-55c2-482f-9716-9988e6c169e3")]

src/clrmodule/clrmodule.csproj

Lines changed: 5 additions & 1 deletion

src/console/AssemblyInfo.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)