Skip to content
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

Dependency cleanup #1967

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: ""
file: "requirements/prod.txt"
schedule:
interval: "daily"
open-pull-requests-limit: 0 # Only security updates will be opened as PRs
3 changes: 1 addition & 2 deletions .github/workflows/e2e-subtensor-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,5 @@ jobs:

- name: Run tests
run: |
python3 -m pip install -e .
python3 -m pip install torch
python3 -m pip install -e .[torch] pytest
LOCALNET_SH_PATH="./subtensor/scripts/localnet.sh" pytest tests/e2e_tests/ -s
2 changes: 2 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
black==23.7.0
pytest==7.2.0
pytest-asyncio
pytest-mock==3.12.0
pytest-split==0.8.0
pytest-xdist==3.0.2
Expand Down
31 changes: 14 additions & 17 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
aiohttp==3.9.0b0
ansible==6.7.0
ansible_vault==2.1.0
aiohttp~=3.9
ansible~=6.7
ansible_vault~=2.1
backoff
black==23.7.0
certifi==2024.2.2
colorama==0.4.6
cryptography==42.0.5
ddt==1.6.0
certifi~=2024.2.2
colorama~=0.4.6
cryptography~=42.0.5
ddt~=1.6.0
eth-utils<2.3.0
fuzzywuzzy>=0.18.0
fastapi==0.110.1
munch==2.5.0
fastapi~=0.110.1
munch~=2.5.0
netaddr
numpy
msgpack-numpy-opentensor==0.5.0
msgpack-numpy-opentensor~=0.5.0
nest_asyncio
packaging
pycryptodome>=3.18.0,<4.0.0
pyyaml
password_strength
pydantic>=2.3, <3
PyNaCl>=1.3.0,<=1.5.0
pytest-asyncio
python-Levenshtein
python-statemachine==2.1.2
pytest
python-statemachine~=2.1.2
retry
requests
rich
scalecodec==1.2.7 # scalecodec should not be changed unless first verifying compatibility with the subtensor's monkeypatching of scalecodec.RuntimeConfiguration.get_decoder_class
shtab==1.6.5
substrate-interface==1.7.5
shtab~=1.6.5
substrate-interface~=1.7.5
termcolor
tqdm
uvicorn==0.22.0
uvicorn<=0.30
wheel
2 changes: 1 addition & 1 deletion scripts/check_compatibility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ check_compatibility() {
continue
fi

package_name=$(echo "$requirement" | awk -F'[!=<>]' '{print $1}' | awk -F'[' '{print $1}') # Strip off brackets
package_name=$(echo "$requirement" | awk -F'[!=<>~]' '{print $1}' | awk -F'[' '{print $1}') # Strip off brackets
echo -n "Checking $package_name... "

url="https://pypi.org/pypi/$package_name/json"
Expand Down
Loading