Skip to content

Commit

Permalink
add patch for handling requirements.txt that doesn't make it to SRC_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Apr 9, 2021
1 parent 331aad4 commit 9ade57a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/pyserini/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ package:
source:
url: https://pypi.io/packages/source/p/pyserini/pyserini-{{ version }}.tar.gz
sha256: 4ff93e607f570f0643321cb073aa571ee298a7eec20b21c4e13812e16a75a65b
patches:
- patches/0001-remove-requirements.txt-handling-from-setup.py.patch

build:
# noarch: python
Expand All @@ -19,6 +21,7 @@ requirements:
host:
- python
- pip
- setuptools
- openjdk >=11
run:
- python
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 4e82093ed5a4c1fcc63a97eb8523f6ef8162a4c0 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Fri, 9 Apr 2021 02:21:41 +0200
Subject: [PATCH] remove requirements.txt handling from setup.py

---
setup.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/setup.py b/setup.py
index 8eb4d96..4cfd93b 100644
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,6 @@ import setuptools
with open("project-description.md", "r") as fh:
long_description = fh.read()

-with open('requirements.txt') as f:
- requirements = f.read().splitlines()
-
setuptools.setup(
name="pyserini",
version="0.11.0.0",
@@ -18,7 +15,7 @@ setuptools.setup(
"resources/jars/anserini-0.11.0-fatjar.jar",
]},
url="https://github.com/castorini/pyserini",
- install_requires=requirements,
+ install_requires=[],
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
--
2.29.2.windows.3

0 comments on commit 9ade57a

Please sign in to comment.