Closed hoh closed 2 years ago
/usr/local/lib/python3.9/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
I guess we should use Pipfile
.
@mrhouzlane can you manage this?
Pipfile would be great for development and containerized usage, but we may have to support other library versions based on what is distributed with supported Linux distributions and homebrew.
We should have only one way to define dependencies, either setup.cfg or Pipfile.
Pipefile is now working with python_version = "3.10" with all necessary packages but it is for development only. Pipefile update packages
As I heard, setup.py does some stuff for us to upload the package to PyPI. Just to collect resources, here's some more info on packaging for PyPI: https://packaging.python.org/en/latest/tutorials/packaging-projects/
We use setup.cfg on all our projects. I have never used pipfile, but it seems to me like a classical case of "it ain't broke don't fix it". setup.cfg all the way for me.
Packaging for Python has many options, including:
setup.py
or setup.cfg
: The old and simple way to manage library build, setup and installation.pyproject.toml
: The new recommended way with a better approach to dependency management [1]Pipfile and Poetry are great to manage dependencies, upgrade them, freeze them, etc. This is very useful when building web apps so everyone in the team uses the same version. They could be useful for pyaleph.
However aleph-client is a library. We want users to be able to just pip install
it from GitHub. Dependencies must be flexible so users can integrate it within their project.
Pipfile and Pipfile.lock were added to aleph-client before I started working on the project and are not actively used. I propose to remove them from this project.
We do not use actively use the
Pipfile
andPipfile.lock
files at the moment, we usesetup.cfg
instead.We should have only one way to define dependencies, either
setup.cfg
orPipfile
.Originally posted by @hoh in https://github.com/aleph-im/aleph-client/issues/72#issuecomment-1202375613