Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Creating a 🐍📦 with an entry point #144

Open
dpshelio opened this issue Nov 26, 2020 · 0 comments
Open

Creating a 🐍📦 with an entry point #144

dpshelio opened this issue Nov 26, 2020 · 0 comments
Labels

Comments

@dpshelio
Copy link
Member

dpshelio commented Nov 26, 2020

Help Charlene to have a command she can run from anywhere adding an entry point.

  1. Choose who in your team is sharing now! (make sure you've pulled from your colleague's fork!)

  2. Move the if __name__ == "__main__": block to its own file (e.g., command.py) and add it as entry point to setup.py

  3. Add the dependencies of this library as requirements to setup.py.

  4. Try to install it by running pip install -e . where the setup.py is.

  5. Go to a different directory, run python -c "import sagital_average" and see whether the installation worked.

  6. Share your solution as a pull request to Charlene's repository mentioning this issue (by including the text Addresses UCL-RITS/rse-classwork-2020#144 in the pull request description), remember to mention your team members too! (with @github_username)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants