Skip to content

Commit

Permalink
Add Pyinstaller infos to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsrocket committed May 6, 2021
1 parent d2703ac commit 9947c0b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,23 @@ DKAN's dataset API changes frequently. Unexpected responses are a common problem
4. remove fields from json POST BODY content one by one until response is OK
5. Now you identified the json content that produced the error. Fix it by trial and error

## Compile as exe file

* Nice instructions here: https://www.datasciencelearner.com/how-to-compile-python-to-exe/

Or do it like this:
```
pip install pyinstaller
# ^ Carefully read the console message of the install command.
# It will output a path that you need to use in the following command:
C:\Users\User\AppData\Roaming\Python\Python38\Scripts\pyinstaller.exe --onefile --clean --add-data="app-icon.gif;." --add-data="docs\index.md;docs" --add-data="docs\dkan-screenshot.png;docs" .\dkanuploader.py
# to debug, add: --debug=all
```

## Python learning resources

* **Python cheat sheet** https://www.pythoncheatsheet.org/
* **Python example project setup** https://github.com/navdeep-G/samplemod
* **Github actions for python**: https://docs.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions
* **Create a windows executable file with pyinstaller**: https://realpython.com/pyinstaller-python/
* **Create a windows executable file with pyinstaller**: https://realpython.com/pyinstaller-python/

0 comments on commit 9947c0b

Please sign in to comment.