lexixu19 / Duplexity

https://duplexity.readthedocs.io/en/latest/
0 stars 0 forks source link

Make pip installable #1

Open emily-bodekerscientific opened 3 months ago

emily-bodekerscientific commented 3 months ago

Following these instructions https://packaging.python.org/en/latest/tutorials/packaging-projects/

emily-bodekerscientific commented 3 months ago

First version of this it to make things locally installable, which was done with this commit: https://github.com/lexixu19/Duplexity/commit/84097c867dc3c5312c8712e10287edad057ed7f8

Instructions were added to the README on how to install locally with this commit: https://github.com/lexixu19/Duplexity/commit/b32a4c68b53e0510c31a4e548bb120043a1de6e0

Will leave this issue open until we upload to PyPI, but this may be a little while yet while we continue developing and polishing the repo.

emily-bodekerscientific commented 3 months ago

Note to self: the pip install -e . command will soon be deprecated when used with a setup.py file (see https://github.com/pypa/pip/issues/11457) This is being considered on the branch toml_pip_installation, need to chat with Lexi about it. Look at https://medium.com/@codebyteexplorer/build-your-first-python-package-with-pyproject-toml-19e2119edbca for further help.

emily-bodekerscientific commented 3 months ago

https://github.com/lexixu19/Duplexity/commit/a64b7f7c70cdf70e814ddaff3be2744f90c91d22

This commit has deleted the setup.py file and created a pyproject.toml file. Seems to be working (although required me to conda install pipinto my new environment before running pip install -e ., which I don't think I had to do when I had the setup.py file).