Coder Social home page Coder Social logo

Comments (9)

almarklein avatar almarklein commented on May 1, 2024

cc @ghisvail

from imageio.

ghisvail avatar ghisvail commented on May 1, 2024

I believe you have 2 options here:

  • add the content of the docs/ folder to setup.py package_data attribute
    or
  • use a MANIFEST.in file

Since you seem to be using a single master branch, I'd propose you just branch out from the 1.0 commit, add the docs, tag it as 1.0+docs and merge back to HEAD. You probably don't need to release 1.0+docs to PyPI. For me, the tag is enough to consider it an official tarball for Debian.

Cheers,

from imageio.

almarklein avatar almarklein commented on May 1, 2024

I'll get on it asap. I have another small issue to fix that helps make imageio easier to adopt. Will probably release a 1.0.1 by the end of this week.

from imageio.

ghisvail avatar ghisvail commented on May 1, 2024

Hi Almar, any updates on this ? Otherwise, I can just submit the pkg for 1.0.0 and later make an update to it with 1.0.1 with the documentation included.

Cheers,

from imageio.

almarklein avatar almarklein commented on May 1, 2024

Sorry about the delay. I guess I was hoping I could fix the test thing as well. Anyway, there is now a tag v1.0+docs that has a setup.py that also puts docs and tests in the dist package.

from imageio.

almarklein avatar almarklein commented on May 1, 2024

... and I used data_files instead of package_data, so the files end up in the dist package, but or not installed. Let me know whether this does the trick.

from imageio.

ghisvail avatar ghisvail commented on May 1, 2024

It seems that building the sphinx documentation sill requires to download external resources. So it still fails with v1.0.0+docs.

PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html
Making output directory...
Running Sphinx v1.2.3

Exception occurred:
  File "/tmp/buildd/imageio-1.0+docs/imageio/core/fetching.py", line 115, in _fetch_file
    'Dataset fetching aborted (%s)' % (url, e))
IOError: Error while fetching file https://github.com/imageio/imageio-binaries/raw/master/freeimage/libfreeimage-3.16.0-linux64.so.
Dataset fetching aborted (<urlopen error [Errno -2] Name or service not known>)

from imageio.

almarklein avatar almarklein commented on May 1, 2024

Ah yes. The docs makes a lot of use of autodoc, so imageio is imported, which triggers a download. So I guess we need the no-internet-required version for this too. I am working on it #45.

from imageio.

ghisvail avatar ghisvail commented on May 1, 2024

FYI, I submitted v1.0 for inclusion in Debian, without the test suite and documentation. I notified that you were working to include them in future releases.

from imageio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.