-
Notifications
You must be signed in to change notification settings - Fork 19
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
1.7.0 published tarball does not include requirements.txt #47
Comments
hi, how are you installing it? I just tried pip install embedding-reader and it seems to work |
Right -- installing from the wheel is fine, installing from the source tarball is not. (I'm using poetry2nix, which prefers the source tarball by default). |
...that said, the problem can be reproduced with pip if you force it to use the tarball; note
|
To propose a fix: diff --git a/setup.py b/setup.py
index 4708b4a..d3a2492 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ if __name__ == "__main__":
author="Romain Beaumont",
author_email="[email protected]",
url="https://github.com/rom1504/embedding-reader",
- data_files=[(".", ["README.md"])],
+ data_files=[(".", ["README.md", "requirements.txt"])],
keywords=["machine learning"],
install_requires=REQUIREMENTS,
classifiers=[ |
Strike that, actually; having the |
Better: diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..b2672cc
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1 @@
+include README.md requirements.txt
diff --git a/setup.py b/setup.py
index 4708b4a..1bdbadf 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,6 @@ if __name__ == "__main__":
author="Romain Beaumont",
author_email="[email protected]",
url="https://github.com/rom1504/embedding-reader",
- data_files=[(".", ["README.md"])],
keywords=["machine learning"],
install_requires=REQUIREMENTS,
classifiers=[ |
Fixes rom1504#47. - `requirements.txt` being missing from the source tarball meant that this package was only possible to install from the wheel, not from the sdist; one can reproduce the problem by using `--no-binary :all:` as an argument to `pip`. - Adding `README.md` to `data_files` meant that it was installed into site-packages instead of only being added to the source tarball; being at the root, it conflicted with any _other_ Python package trying to install a README.md when using a package manager that tracks such conflicts.
The file https://files.pythonhosted.org/packages/source/e/embedding-reader/embedding_reader-1.7.0.tar.gz with sha256 ff07f7a3534860e69af9b585031bbd1b992e2b4105a47b7f9b471d68acd1bffb does not include a
requirements.txt
file, but itssetup.py
tries to read one:The text was updated successfully, but these errors were encountered: