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

Create index.html files instead of autoindexing? #104

Open
stefanoborini opened this issue Mar 23, 2020 · 4 comments
Open

Create index.html files instead of autoindexing? #104

stefanoborini opened this issue Mar 23, 2020 · 4 comments

Comments

@stefanoborini
Copy link

It is my understanding that dir2pi just deploys packages in a simple pypi structure, but relies on autoindex to provide the html file that pip uses. Is there an option to generate (and keep up to date, if new packages are added) the index file? my current server creates a fancy javascript interface to represent directory content, but will show an index.html if present.

@stefanoborini stefanoborini changed the title Create index.html files Create index.html files instead of autoindexing? Mar 23, 2020
@tom-shan
Copy link

tom-shan commented Apr 3, 2020

dir2pi will create an index.html in each directory by default refer to https://github.com/wolever/pip2pi/blob/master/libpip2pi/commands.py#L220-L226

But I think https://github.com/wolever/pip2pi/blob/master/libpip2pi/commands.py#L376 this line should be changed to pkg_index += "<a href='%s/index.html'>%s</a><br />\n" %(

@stefanoborini
Copy link
Author

@tom-shan yes, the problem is that it doesn't only do that. I would need a functionality just to create the index file from the currently deployed packages, but I could not find anything that does so.

@tom-shan
Copy link

tom-shan commented Apr 3, 2020

IIUC, if you really only want those index.htmls, how about deleting all the useless packages after the generation?

@stefanoborini
Copy link
Author

stefanoborini commented Apr 3, 2020

@tom-shan that's not what I want. I have a pypi content with all the packages there and they have to stay there, but I don't have autoindex in the web server to generate the A HREF page. I need something to generate this page, and I need to get this done fast.

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

2 participants