Skip to content

Commit d6515ec

Browse files
committed
Merge branch 'packaging/build-env-lock-file' into devel
PR #808
2 parents aa12680 + caa6389 commit d6515ec

6 files changed

Lines changed: 31 additions & 15 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,17 @@ jobs:
308308
FILE_APPEND_MODE = 'a'
309309
310310
whl_file_prj_base_name = '${{ env.PROJECT_NAME }}'.replace('-', '_')
311-
sdist_file_prj_base_name = whl_file_prj_base_name.replace('.', '_')
311+
sdist_file_prj_base_name = (
312+
whl_file_prj_base_name.
313+
replace('.', '_').
314+
lower()
315+
)
312316
313317
with Path(environ['GITHUB_OUTPUT']).open(
314318
mode=FILE_APPEND_MODE,
315319
) as outputs_file:
316320
print(
317-
"sdist=${{ env.PROJECT_NAME }}-${{
321+
f"sdist={sdist_file_prj_base_name}-${{
318322
steps.request-check.outputs.release-requested == 'true'
319323
&& github.event.inputs.release-version
320324
|| steps.scm-version.outputs.dist-version

.packit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ srpm_build_deps: # The presense of `srpm_build_deps` enforces Copr env
8585
sync_changelog: false
8686
# synced_files: []
8787

88-
upstream_package_name: ansible-pylibssh
88+
upstream_package_name: ansible_pylibssh
8989
upstream_project_url: https://github.com/ansible/pylibssh
9090
upstream_tag_template: v{version}
9191

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
The CI/CD/packaging infrastructure has been updated to produce
2+
:external+packaging:term:`source distribution <Source Distribution (or "sdist")>`
3+
file names consistent with the requirement of uploading artifacts
4+
compliant with the core packaging metadata 2.2 or newer to PyPI and
5+
TestPyPI -- by :user:`webknjaz`.
6+
7+
Along with that, the infrastructure has been adjusted to expect
8+
:pep:`625`-conforming names in its guard rails checks.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
808.contrib.rst

packaging/rpm/ansible-pylibssh.spec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
%global pypi_name ansible-pylibssh
1+
%global canonical_project_name ansible-pylibssh
2+
%global pypi_name %canonical_project_name
3+
%global normalized_core_packaging_metadata_project_name %(echo '%canonical_project_name' | sed --regexp-extended 's:-:_:g;s:\\.:_:g')
4+
%global srcname %normalized_core_packaging_metadata_project_name
25

36
# NOTE: The target version may be set dynamically via
47
# NOTE: rpmbuild --define "upstream_version 0.2.1.dev125+g0b5bde0"
5-
%global upstream_version_fallback %(ls -t dist/%{pypi_name}-*.tar.gz 2>/dev/null | head -n 1 | sed 's#^dist\\/%{pypi_name}-\\(.*\\)\\.tar\\.gz$#\\1#')
8+
%global upstream_version_fallback %(ls -t dist/%{normalized_core_packaging_metadata_project_name}-*.tar.gz 2>/dev/null | head -n 1 | sed 's#^dist\\/%{normalized_core_packaging_metadata_project_name}-\\(.*\\)\\.tar\\.gz$#\\1#')
69
# If "upstream_version" macro is unset, use the fallback defined above:
710
%if "%{!?upstream_version:UNSET}" == "UNSET"
811
%global upstream_version %{upstream_version_fallback}
@@ -68,7 +71,7 @@ Summary: %{summary}
6871
$summary
6972

7073
%prep
71-
%autosetup -p1 -n %{pypi_name}-%{version}
74+
%autosetup -p1 -n %{normalized_core_packaging_metadata_project_name}-%{version}
7275

7376
%if 0%{?rhel} == 9
7477
# NOTE: Since RHEL 9 does not have setuptools-scm 7+ in the repos, we change the

requirements-build.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
#
55
# pip-compile --allow-unsafe --output-file=requirements-build.txt --strip-extras -
66
#
7-
cython==3.0.12
7+
cython==3.2.4
88
# via -r -
9-
expandvars==0.9.0
9+
expandvars==1.1.2
1010
# via -r -
11-
packaging==24.0
11+
packaging==26.0
1212
# via setuptools-scm
13-
pyparsing==3.0.9
13+
pyparsing==3.3.2
1414
# via packaging
15-
setuptools-scm==8.1.0
15+
setuptools-scm==8.3.1
1616
# via -r -
17-
tomli==2.0.1
17+
tomli==2.4.0
1818
# via setuptools-scm
19-
typing-extensions==4.10.0
19+
typing-extensions==4.15.0
2020
# via setuptools-scm
21-
wheel==0.37.1
21+
wheel==0.46.3
2222
# via -r -
2323

2424
# The following packages are considered to be unsafe in a requirements file:
25-
setuptools==68.2.2
25+
setuptools==82.0.0
2626
# via
2727
# -r -
2828
# setuptools-scm

0 commit comments

Comments
 (0)