Unverified Commit 54403999 authored by Nishit Jain's avatar Nishit Jain Committed by GitHub
Browse files

Migrated to f-strings for .\.nuget\create_nuget.py #4136 (#4162)



* Migrated to f-strings for .\.nuget\create_nuget.py #4136

* Migrate to f-strings for the Python code for  docs/conf.py #4136

* add missing whitespace at ./docs/conf.py:79:14

* Revert "add missing whitespace at ./docs/conf.py:79:14"

This reverts commit 60200849b1a2bd911cc426014ecf1d6e319861b4.

* Revert "Migrate to f-strings for the Python code for  docs/conf.py #4136"

This reverts commit 6f28bd11d530c18d7937588469484499b3ab0862.

* added the requested changes in .nuget/create_nuget.py

* added the requested changes

* Update .nuget/create_nuget.py
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>

* Update .nuget/create_nuget.py
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>

* Update .nuget/create_nuget.py
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
parent 5a678f6a
......@@ -25,18 +25,18 @@ if __name__ == "__main__":
copy_file(os.path.join(source, "lib_lightgbm.dll"), os.path.join(windows_folder_path, "lib_lightgbm.dll"))
copy_file(os.path.join(source, "lightgbm.exe"), os.path.join(windows_folder_path, "lightgbm.exe"))
version = open(os.path.join(current_dir, os.path.pardir, 'VERSION.txt')).read().strip().replace('rc', '-rc')
nuget_str = r"""<?xml version="1.0"?>
nuget_str = rf"""<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>LightGBM</id>
<version>%s</version>
<version>{version}</version>
<authors>Guolin Ke</authors>
<owners>Guolin Ke</owners>
<licenseUrl>https://github.com/microsoft/LightGBM/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/microsoft/LightGBM</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A fast, distributed, high performance gradient boosting framework</description>
<copyright>Copyright %d @ Microsoft</copyright>
<copyright>Copyright {datetime.datetime.now().year} @ Microsoft</copyright>
<tags>machine-learning data-mining distributed native boosting gbdt</tags>
<dependencies> </dependencies>
</metadata>
......@@ -45,7 +45,7 @@ if __name__ == "__main__":
<file src="runtimes\**" target="runtimes"/>
</files>
</package>
""" % (version, datetime.datetime.now().year)
"""
prop_str = r"""
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<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