O
O
Oleg2021-02-08 14:40:18
Python
Oleg, 2021-02-08 14:40:18

How to properly publish a Python project on GitHub?

I have a simple python project. Compiled with pyinstaller. Accordingly, there is the code itself in .py and two build folders (as I understand it, there are working files that are unnecessary for the program itself) and distr (directly executable files).
There is also a compilation of the code into a single .exe file
. I plan to use GitHub as a portfolio so that I can show potential employers what I do in general.
So, the question is - what is the best way to upload the project to Github?
1) Upload only the .py code without everything else
2) Upload the .py code + .exe file of the program itself
3) Upload the .py code + both build and distr folders
4) Upload the .py code + one of the build or distr folders (if yes , then which one?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-02-08
@SoreMix

Nobody pours exe files in the repository.
Upload only the .py file + requirements.txt, and your other modules, if any.
In the description, you can specify how to use it through Python.
The build can be placed in the Releases tab. But you need to consider that compiling python in exe is not the best idea. Well, the employer can already check the source code himself, the build of the script is not needed here

S
sergeyfilippov4, 2021-02-08
@sergeyfilippov4

Upload the source code of the program, because you can’t tell anything from the exe file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question