-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add install, test instructions #2
Comments
Where did you save the library? It should be saved in the folder |
I believe to have created the symlink to this repo's dir in the right dir under venv, as I no longer error on importing; however, the next issue I face is as following:
|
Oh no, I have forgotten... |
But I am happy you managed to run it and I hope it is the only little issue. What is your operating system? |
Forcing your users to edit an external library locally is quite a big no-no. You could either try to get your edit merged upstream, or, just use some sort of hack to get around it locally. |
And as for the OS... my username as seen from the log should be big enough hint. |
Like, couldn't you just edit https://github.com/Jajasek/pygame_widgets/blob/master/constants/private.py#L27 to whatever constant you need? |
Wait, that's too simple solution, and also it just moves the error to the other places where the constant is used. Throw |
Also Tests/test_button_entry.py fails with
|
oh, and could you please put |
Why exactly? And which modules do you mean? I don't think I need to distinguish running as main from importing in any of my modules. |
Modules |
OK, that's good reason.
Done. You maybe wondered, why I haven't done this before. I have tried this, but PyCharm didn't auto-complete the key while the others did. So I updated the definition only because of my comfort. And then I forgot it. So now I have added it to public.py and updated the instalation steps. As for the failure of Tests/test_button_entry.py, I know about it. The Entry widget is in development and has a lot of errors... But it should have failed with NotImplementedError, not ValueError, so I "fixed" it. |
I think it should now be all done. |
Alright. I'm off the PC now already, but will make sure to check it out for
good tomorrow.
…On Tue, Apr 21, 2020, 10:55 PM Jajasek ***@***.***> wrote:
oh, and could you please put if __name__ == "__main__": guard in all of
your python files which might attempt to execute something?
I think it should now be all done.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJM3HLA7IDQSTC44AJOVH3RNYB4VANCNFSM4MNI6U6A>
.
|
I've finally gotten the documentation to build using pdoc3 and netlify from my fork of this repository, you can see the documentation live on https://amazing-curran-ee8b74.netlify.app/ . I deleted all files from |
Oh, sorry, I didn't realize that. It is fixed now. |
Could you just quickly throw together a setup.py for this repository so that it can be installed in a sane way? https://docs.python.org/3/distutils/setupscript.html |
Do you mean Pampuch or pygame_widgets? I'm not sure, if I understand it right; where should I put the setup.py, say, if I would want to distribute pygame_widgets? In the root folder of pygame_widgets? |
Also, what about the dependencies? Can I specify extarnal libraries, that will be automatically downloaded and installed? If not, what is the point of setup.py in my case? |
setup.py for pygame_widgets. Using setup.py allows for instalation of module using You want the setup.py file be in the same directory as the root folder of your package - in this case, due to how this repository is laid out, in a directory parent to this repository. Ideally, you should move the whole python project one directory down, that way you also wouldn't have to embed completely unrelated files in your python package (PDF is something that really should not be in a python package) (i.e. create a new directory As far as dependencies go, that's what |
@Jajasek There are no instructions on how to install or test this.
First step for fixing this might well be generating a
requirements.txt
file for this module, so at least the dependencies can be installed.Then, providing instructions on how to set up the structure of this project would be nice, preferably through the means of full walkthrough up until the point of running your included example.
I've already tried setting this up myself, by generating a fresh virtualenv for this module, installing just pygame inside, and straightaway trying to run the example (all from the shell), that however obviously failed straight on trying to import pygae-widgets.
The text was updated successfully, but these errors were encountered: