-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create spec files for alternative Python versions (closes #16)
This feature is useful when creating packages for Centos Stream and RHEL which contain multiple Python stacks and make it possible to build packages for them.
- Loading branch information
Showing
9 changed files
with
177 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
%global python3_pkgversion 3.9 | ||
|
||
Name: python3.9-pello | ||
Version: 1.0.4 | ||
Release: %autorelease | ||
Summary: An example Python Hello World package | ||
|
||
# Check if the automatically generated License and its spelling is correct for Fedora | ||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ | ||
License: MIT-0 | ||
URL: https://github.com/fedora-python/Pello | ||
Source: %{pypi_source Pello} | ||
|
||
BuildArch: noarch | ||
BuildRequires: python%{python3_pkgversion}-devel | ||
|
||
|
||
# Fill in the actual package description to submit package to Fedora | ||
%global _description %{expand: | ||
This is package 'Pello' generated automatically by pyp2spec.} | ||
|
||
%description %_description | ||
|
||
|
||
# For official Fedora packages, review which extras should be actually packaged | ||
# See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras | ||
%pyproject_extras_subpkg -n python%{python3_pkgversion}-pello color | ||
|
||
|
||
%prep | ||
%autosetup -p1 -n Pello-%{version} | ||
|
||
|
||
%generate_buildrequires | ||
# Keep only those extras which you actually want to package or use during tests | ||
%pyproject_buildrequires -x color | ||
|
||
|
||
%build | ||
%pyproject_wheel | ||
|
||
|
||
%install | ||
%pyproject_install | ||
# For official Fedora packages, including files with '*' +auto is not allowed | ||
# Replace it with a list of relevant Python modules/globs and list extra files in %%files | ||
%pyproject_save_files '*' +auto | ||
|
||
|
||
%check | ||
%pyproject_check_import | ||
|
||
|
||
%files -n python%{python3_pkgversion}-pello -f %{pyproject_files} | ||
|
||
|
||
%changelog | ||
%autochangelog |
1 change: 1 addition & 0 deletions
1
...p2conf.test_automatically_generated_config_with_alt_python_is_valid[Pello-1.0.4-3.9].json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"http_interactions": [{"request": {"body": {"encoding": "utf-8", "string": ""}, "headers": {"User-Agent": ["python-requests/2.31.0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "Connection": ["keep-alive"]}, "method": "GET", "uri": "https://pypi.org/pypi/Pello/1.0.4/json"}, "response": {"body": {"encoding": "utf-8", "base64_string": "H4sIAAAAAAAC/6VX647cthX+36dg5aLeBXZmdJ2RpogRJ0DiBZJ4YS9QtLuLGUo8mlFWIhWS2vHEMJAX6Bu0P/IsbV8kT9KPkmYvzbZeIzA8Fslz/fidc+j3XiVL5S3fe7yzW6W9pXeumn/+/O+f2Sst//W3imvvZDxbUcOrGhJWNdxMt1oWOP68oWmhGkjl3cZqXlyvOg0p2dX1iVfU3JiqrEgbb3nhfVMVJA2x5ZK9fnvKXratVjck3Prb03P2nWIvrdVV3tlKSXaQPsLZxD+Gi9ctaW4ruWFv98ZSMxhip1JQS/iRFkJnWm00bxon9g2Xm45veo9ne2Qh3V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G07kfLbLFp5M25jPhz34LB2aPIv4EqmIU3HQ1pivP8ba1FbkGfPXhd/8BOKN16YEQAAA="}, "headers": {"Connection": ["keep-alive"], "Content-Length": ["1940"], "Content-Type": ["application/json"], "Access-Control-Allow-Origin": ["*"], "Access-Control-Allow-Headers": ["Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since"], "Access-Control-Allow-Methods": ["GET"], "Access-Control-Max-Age": ["86400"], "Access-Control-Expose-Headers": ["X-PyPI-Last-Serial"], "X-PyPI-Last-Serial": ["18197067"], "Cache-Control": ["max-age=900, public"], "Content-Security-Policy": ["base-uri 'self'; block-all-mixed-content; connect-src 'self' https://api.github.com/repos/ https://api.github.com/search/issues https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com fastly-insights.com *.fastly-insights.com *.ethicalads.io https://api.pwnedpasswords.com https://cdn.jsdelivr.net/npm/[email protected]/es5/sre/mathmaps/ https://2p66nmmycsj3.statuspage.io; default-src 'none'; font-src 'self' fonts.gstatic.com; form-action 'self' https://checkout.stripe.com; frame-ancestors 'none'; frame-src 'none'; img-src 'self' https://pypi-camo.freetls.fastly.net/ https://*.google-analytics.com https://*.googletagmanager.com *.fastly-insights.com *.ethicalads.io ethicalads.blob.core.windows.net; script-src 'self' https://*.googletagmanager.com https://www.google-analytics.com https://ssl.google-analytics.com *.fastly-insights.com *.ethicalads.io 'sha256-U3hKDidudIaxBDEzwGJApJgPEf2mWk6cfMWghrAa6i0=' https://cdn.jsdelivr.net/npm/[email protected]/ 'sha256-1CldwzdEg2k1wTmf7s5RWVd7NMXI/7nxxjJM2C4DqII=' 'sha256-0POaN8stWYQxhzjKS+/eOfbbJ/u4YHO5ZagJvLpMypo='; style-src 'self' fonts.googleapis.com *.ethicalads.io 'sha256-2YHqZokjiizkHi1Zt+6ar0XJ0OeEy/egBnlm+MDMtrM=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-JLEjeN9e5dGsz5475WyRaoA4eQOdNPxDIeUhclnJDCE=' 'sha256-mQyxHEuwZJqpxCw3SLmc4YOySNKXunyu2Oiz1r3/wAE=' 'sha256-OCf+kv5Asiwp++8PIevKBYSgnNLNUZvxAp4a7wMLuKA=' 'sha256-h5LOiLhk6wiJrGsG5ItM0KimwzWQH/yAcmoJDJL//bY='; worker-src *.fastly-insights.com"], "Referrer-Policy": ["origin-when-cross-origin"], "Content-Encoding": ["gzip"], "ETag": ["\"OGQh87C7R7c65QDkessIGQ\""], "Accept-Ranges": ["bytes"], "Date": ["Fri, 05 Apr 2024 10:52:17 GMT"], "X-Served-By": ["cache-iad-kjyo7100113-IAD, cache-fra-eddf8230042-FRA"], "X-Cache": ["HIT, HIT"], "X-Cache-Hits": ["5, 0"], "X-Timer": ["S1712314338.931780,VS0,VE1"], "Vary": ["Accept-Encoding"], "Strict-Transport-Security": ["max-age=31536000; includeSubDomains; preload"], "X-Frame-Options": ["deny"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "X-Permitted-Cross-Domain-Policies": ["none"], "Permissions-Policy": ["publickey-credentials-create=(self),publickey-credentials-get=(self),accelerometer=(),ambient-light-sensor=(),autoplay=(),battery=(),camera=(),display-capture=(),document-domain=(),encrypted-media=(),execution-while-not-rendered=(),execution-while-out-of-viewport=(),fullscreen=(),gamepad=(),geolocation=(),gyroscope=(),hid=(),identity-credentials-get=(),idle-detection=(),local-fonts=(),magnetometer=(),microphone=(),midi=(),otp-credentials=(),payment=(),picture-in-picture=(),screen-wake-lock=(),serial=(),speaker-selection=(),storage-access=(),usb=(),web-share=(),xr-spatial-tracking=()"]}, "status": {"code": 200, "message": "OK"}, "url": "https://pypi.org/pypi/Pello/1.0.4/json"}, "recorded_at": "2024-04-05T10:52:17"}], "recorded_with": "betamax/0.9.0"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
python_alt_version = "3.9" | ||
archful = false | ||
description = "This is package 'Pello' generated automatically by pyp2spec." | ||
summary = "An example Python Hello World package" | ||
version = "1.0.4" | ||
pypi_version = "%{version}" | ||
license = "MIT-0" | ||
pypi_name = "pello" | ||
python_name = "python3.9-pello" | ||
url = "https://github.com/fedora-python/Pello" | ||
source = "%{pypi_source Pello}" | ||
archive_name = "Pello" | ||
extras = [ | ||
"color", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters