Browse Source

more better comment parsing

pull/629/head
JT 7 months ago
parent
commit
2de9fdcdf6
  1. 2
      CHANGELOG.md
  2. 3
      StabilityMatrix.Core/Python/PipInstallArgs.cs

2
CHANGELOG.md

@ -5,7 +5,7 @@ All notable changes to Stability Matrix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
## v2.something
## v2.10.2
### Fixed
- Fixed more crashes when loading invalid connected model info files
- Fixed pip installs not parsing comments properly

3
StabilityMatrix.Core/Python/PipInstallArgs.cs

@ -30,7 +30,8 @@ public record PipInstallArgs : ProcessArgsBuilder
{
var requirementsEntries = requirements
.SplitLines(StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries)
.Where(s => !s.StartsWith('#'));
.Where(s => !s.StartsWith('#'))
.Select(s => s.Contains('#') ? s.Substring(0, s.IndexOf('#')) : s);
if (excludePattern is not null)
{

Loading…
Cancel
Save