-
Notifications
You must be signed in to change notification settings - Fork 16
Packit testing on Fedora #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bkmgit
wants to merge
1
commit into
chapel-lang:main
Choose a base branch
from
bkmgit:packit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+116
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,13 @@ | ||
| # https://packit.dev/docs/configuration/ | ||
|
|
||
| specfile_path: packaging/rpm/fedora/python-sphinxcontrib-chapeldomain.spec | ||
|
|
||
| notifications: | ||
| pull_request: | ||
| successful_build: true | ||
|
|
||
| jobs: | ||
| - job: copr_build | ||
| trigger: pull_request | ||
| targets: | ||
| - fedora-rawhide-x86_64 | ||
78 changes: 78 additions & 0 deletions
78
packaging/rpm/fedora/python-sphinxcontrib-chapeldomain.spec
This file contains hidden or 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,78 @@ | ||
| Name: python-sphinxcontrib-chapeldomain | ||
| Version: 0.0.39 | ||
| Release: %autorelease | ||
| Summary: Chapel domain for Sphinx | ||
|
|
||
| # The entire source is Apache-2.0, except that | ||
| # sphinxcontrib/chapeldomain/README.md is BSD-2-Clause | ||
| # (sphinxcontrib/chapeldomain/LICENSE). | ||
| License: Apache-2.0 AND BSD-2-Clause | ||
| URL: https://github.com/chapel-lang/sphinxcontrib-chapeldomain | ||
| # PyPI source does not have documentation | ||
| Source: %{url}/archive/%{version}/sphinxcontrib-chapeldomain-%{version}.tar.gz | ||
| # Relax pinned dependency requirements | ||
| Patch: relax-dep-requirements.patch | ||
|
|
||
| BuildArch: noarch | ||
| BuildRequires: python3-devel | ||
| # Documentation requirements | ||
| BuildRequires: make | ||
| BuildRequires: python3dist(sphinx) | ||
| BuildRequires: python3dist(sphinx-rtd-theme) | ||
| BuildRequires: python3dist(snowballstemmer) | ||
| BuildRequires: texinfo | ||
| # Test requirements | ||
| BuildRequires: python3dist(pytest) | ||
| # chapel.py is vendored from Pygments; see | ||
| # sphinxcontrib/chapeldomain/README.md for justification | ||
| Provides: bundled(python3dist(pygments)) | ||
|
|
||
| %global _description %{expand: | ||
| Chapel domain for Sphinx.} | ||
|
|
||
| %description %_description | ||
|
|
||
| %package -n python3-sphinxcontrib-chapeldomain | ||
| Summary: %{summary} | ||
|
|
||
| %description -n python3-sphinxcontrib-chapeldomain %_description | ||
|
|
||
|
|
||
| %prep | ||
| %autosetup -p1 -n sphinxcontrib-chapeldomain-%{version} | ||
|
|
||
|
|
||
| %generate_buildrequires | ||
| %pyproject_buildrequires | ||
|
|
||
|
|
||
| %build | ||
| %pyproject_wheel | ||
| pushd docs | ||
| make texinfo | ||
| pushd _build | ||
| pushd texinfo | ||
| makeinfo --docbook ChapelDomain.texi | ||
| popd | ||
| popd | ||
| popd | ||
|
|
||
| %install | ||
| %pyproject_install | ||
| %pyproject_save_files -l sphinxcontrib | ||
| mkdir -p %{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain | ||
| install -p -m644 docs/_build/texinfo/ChapelDomain.xml \ | ||
| %{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain | ||
|
|
||
| %check | ||
| %pyproject_check_import | ||
| %pytest | ||
|
|
||
| %files -n python3-sphinxcontrib-chapeldomain -f %{pyproject_files} | ||
| %{python3_sitelib}/sphinxcontrib_chapeldomain-%{version}-py%{python3_version}-nspkg.pth | ||
| %doc README.rst | ||
| %doc %dir %{_datadir}/help/en | ||
| %doc %lang(en) %{_datadir}/help/en/python-sphinxcontrib-chapeldomain | ||
|
|
||
| %changelog | ||
| %autochangelog |
jabraham17 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,23 @@ | ||
| diff -ruN sphinxcontrib-chapeldomain-0.0.39/requirements.txt sphinxcontrib-chapeldomain-0.0.39-mod/requirements.txt | ||
| --- sphinxcontrib-chapeldomain-0.0.39/requirements.txt 2025-08-11 21:26:12.000000000 +0300 | ||
| +++ sphinxcontrib-chapeldomain-0.0.39-mod/requirements.txt 2025-09-21 09:57:18.461907810 +0300 | ||
| @@ -1,3 +1,3 @@ | ||
| # Note: DON'T UPDATE THIS WITHOUT ALSO UPDATING SETUP.PY | ||
| -docutils==0.21.2 | ||
| -Sphinx==8.1.3 | ||
| +docutils | ||
| +Sphinx | ||
| diff -ruN sphinxcontrib-chapeldomain-0.0.39/setup.py sphinxcontrib-chapeldomain-0.0.39-mod/setup.py | ||
| --- sphinxcontrib-chapeldomain-0.0.39/setup.py 2025-08-11 21:26:12.000000000 +0300 | ||
| +++ sphinxcontrib-chapeldomain-0.0.39-mod/setup.py 2025-09-21 09:57:58.366269630 +0300 | ||
| @@ -42,8 +42,8 @@ | ||
| packages=find_packages(exclude=('test',)), | ||
| include_package_data=True, | ||
| install_requires=[ | ||
| - 'docutils==0.21.2', | ||
| - 'Sphinx==8.1.3', | ||
| + 'docutils', | ||
| + 'Sphinx', | ||
| ], | ||
| namespace_packages=['sphinxcontrib'] | ||
| ) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the .spec missing in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added. The .gitignore file excludes files ending in .spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be reasonable to also adjust the
.gitignoreto allow this spec file. Or maybe add a directory specific.gitignorethat allows.specfiles in this directoryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a directory specific .gitignore