-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
biogeme: deprecate as of oct 2018 #54717
Conversation
I'd say we should switch to the pypy package then. |
Dear Paul,
Thank you for your message. Yes, it is OK to label it “deprecated”.
I have no idea if users still use the old version. But they are encouraged to use the new one anyway.
Best regards,
Michel
… On 15 May 2020, at 04:42, Amar Paul ***@***.***> wrote:
Have you followed the guidelines for contributing <https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md>?
Have you checked that there aren't other open pull requests <https://github.com/Homebrew/homebrew-core/pulls> for the same formula update/change?
Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?
According to biogeme's homepage <http://biogeme.epfl.ch/>, the command-line pythonbiogeme has been deprecated since late 2018. The new project, PandasBiogeme, is purely a pip package and is hosted on PyPI (release history <https://pypi.org/project/biogeme/#history>).
From the homepage:
PythonBiogeme
Around 2010, a more flexible version was designed for general purpose parametric models.
The modeling language was extended, and based on the Python language.
A series of discrete choice models were precoded for an easy use.
Also written in GNU C++, it is distributed on the homebrew package manager.
The distributions can be found here.
PandasBiogeme
In 2018, a completely new version of the software was released.
It was not anymore a standalone executable, but a Python package.
The package is written in Python, with the exception of the core calculations of the models, that are written in C++ for the sake of efficiency.
The motivation was to combine the simplicity of the usage (especially for teaching purposes), with the sophistication provided by Python (for research and applications purposes).
Morever, the management of the data relies on the package Pandas, which has become the workhorse of data scientists.
Therefore, the name PandasBiogeme has been adopted.
It is distributed on the Python Package Index repository.
Tagging @michelbierlaire <https://github.com/michelbierlaire> - user account that first introduced biogeme package. Is it ok to deprecate this from homebrew? Are most user-installs now focused on the PyPI-distributed PandasBiogeme rather than the command-line tool, or is PythonBiogeme still being used?
https://formulae.brew.sh/formula/biogeme#default <https://formulae.brew.sh/formula/biogeme#default>
This is one of the formulae remaining before the python3.8 switch - #47274 <#47274>
You can view, comment on, or merge this pull request online at:
#54717 <#54717>
Commit Summary
biogeme: deprecate as of oct 2018
File Changes
M Formula/biogeme.rb <https://github.com/Homebrew/homebrew-core/pull/54717/files#diff-54c895dce61243495337a9be29794c1e> (2)
Patch Links:
https://github.com/Homebrew/homebrew-core/pull/54717.patch <https://github.com/Homebrew/homebrew-core/pull/54717.patch>
https://github.com/Homebrew/homebrew-core/pull/54717.diff <https://github.com/Homebrew/homebrew-core/pull/54717.diff>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#54717>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGHDXDJCFCT7FHQGVDAEIR3RRSTZBANCNFSM4NBGMGMQ>.
|
@SMillerDev should this formula switch to the PyPI version, or should it be introduced as a new formula? |
Switch it to pypi version, please |
I'm having a bit of trouble converting this to the python, mostly because i can't quite seem to get the |
Hi Paul,
Can I help in any way?
Best regards,
Michel
On 22 May 2020, at 23:06, Amar Paul <notifications@github.com<mailto:notifications@github.com>> wrote:
I'm having a bit of trouble converting this to the python, mostly because i can't quite seem to get the pandas dependency building properly with cython inside homebrew. Let's see how this works...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#54717 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGHDXDOF33NTQOQQZR5GYVLRS3SNDANCNFSM4NBGMGMQ>.
|
@michelbierlaire thanks for the offer - really I'm just not used to writing python packages as Homebrew formulae. If you're more comfortable with it feel free to update this formula otherwise I'll take another look at it when I can. |
@Amar1729 Well, no, I am not sufficiently familiar with Homebrew. I had in mind that, if you need any specific information about the package itself, let me know. |
Is it worth having biogeme available from Homebrew if it's available through pip? According to the Python for Formula Authors documentation page:
As a user, I'm not sure that I see a benefit to having a pip package available through Homebrew. It seems that using That being said, I'm not a maintainer nor do I use biogeme so take my opinion with a grain of salt. |
@Rylan12 i agree, I'm not sure it's worth it to have biogeme provided by homebrew. |
@SMillerDev Is it worth continuing to work on this or should it just be removed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming this is still wanted, this should solve the problems.
The test should also be updated because the current one uses the old binary. Something like this might work:
test do
xy = Language::Python.major_minor_version Formula["python@3.8"].opt_bin/"python3"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages"
system Formula["python@3.8"].opt_bin/"python3", "-c", "import biogeme"
end
%w[numpy scipy].each do |d| | ||
ENV.prepend "PYTHONPATH", Formula[d].opt_lib/"python#{xy}/site-packages" | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing these lines did the trick for me
%w[numpy scipy].each do |d| | |
ENV.prepend "PYTHONPATH", Formula[d].opt_lib/"python#{xy}/site-packages" | |
end |
Dear all,
Indeed, the previous version of Biogeme was written in C++, using the autoconf/automake environnement. This is why I decided to make it available on Homebrew.
The current version is a pure Python package. Also, I am making the source available on github. https://github.com/michelbierlaire/biogeme
So, it is no problem for me if you decide to remove Biogeme from Homebrew.
Best regards,
Michel
On 29 May 2020, at 18:48, Rylan Polster <notifications@github.com<mailto:notifications@github.com>> wrote:
Is it worth having biogeme available from Homebrew if it's available through pip?
According to the Python for Formula Authors documentation page<https://docs.brew.sh/Python-for-Formula-Authors>:
Homebrew generally won’t accept libraries that can be installed correctly with pip install foo.
As a user, I'm not sure that I see a benefit to having a pip package available through Homebrew. It seems that using pip install biogeme is a better option.
That being said, I'm not a maintainer nor do I use biogeme so take my opinion with a grain of salt.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#54717 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGHDXDPI2JYJMS7XTMS6NGTRT7RMVANCNFSM4NBGMGMQ>.
|
This was previously a c++ tool, but is now written in pure Python and shipped through pypi. As discussed in Homebrew#54717, upstream is fine to remove this formula from homebrew. This is the last formula blocking the python 3.8 migration.
As upstream is fine with deletion; and it is shipped on pypi, and this is now a pure Python package, and this is the last blocker for the Python 3.8 migration, let's delete this in #55702. |
This was previously a c++ tool, but is now written in pure Python and shipped through pypi. As discussed in #54717, upstream is fine to remove this formula from homebrew. This is the last formula blocking the python 3.8 migration. Closes #55702. Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?According to
biogeme
's homepage, the command-linepythonbiogeme
has been deprecated since late 2018. The new project,PandasBiogeme
, is purely a pip package and is hosted on PyPI (release history).From the homepage:
Tagging @michelbierlaire - user account that first introduced
biogeme
package. Is it ok to deprecate this from homebrew? Are most user-installs now focused on the PyPI-distributedPandasBiogeme
rather than the command-line tool, or isPythonBiogeme
still being used?https://formulae.brew.sh/formula/biogeme#default
This is one of the formulae remaining before the python3.8 switch - #47274