Skip to content

Commit

Permalink
PYTHON-4373 Use requirements files for deps (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Apr 19, 2024
1 parent 6d35638 commit 5f07ba6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include README.rst
include LICENSE
include ez_setup.py
include requirements.txt
recursive-include doc *.bat
recursive-include doc *.py
recursive-include doc *.rst
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# No external dependencies
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,19 @@
extra_link_args = ["-lcrypt32", "-lsecur32", "-lshlwapi"]


def parse_reqs_file(fname):
with open(fname) as fid: # noqa:PTH123
lines = [li.strip() for li in fid.readlines()]
return [li for li in lines if li and not li.startswith("#")]


setup(
install_requires=parse_reqs_file("requirements.txt"),
ext_modules=[
Extension(
"winkerberos",
extra_link_args=extra_link_args,
sources=["src/winkerberos.c", "src/kerberos_sspi.c"],
)
]
],
)

0 comments on commit 5f07ba6

Please sign in to comment.