Skip to content

Commit

Permalink
fix ci release
Browse files Browse the repository at this point in the history
  • Loading branch information
ydkn committed Feb 21, 2024
1 parent f8a97c2 commit f4628a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
fail-fast: true
matrix:
dotnetversion:
- 3.1.301
- "7.0.116"
goversion:
- 1.21.x
language:
Expand All @@ -155,6 +155,6 @@ jobs:
- dotnet
- go
nodeversion:
- 18.x
- 20.x
pythonversion:
- "3.11"
4 changes: 2 additions & 2 deletions sdk/python/pulumi_k0s/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@


import asyncio
import importlib.metadata
import importlib.util
import inspect
import json
import os
import pkg_resources
import sys
import typing

Expand Down Expand Up @@ -72,7 +72,7 @@ def _get_semver_version():
# to receive a valid semver string when receiving requests from the language host, so it's our
# responsibility as the library to convert our own PEP440 version into a valid semver string.

pep440_version_string = pkg_resources.require(root_package)[0].version
pep440_version_string = importlib.metadata.version(root_package)
pep440_version = PEP440Version.parse(pep440_version_string)
(major, minor, patch) = pep440_version.release
prerelease = None
Expand Down
5 changes: 3 additions & 2 deletions sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import errno
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
from subprocess import check_call


VERSION = "0.0.0"
VERSION = os.getenv("PULUMI_PYTHON_VERSION", "0.0.0")
def readme():
try:
with open('README.md', encoding='utf-8') as f:
Expand All @@ -18,7 +19,7 @@ def readme():


setup(name='pulumi_k0s',
python_requires='>=3.7',
python_requires='>=3.8',
version=VERSION,
description="A Pulumi package for creating and managing k0s clusters.",
long_description=readme(),
Expand Down

0 comments on commit f4628a5

Please sign in to comment.