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

ENH: Create a conda package #15

Closed
remi-braun opened this issue Dec 14, 2021 · 11 comments
Closed

ENH: Create a conda package #15

remi-braun opened this issue Dec 14, 2021 · 11 comments

Comments

@remi-braun
Copy link

Hello,

First of all, nice lib that solved some troubles 😄

However, could you create a conda package in order to allow other packages to use methodtools through conda ? (via conda forge for example)

Thanks a lot !

@youknowone
Copy link
Owner

Hello,

I thought pypi packaging is enough for python packages.

I never used conda myself, so I don't know well about them. Is there any problem to use pypi package from conda environment?

@remi-braun
Copy link
Author

The problem is that you cannot create a conda package that includes methodtools by default.

And it is not recommended to mix installing libs via conda and pip, it should be either one or the other

@remi-braun
Copy link
Author

Just to precise what I meant, here is a thread where it is specified you cannot create a conda package with pip-only dependencies:
conda/conda-build#548 (comment)

You can, however, create a conda environment mixing the to packaging ways, but this is not really user-friendly 😄

@rdgraham
Copy link

Just wondering if there is any progress on this. Looks like a good tool but without a conda package I will need to find another solution.

@youknowone
Copy link
Owner

Thanks all. I now understand the situation.

After reseraching how to manage conda package, I found it does not necessarily need to be managed by myself - it didn't have ownerships for packages but anyone can submit recipes. Because I didn't use conda for myself ever, I don't think I can manage the conda recipes for this package well.

Instead, I am opened to anyone who will create conda package for this project. And I will do my best support for anyone who will do it, but I will not create and manage recipes myself. Please contact me anyone needs any help for that.

@remi-braun
Copy link
Author

If I'm not mistaken, your lib is using another package of yours called wirerope which doesn't have a conda package either.
If so, the package should also be created for it.
Is there any other dependency behind this one ?

@youknowone
Copy link
Owner

You are right. methodtools is very small, single file library wrapping wirerope. It only has one dependency.

wirerope depends on a few compatibility tools. six is very common, so it will not be a problem. To support Python2, it additionally requires inspect2 and singledispatch.
https://github.com/youknowone/wirerope/blob/master/setup.cfg

@timkpaine
Copy link

im doing it here: conda-forge/staged-recipes#18907

@remi-braun
Copy link
Author

im doing it here: conda-forge/staged-recipes#18907

Real heroes don't wear capes!
I can take it away from my personal todolist thanks to you 🙏

@timkpaine
Copy link

This issue can be closed now https://anaconda.org/conda-forge/methodtools

@youknowone
Copy link
Owner

Thank you! this is great!

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

No branches or pull requests

4 participants