File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 Package :
5050 name : 📦 Package in Source and Wheel Format
5151 runs-on : " ubuntu-${{ inputs.ubuntu_image_version }}"
52-
52+ env :
53+ artifact : ${{ inputs.artifact }}
5354 steps :
5455 - name : ⏬ Checkout repository
5556 uses : actions/checkout@v5
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ jobs:
251251 from typing import Iterable
252252
253253 python_version = "${{ steps.variables.outputs.python_version }}"
254- name = "${{ steps.artifacts .outputs.artifact_base }}"
254+ name = "${{ steps.variables .outputs.artifact_basename }}"
255255 systems = "${{ inputs.system_list }}".strip()
256256 versions = "${{ inputs.python_version_list }}".strip()
257257 include_list = "${{ inputs.include_list }}".strip()
Original file line number Diff line number Diff line change 2828# SPDX-License-Identifier: Apache-2.0 #
2929# ==================================================================================================================== #
3030#
31- """Package installer for 'myPackage'."""
31+ """Package installer for 'myPackage' or 'myFramework.Extension'."""
32+ from os import environ
33+ from pathlib import Path
3234from setuptools import setup
3335
34- from pathlib import Path
3536from pyTooling .Packaging import DescribePythonPackageHostedOnGitHub
3637
3738gitHubNamespace = "pyTooling"
38- packageName = "myPackage"
39- packageDirectory = packageName
39+ packageName = "myPackage" if "." not in environ [ "artifact" ] else "myFramework.Extension"
40+ packageDirectory = packageName . replace ( "." , "/" )
4041packageInformationFile = Path (f"{ packageDirectory } /__init__.py" )
4142
4243setup (
4344 ** DescribePythonPackageHostedOnGitHub (
4445 packageName = packageName ,
45- description = "myPackage is a test package to verify GitHub actions for Python projects." ,
46+ description = f" { packageName } is a test package to verify GitHub actions for Python projects." ,
4647 gitHubNamespace = gitHubNamespace ,
4748 unittestRequirementsFile = Path ("tests/unit/requirements.txt" ),
4849 sourceFileWithVersion = packageInformationFile ,
You can’t perform that action at this time.
0 commit comments