Skip to content
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

Updating the setup file for packaging #38

Merged
merged 2 commits into from Jun 18, 2020
Merged

Updating the setup file for packaging #38

merged 2 commits into from Jun 18, 2020

Conversation

darshshah
Copy link
Contributor

  • Added LICENSE.txt from parent dir
  • Created MANIFEST.in to include license and readme
  • Updated setup.py to add additional information

@darshshah darshshah requested a review from balikasg June 15, 2020 20:19
@darshshah
Copy link
Contributor Author

Created a whl distribution that can be uploaded to pypi:
$ python3 setup.py sdist bdist_wheel
....
This creates dist:
dist/

  • ml4ir-0.0.1-py3-none-any.whl
  • ml4ir-0.0.1.tar.gz

Checked the distribution with Twine:

$ twine check dist/*
Checking dist/ml4ir-0.0.1-py3-none-any.whl: PASSED
Checking dist/ml4ir-0.0.1.tar.gz: PASSED

data_files=[("ml4ir/build", ["ml4ir/build/Dockerfile"])],
author_email="searchrelevancyscrumteam@salesforce.com",
url="https://www.salesforce.com/",
classifiers=[
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you following a tutorial? Have you done this in the past?
Looks good to me, but I have not release at pip

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -11,10 +11,10 @@
ml4ir can be installed as a pip package by using the following command
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good to me. I am approving. I tested with pip install ml4ir, things work!
A personal comment here (feel free to ignore it):

  • Consider removing entirely "ml4ir can be installed as a pip package by using the following command" and "This will install ml4ir-0.0.1 (the current version) from PyPI" as they don't add something (since you touched this place of the README)
  • Consider adding a sentence below "# ml4ir: Machine Learning Library for Information Retrieval" that says what the package does, like "State-of-the-art implementations of Ranking algorithms based on Tensorflow. Uses tfrecords to optimize for speed and memory. It scales to industry-size datasets out of the box! " Something like this. There is no hint what ml4ir does, until the line 105 where I see ranking.

I consider this important in open source. We have only one chance to make a user try it. If you feel this is out of the scope of the story (perhaps you are right), ignore it, I will add a separate story on this.

cc: @lastmansleeping @jakemannix we are now online!!!
We should make some effort to clearly communicate what we do well!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we can add this when we do 0.0.2 release.

"Programming Language :: Python :: 3 :: Only"
],
include_package_data=True,
data_files=[("ml4ir/build", ["ml4ir/build/Dockerfile", "ml4ir/build/run_driver.sh"])],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add the docker-compose.yml here? Or doing pip install is mutually exclusive with docher-compose up. In general, after doing pip install I am not able to run the scripts shown in the remaining of the README. Which makes sense, because the paths indicated there are obsolete. We need to fix this I guess. Disclaimer: I am a docker beginner, I need to learn more about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I understand, to use docker we need to git clone the repo and not pip install. @lastmansleeping might have more insights into this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is a need to add docker-compose.yml to setup. We can also pull the Dockerfile now from the virtualenv/pythonpath because we have made sure to add it to the pip installable ml4ir package. So it should be good.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thanks!

@darshshah darshshah merged commit 26ebe63 into master Jun 18, 2020
@darshshah darshshah deleted the upload-pypi branch September 29, 2020 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants