hey guys, we're getting hit by the seqeval issue (...
# general
b
hey guys, we're getting hit by the seqeval issue (specifically,
generate-lockfiles
fail with
No distribution metadata found for seqeval==1.2.2
). I've found a couple of matches while searching through the channel's history but it did not look like there was a definitive fix. Does anyone have any idea where I can look for one?
alright, the solution I found for this is: Generate a fixed wheel for seqeval Get a copy of the project:
Copy code
$ git clone <https://github.com/chakki-works/seqeval.git>
$ cd seqeval
Apply this patch:
Copy code
diff --git a/setup.py b/setup.py
index bd36f8f..954f353 100644
--- a/setup.py
+++ b/setup.py
@@ -26,11 +26,12 @@ required = ['numpy>=1.14.0', 'scikit-learn>=0.21.3']
 
 setup(
     name=NAME,
-    use_scm_version=True,
-    setup_requires=['setuptools_scm'],
-    description=DESCRIPTION,
-    long_description=long_description,
-    long_description_content_type='text/markdown',
+    version="1.2.4",
+    # use_scm_version=True,
+    # setup_requires=['setuptools_scm'],
+    #description=DESCRIPTION,
+    #long_description=long_description,
+    #long_description_content_type='text/markdown',
     author=AUTHOR,
     author_email=EMAIL,
     url=URL,
Generate the wheel:
Copy code
$ python setup.py bdist_wheel
Internalize and rely on this wheel In `pants.toml`:
Copy code
[python-repos]
find_links = ["file://%(buildroot)s/3rdparty/python/wheels"]
In `3rdparty/python/requirements-foo.txt`:
Copy code
seqeval==1.2.2
Grab your wheel file:
Copy code
$ cp ../seqeval/dist/seqeval-1.2.2-py3-none-any.whl 3rdparty/python/wheels