Commit Graph

14 Commits

Author SHA1 Message Date
Gene Hoffman b0072fdce0
Move to Discord in docs and install scripts (#15193) 2023-05-04 13:18:33 -05:00
Kyle Altendorf 523a5d4cf5
Add support for Python 3.11 (#11407)
* Add Python 3.11 to CI

* 3.11 in the install scripts

* ${{ format('{0}.0-alpha - {0}.X', matrix.python) }}

* bump chiavdf and chiabip158 for releases with 3.11 wheels

* also bump blspy and clvm-tools-rs

* drop the extra .X for the python setup version

* chia_rs==0.1.13

* Update install.sh

* pyinstaller==5.5

* less mutable defaults

* memory_profiler

* assert sqlite3.threadsafety >= 1

* create tasks for stopping services

(cherry picked from commit 3384714f2e3e0bdc8c3d3741027e9e4fb69a6002)

* psutil==5.9.4

* drop memory_profiler transitive dep since it now supports 3.11

* drop redundant pre-release python getting incantation

* watchdog==2.2.0

* black for py311
2023-01-27 17:16:03 -06:00
Kyle Altendorf 419342ed22
reorder gui install command instructions in install.sh/ps1 (#14180)
* reorder gui install command instructions in install.sh

* reorder gui install command instructions in Install.ps1
2022-12-19 10:55:07 -06:00
Amine Khaldi d73e979720
Deprecate `chia plotters install` command (#13584) (#13643)
* Deprecated `chia plotters install` command

* Fixed lint errors

* Made it able to recognize plotter executables in venv

* Added install-plotter.sh

* Removed strings for debug

* Added install-plotter.ps1

* Fixed an issue where madmax plotter under venv dir was not recognized by 'chia plotters' command

* Added exec permission to install-plotter.sh

* Fixed issues found in install-plotter.sh

* Fixed lint errors

* Added `-p` option to install.sh/install.ps1

* Fixed lint errors

* Added nice deprecated warning

* Fixed a lint error

* Slightly improved branching

* Made log messages look nice

* Fixed an issue where install.sh/ps1 -p failed if virtual env is not acivated

Co-authored-by: Izumi Hoshino <admin@chiamine.jp>
2022-10-17 14:29:02 -05:00
Kyle Altendorf 51c6590cf5
add install action (#12075)
* add install action

* add the actual action file

* update pre-commit to use the install action

* add prefix for arch -arm64 use

* typo

* outputs:

* copy paste correction

* false

* hmm

* there

* if ("$env:INSTALL_PYTHON_VERSION" -ne "")
2022-07-07 19:56:33 -05:00
Kyle Altendorf 7892148bdc
Support for Python 3.10 (#9930)
* Support for Python 3.10

* Update install.sh to block Python 3.11

* websockets to 10.1

* Update workflows for Python 3.10

* single quote 3.10

* Enable fedora:35 (py3.10) installer script testing

* rebuild workflows

* fixup test-install-scripts.yml

* add ignore for distutils deprecation in tests for now

* asyncio.get_event_loop().run_until_complete() -> asyncio.run()

* aiohttp==3.8.1 for python 3.10 support

* use ssl.Purpose.CLIENT_AUTH for ssl_context_for_server()

* rebuild workflows

* use ssl_context_for_client() in BlockTools.get_daemon_ssl_context()

* create a client context for the RpcServer to connect to the daemon

* go back to asyncio.get_event_loop().run_until_complete() for now to recover 3.7

* ignore:There is no current event loop:DeprecationWarning

* Ms.plot load perf2 (#10978)

* 2.7 seconds -> 0.45 seconds

* Merge

* Work on create_plots refactor

* Try to fix tests

* Try to fix tests

* Use new functions

* Fix block_tools by adding dir

* Extra argument

* Try to fix cyclic import

* isort

* Drop warning

* Some cleanups around `exclude_final_dir` and directory adding

* Cleanup `min_mainnet_k_size` checks

* Drop unrelated changes

* Fixes after rebase

* Fix cyclic import

* Update tests/block_tools.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Update tests/block_tools.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: xdustinface <xdustinfacex@gmail.com>
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* remove 3.10 avoidance step from debian:bookworm installer testing

* add 3.10 to wheel availability check workflow

* add 3.10 to Install.ps1 supported Python versions for Windows

* add jammy jellyfish to the install script test matrix

* correct ubuntu:jammy job name

* add 22.04 with Python 3.10 to install.sh

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: Mariano Sorgente <3069354+mariano54@users.noreply.github.com>
Co-authored-by: xdustinface <xdustinfacex@gmail.com>
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-04-26 12:37:01 -07:00
Kyle Altendorf d892e14c64
Handle INSTALL_PYTHON_VERSION in Install.ps1, otherwise search 3.9/3.8/3.7 (#11034)
* Handle INSTALL_PYTHON_VERSION in Install.ps1, otherwise search 3.9/3.8/3.7

* fix python availability check in Install.ps1

* when Install.ps1 does not find an acceptable python, list supported versions in order

* Update Install.ps1

Co-authored-by: Matt Hauff <quexington@gmail.com>

Co-authored-by: Matt Hauff <quexington@gmail.com>
2022-04-07 09:18:54 -07:00
Kyle Altendorf c238ce17ba
add -d for Install.ps1 (#11062) 2022-04-05 17:00:10 -07:00
Gene Hoffman 58abb35114
Check for vulnerable openssl (#10988)
* Check for vulnerable openssl

* Update OpenSSL on MacOS

* First attempt - openssl Ubuntu 18.04 and 20.04

* place local/bin ahead in PATH

* specify install openssl

* correct path

* run ldconfig

* stop building and check for patched openssl

* spell sudo right by removing it

* Remove openssl building - 1st attempt RHs

* Test Windows OpenSSL version HT @AmineKhaldi
2022-04-01 13:20:29 -07:00
Kyle Altendorf 405b7238e0
Revert "pip==21.3.1 for now (#10035)" (#10055)
This reverts commit fedae0cc97.
2022-02-01 10:26:08 -08:00
Kyle Altendorf fedae0cc97
pip==21.3.1 for now (#10035)
* pip==21.3.1 for now

* More pip pinning

* Pip

* Pip
2022-01-30 16:05:34 -05:00
Kyle Altendorf b4ab2bd0c7
Avoid activating venv in Install.ps1 (#8927)
PowerShell scripts, as well as batch files, operate in the callers environment which is unlike bash where you have to `source` (or `.`) scripts for that to happen.  As such, this script returned control to the user with the venv still activated which was somewhat counter to the instructions that were printed out.  I suggest this route of leaving the environment not activated on exit for the sake of consistency with `install.sh`.  I chose to simply not activate the venv to begin with since then there's no deactivation "cleanup" to manage.
2021-10-29 10:44:46 -07:00
Kyle Altendorf b7e8e9c9a6
Fix Install.ps1 check for msvcp140.dll (#8911)
The original resulted in the following error when `msvcp140.dll` was not present.

```console
PS C:\chia\chia-blockchain> ./install.ps1
Get-Item : Cannot find path 'C:\WINDOWS\System32\msvcp140.dll' because it does not exist.
At C:\chia\chia-blockchain\Install.ps1:9 char:11
+ if (-not (Get-Item "$env:windir\System32\msvcp140.dll").Exists)
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\WINDOWS\System32\msvcp140.dll:String) [Get-Item], ItemNotFoundExcept
   ion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
2021-10-22 16:33:17 -07:00
Jeff Cruikshank 0e015a8755
Powershell scripts to support installation from source. (#8651)
* Powershell scripts to support installation from source.

* Update Install-gui.ps1

* Update Install-gui.ps1

* Linter fixes

* Revert "Linter fixes"

This reverts commit 8c4e073671.

* Linter fixes

* Minor textual changes. Updated encoding/line-endings to UTF-8/LF. Git on Windows should autocrlf as necessary.
2021-10-04 10:41:49 -07:00