forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce stuff installed for non-developers.
- Loading branch information
1 parent
b319691
commit ef59bb2
Showing
9 changed files
with
95 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,23 +19,31 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
- name: Install Mac dependencies | ||
if: startsWith(matrix.os, 'mac') | ||
run: | | ||
brew update && brew install gmp boost openssl | ||
- name: Install ubuntu dependencies | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt-get install libboost-all-dev libssl-dev | ||
- name: Run install script | ||
env: | ||
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} | ||
run: | | ||
brew update && brew install gmp boost openssl || echo "" | ||
sudo apt-get install libboost-all-dev || echo "" | ||
sudo apt-get install libssl-dev || echo "" | ||
sh install.sh | ||
- name: Install time lord | ||
run: | | ||
sh install-timelord.sh | ||
- name: Install developer requirements | ||
run: | | ||
venv/bin/python -m pip install -r requirements-dev.txt | ||
- name: Lint source with flake8 | ||
run: | | ||
./venv/bin/flake8 src --exclude src/electron-ui/node_modules | ||
- name: Lint source with mypy | ||
run: | | ||
./venv/bin/mypy src tests | ||
- name: Install chiavdf from source | ||
if: matrix['python-version'] == '3.7' && startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
source venv/bin/activate | ||
pip install --force --no-binary chiavdf chiavdf==0.12.1 | ||
- name: Test blockchain code with pytest | ||
run: | | ||
./venv/bin/py.test tests -s -v | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
THE_PATH=`python -c 'import pkg_resources; print( pkg_resources.get_distribution("chiavdf").location)' 2> /dev/null`/vdf_client | ||
|
||
if [ -e $THE_PATH ] | ||
then | ||
echo "vdf_client already exists, no action taken" | ||
else | ||
if [ -e venv/bin/python ] | ||
then | ||
echo "installing chiavdf from source" | ||
echo venv/bin/python -m pip install --force --no-binary chiavdf chiavdf==0.12.1 | ||
venv/bin/python -m pip install --force --no-binary chiavdf chiavdf==0.12.1 | ||
else | ||
echo "no venv created yet, please run install.sh" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.5.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "no-local-version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Click==7.0 | ||
PyYAML==5.3 | ||
appdirs==1.4.3 | ||
autoflake==1.3.1 | ||
black==19.10b0 | ||
cbor2==5.0.1 | ||
cffi==1.13.2 | ||
cryptography==2.8 | ||
entrypoints==0.3 | ||
flake8==3.7.9 | ||
idna==2.8 | ||
importlib-metadata==1.4.0 | ||
isort==4.3.21 | ||
mccabe==0.6.1 | ||
more-itertools==8.1.0 | ||
multidict==4.7.4 | ||
mypy-extensions==0.4.3 | ||
mypy==0.761 | ||
packaging==20.0 | ||
pathspec==0.7.0 | ||
pluggy==0.13.1 | ||
py==1.8.1 | ||
pycodestyle==2.5.0 | ||
pycparser==2.19 | ||
pyflakes==2.1.1 | ||
pyparsing==2.4.6 | ||
pytest-asyncio==0.10.0 | ||
pytest==5.3.4 | ||
regex==2020.1.8 | ||
setuptools-scm==3.4.2 | ||
six==1.14.0 | ||
toml==0.10.0 | ||
typed-ast==1.4.1 | ||
typing-extensions==3.7.4.1 | ||
wcwidth==0.1.8 | ||
websockets==8.1.0 | ||
zipp==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,3 @@ | ||
aiohttp==3.6.2 | ||
aiosqlite==0.11.0 | ||
aiter==0.13.20191203 | ||
appdirs==1.4.3 | ||
async-timeout==3.0.1 | ||
attrs==19.3.0 | ||
autoflake==1.3.1 | ||
black==19.10b0 | ||
blspy==0.1.14 | ||
cbor2==5.0.1 | ||
cffi==1.13.2 | ||
chardet==3.0.4 | ||
chiabip158==0.12 | ||
chiapos==0.12 | ||
chiavdf==0.12.1 | ||
Click==7.0 | ||
colorlog==4.1.0 | ||
cryptography==2.8 | ||
entrypoints==0.3 | ||
flake8==3.7.9 | ||
idna==2.8 | ||
importlib-metadata==1.4.0 | ||
isort==4.3.21 | ||
mccabe==0.6.1 | ||
miniupnpc==2.0.2 | ||
more-itertools==8.1.0 | ||
multidict==4.7.4 | ||
mypy==0.761 | ||
mypy-extensions==0.4.3 | ||
packaging==20.0 | ||
pathspec==0.7.0 | ||
pluggy==0.13.1 | ||
py==1.8.1 | ||
pycodestyle==2.5.0 | ||
pycparser==2.19 | ||
pyflakes==2.1.1 | ||
pyparsing==2.4.6 | ||
pytest==5.3.4 | ||
pytest-asyncio==0.10.0 | ||
PyYAML==5.3 | ||
regex==2020.1.8 | ||
setuptools-scm==3.4.2 | ||
six==1.14.0 | ||
toml==0.10.0 | ||
typed-ast==1.4.1 | ||
typing-extensions==3.7.4.1 | ||
wcwidth==0.1.8 | ||
yarl==1.4.2 | ||
zipp==2.0.0 | ||
sortedcontainers==2.1.0 | ||
websockets==8.1.0 | ||
-e git+https://github.com/Chia-Network/py-setproctitle.git@d2ed86c5080bb645d8f6b782a4a86706c860d9e6#egg=py-setproctitle | ||
-e git+https://github.com/Chia-Network/clvm.git@b912f3a0e0bd18a5ecbb29124a00fc68d8b03adb#egg=clvm | ||
-e git+https://github.com/Chia-Network/clvm_tools.git@6ff53bcfeb0c970647b6cfdde360d32b316b1326#egg=clvm_tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters