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

Publish to PyPI #10

Open
filmor opened this issue Sep 17, 2022 · 6 comments
Open

Publish to PyPI #10

filmor opened this issue Sep 17, 2022 · 6 comments

Comments

@filmor
Copy link

filmor commented Sep 17, 2022

Seeing that upstream has been inactive for a long time now, would you consider publishing your fork to pypi, maybe under a different name?

@rogerbarton
Copy link
Owner

This would make a lot of sense. I've looked into it a bit. However, seeing as a lot of parts would need to be refactored, also in the breathe repo, and I don't have much time for this project I will leave it as is for now. Maybe I will find a bit of time to do this. It would be much nicer from a usability side of course.

@filmor
Copy link
Author

filmor commented Sep 30, 2022

Well, the current state sort of works, so just publishing as is could be an option. If you don't have the time, I can take that part :)

@rogerbarton
Copy link
Owner

Yea, would be great if you could help out :)

@jahav
Copy link

jahav commented Nov 5, 2022

It's a great project and kudos to @rogerbarton for your work. Thanks, it is really appreciated.

Anyway, this is for people trying to generate doxygen documentation on the https://readthedocs.org/ and stumbling on this ticket.

Since for now, there isn't a PyPI published package, you can't just add it to requirements.txt. Try adding an installation to your conf.py. It basically a redo of a code from Breathe - Generating doxygen xml files.

# Make sure the the package is a part of the extensions
extensions = ['sphinx_csharp','breathe']

import subprocess, os

read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'

if read_the_docs_build:
     subprocess.call('doxygen', shell=True)
     subprocess.call('pip install git+https://github.com/rogerbarton/sphinx-csharp.git', shell=True)    

Disclaimer: I know basically nothing about python, I just wanted to have doxygen generated API and this seems to work.

@rogerbarton
Copy link
Owner

I looked into publishing a pypi package. However, I would need to rename the package to something else... this would also require the breathe repo to use this new package name. I'm not sure if this is worth the hassle. imo pip install git+... is easy enough.

@ReenigneArcher
Copy link

The PyPI name needs to be different but the installed package name can remain the same. This happens a lot when projects get outdated and new maintainers pick them up. The only downside is then you cannot install the other package along side this one, but I don't really see that as being an issue as most would not use both packages simultaneously.

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