Skip to content

Commit c327ca0

Browse files
committed
Remove redundant experimental version checking code.
1 parent 2f335ee commit c327ca0

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

repo_helper/configuration/python_versions_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class python_versions(ConfigVar): # noqa
129129

130130
@staticmethod
131131
def _is_experimental(version: str):
132-
if version in {"pypy37", "pypy38", "pypy39"}:
132+
if version in {"pypy37", "pypy38", "pypy39", "pypy3.7", "pypy3.8", "pypy3.9"}:
133133
return True
134134

135135
try:

repo_helper/files/ci_cd.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,6 @@ def get_gh_actions_matrix(self) -> Dict[str, Tuple[str, bool]]:
225225

226226
return output
227227

228-
@staticmethod
229-
def _is_experimental(version: str):
230-
if version in {"pypy-3.7", "pypy-3.8", "pypy-3.9"}:
231-
return True
232-
233-
try:
234-
return Version(version).is_prerelease
235-
except InvalidVersion:
236-
return False
237-
238228
def make_windows(self) -> PathPlus:
239229
"""
240230
Create, update or remove the Windows action, as appropriate.
@@ -253,7 +243,6 @@ def make_windows(self) -> PathPlus:
253243
dependency_lines=self.get_windows_ci_requirements(),
254244
gh_actions_versions=self.get_gh_actions_matrix(),
255245
code_file_filter=self._code_file_filter,
256-
is_experimental=self._is_experimental
257246
)
258247
)
259248
elif ci_file.is_file():
@@ -279,7 +268,6 @@ def make_macos(self) -> PathPlus:
279268
dependency_lines=self.get_macos_ci_requirements(),
280269
gh_actions_versions=self.get_gh_actions_matrix(),
281270
code_file_filter=self._code_file_filter,
282-
is_experimental=self._is_experimental
283271
)
284272
)
285273
elif ci_file.is_file():
@@ -314,7 +302,6 @@ def make_linux(self) -> PathPlus:
314302
gh_actions_versions=self.get_gh_actions_matrix(),
315303
code_file_filter=self._code_file_filter,
316304
run_on_tags=" tags:\n - '*'",
317-
is_experimental=self._is_experimental,
318305
conda_pip_dependencies=conda_pip_dependencies,
319306
)
320307
)

0 commit comments

Comments
 (0)