Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Fix checking python version
Browse files Browse the repository at this point in the history
  • Loading branch information
meanmail committed May 11, 2021
1 parent a0b3bae commit dd197eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions ChangeNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2021.4.1 (May, 11, 2021)

* Fix checking python version

## 2021.4 (May, 3, 2021)

+ Support additional pypi repositories
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.parallel=true
# Plugin
repository=https://github.com/meanmail/requirements
pluginName=requirements
version=2021.4
version=2021.4.1
postfix=211
# IDE
eap=true
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/ru/meanmail/pypi/PyPi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fun getPackageInfo(packageName: String): PackageInfo? {
return packageInfo
}

val PYTHON_VERSION_PATTERN = "Python (.*)".toRegex()
val PYTHON_VERSION_PATTERN = "Python ([\\d.]+).*".toRegex()

fun getPythonVersion(project: Project): String? {
val sdk = getSdk(project) ?: return null
Expand Down

0 comments on commit dd197eb

Please sign in to comment.