Unverified Commit 81d50c7c authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

autoincrement year in NuGet description (#1948)

parent 19c10824
# coding: utf-8 # coding: utf-8
"""Script for generating files with NuGet package metadata.""" """Script for generating files with NuGet package metadata."""
import datetime
import os import os
import sys import sys
...@@ -37,7 +38,7 @@ if __name__ == "__main__": ...@@ -37,7 +38,7 @@ if __name__ == "__main__":
<projectUrl>https://github.com/Microsoft/LightGBM</projectUrl> <projectUrl>https://github.com/Microsoft/LightGBM</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A fast, distributed, high performance gradient boosting framework</description> <description>A fast, distributed, high performance gradient boosting framework</description>
<copyright>Copyright 2018 @ Microsoft</copyright> <copyright>Copyright %d @ Microsoft</copyright>
<tags>machine-learning data-mining distributed native boosting gbdt</tags> <tags>machine-learning data-mining distributed native boosting gbdt</tags>
<dependencies> </dependencies> <dependencies> </dependencies>
</metadata> </metadata>
...@@ -46,7 +47,7 @@ if __name__ == "__main__": ...@@ -46,7 +47,7 @@ if __name__ == "__main__":
<file src="runtimes\**" target="runtimes"/> <file src="runtimes\**" target="runtimes"/>
</files> </files>
</package> </package>
''' % version ''' % (version, datetime.datetime.now().year)
prop_str = ''' prop_str = '''
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition="Exists('packages.config') OR <ItemGroup Condition="Exists('packages.config') OR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment