Skip to content

Commit

Permalink
Merge pull request #70 from coiby/requires
Browse files Browse the repository at this point in the history
Add dependencies in setup.py
  • Loading branch information
nullr0ute authored Oct 18, 2023
2 parents e289fac + 52d12e5 commit 574144a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions python-rpm-head-signing.spec
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Summary: %{summary}

%if %{undefined python_enable_dependency_generator} && %{undefined python_disable_dependency_generator}
# Put manual requires here:
Requires: python%{python3_pkgversion}-cryptography
Requires: python%{python3_pkgversion}-koji
Requires: python%{python3_pkgversion}-six
Requires: python%{python3_pkgversion}-xattr
Expand Down
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
else:
raise Exception("Unsupported RPM version %s" % rpm_version)

requires = [
"cryptography",
"koji",
"six",
"xattr",
"rpm",
]

insertlib = Extension(
"insertlib",
libraries=["rpm", "rpmio"],
Expand All @@ -30,6 +38,7 @@
name="rpm_head_signing",
version="1.7.2",
packages=["rpm_head_signing"],
install_requires=requires,
ext_package="rpm_head_signing",
ext_modules=[insertlib],
entry_points={
Expand Down

0 comments on commit 574144a

Please sign in to comment.