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

pypi submission #606

Closed
schwehr opened this issue Jul 6, 2013 · 13 comments
Closed

pypi submission #606

schwehr opened this issue Jul 6, 2013 · 13 comments
Assignees
Milestone

Comments

@schwehr
Copy link

schwehr commented Jul 6, 2013

It appears the scitools iris has not been submitted to pypi. Could you please submit point releases to pypi?

@shoyer
Copy link
Contributor

shoyer commented Nov 21, 2013

It would be really awesome if the developers could submit Iris to pypi, which is the standard package index for python. This would let users download and install Iris from the command line very easily:

pip install iris

(Although, it looks like someone else has already submitted a package with the name "iris" to pypi, so you might need to use a different name.)

@pelson
Copy link
Member

pelson commented Jun 25, 2014

@rhattersley - do you have any thoughts on this? It'd be great to have, but as @shoyer says - Iris seems to have already been taken... 😱

@rhattersley
Copy link
Member

I'm sure we can crack the name issue (e.g. "scitools-iris" perhaps). And once we've cracked at least the conda install route we can see what'd be involved in submitting to pypi and what the end-user experience might be. The non-Python dependencies (e.g. udunits) muddy the waters somewhat.

@cbarrick
Copy link

cbarrick commented May 10, 2017

Bumping this three years later

@pelson
Copy link
Member

pelson commented Jan 12, 2018

The 2.0.0rc1 is available under scitools-iris on pypi. Plenty of room for improvement (like a description), but the source dist is available there at least. Help (in the form of PRs) very much welcomed to improve the non-binary pip install scitools-iris experience.

@schwehr
Copy link
Author

schwehr commented Jan 12, 2018

Awesome! Thanks!

@QuLogic QuLogic added this to the v2.0.0 milestone Jan 12, 2018
@pelson
Copy link
Member

pelson commented Jan 17, 2018

It is certainly not perfect - but happy to tweak if you come up with any issues.

Thanks!

@rdkr
Copy link

rdkr commented Jan 23, 2018

Hi, pip install scitools-iris fails for me, due to setup.py#L252 as requirements/all.txt isn't packaged.

@rdkr
Copy link

rdkr commented Jan 23, 2018

Some further details, running Python 3.6.2 in a clean virtual environment:

  • I pip downloaded the package, removed the above mentioned extras_require entries from setup.py and tried to install from within the local directory with pip install . which failed due to missing six (consequently pip installed), then pyke.
  • I downloaded Pyke from SourceForge and installed it with pip install local/path/to/pyke3-1.1.1.zip. After this, I was able to install Iris succesfully.
  • Finally, to be able to import iris without error, I had to pip install toolz scipy.

Edit: This probably shouldn't be in this issue - let me know if you'd like me to create a new one.

@pelson
Copy link
Member

pelson commented Feb 14, 2018

Hi, pip install scitools-iris fails for me, due to setup.py#L252 as requirements/all.txt isn't packaged.

Fixed in versions greater than v2.0.0rc1. See https://github.com/SciTools/iris/blame/v2.0.x/MANIFEST.in#L11.

which failed due to missing six (consequently pip installed), then pyke.

I don't think there is anything we can do for pyke (it isn't pip installable from pypi), though maybe we should just upload the sdist to pypi ourselves... (https://sourceforge.net/projects/pyke/files/pyke/1.1.1/pyke3-1.1.1.zip/download)

As for six, I think we've overlooked the setup_requires functionality. Looks like we should have the setup requirements in both setup_requires and install_requires. Ref: http:https://setuptools.readthedocs.io/en/latest/setuptools.html. I'll open a PR for that.

Finally, to be able to import iris without error, I had to pip install toolz scipy

toolz isn't a dependency of iris, though maybe we are using some of the functionality in dask that does require it, and we aren't being specific enough with our pip requirements. Would you be interested in digging into that?

scipy is a core dependency and is completely missing from the requirements. I'll open a PR for that.

@pelson
Copy link
Member

pelson commented Feb 14, 2018

@dangyogi - sorry for bothering you, but would you be willing to upload a pyke3 to pypi to go along with https://pypi.python.org/pypi/pyke?

@pelson
Copy link
Member

pelson commented Feb 14, 2018

@rdkr - I've just tagged v2.0.0 and uploaded it to pypi. Have another go and feel free to raise any issues you encounter (including adding a description to pypi!).
https://pypi.python.org/pypi/scitools-iris

@shoyer
Copy link
Contributor

shoyer commented Apr 12, 2018

toolz isn't a dependency of iris, though maybe we are using some of the functionality in dask that does require it, and we aren't being specific enough with our pip requirements. Would you be interested in digging into that?

toolz is a dependency of dask.array.

You might want to switch your dependency to dask[array]. I know that works with pip (e.g., pip install dask[array]) but I'm not entirely sure it works as a dependency with setuptools.setup.

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

7 participants