Skip to content

Commit 7f2d6d4

Browse files
authored
fix: add requirements (#123)
1 parent 98d7844 commit 7f2d6d4

4 files changed

Lines changed: 130 additions & 15 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
max-parallel: 4
1616
matrix:
17-
python-version: [3.6, 3.7, 3.8, 3.9]
17+
python-version: ["3.7", "3.8", "3.9"]
1818

1919
steps:
2020
- uses: actions/checkout@v1
@@ -30,7 +30,7 @@ jobs:
3030
- name: run tests
3131
run: |
3232
. venv/bin/activate
33-
mkdir test-results
34-
pytest -v -s --junitxml=test-reports/junit.xml --cov=crypto --cov-config=.coveragerc --cov-report xml
33+
mkdir -p test-reports
34+
pytest -v -s --junitxml=test-reports/junit.xml --cov=client --cov-config=.coveragerc --cov-report xml
3535
- name: Codecov
3636
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,74 @@
2424

2525
If you have any questions, requests or ideas open an issue or ask us in #python on the [ArkEcosystem Slack](https://ark.io/slack).
2626

27+
## Development
28+
29+
### Prerequisites
30+
31+
- Python >= 3.7
32+
33+
### Setup
34+
35+
1. **Create a virtual environment**
36+
37+
Run the following command to create a virtual environment for the project:
38+
39+
```bash
40+
python -m venv venv
41+
```
42+
43+
2. Activate the virtual environment
44+
45+
On macOS/Linux:
46+
47+
```bash
48+
source venv/bin/activate
49+
```
50+
51+
On Windows
52+
53+
```bash
54+
.\venv\Scripts\activate
55+
```
56+
57+
3. Upgrade pip and setuptools
58+
59+
Ensure you have the latest versions of pip and setuptools:
60+
61+
```bash
62+
pip install --upgrade pip setuptools
63+
```
64+
65+
4. Install the dependencies
66+
67+
Install all necessary dependencies from the requirements.txt file:
68+
69+
```bash
70+
pip install -r requirements.txt
71+
```
72+
73+
5. Install the package in development mode
74+
75+
Run the following command to install the package in development mode:
76+
77+
```bash
78+
python setup.py develop
79+
```
80+
81+
6. Run the tests
82+
83+
Use pytest to run the tests and ensure everything is working correctly:
84+
85+
```bash
86+
python setup.py test
87+
```
88+
89+
Or directly with pytest:
90+
91+
```bash
92+
pytest
93+
```
94+
2795
## Documentation
2896

2997
You can find installation instructions and detailed instructions on how to use this package at the [dedicated documentation site](https://docs.ark.io/sdk/clients/usage.html).

requirements.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
atomicwrites==1.4.1
2+
attrs==23.2.0
3+
backoff==2.2.1
4+
certifi==2024.6.2
5+
chardet==3.0.4
6+
coverage==7.2.7
7+
flake8==3.5.0
8+
flake8-import-order==0.17.1
9+
flake8-print==3.1.0
10+
flake8-quotes==1.0.0
11+
flatten-dict==0.3.0
12+
idna==2.7
13+
importlib-metadata==6.7.0
14+
mccabe==0.6.1
15+
more-itertools==9.1.0
16+
pathlib2==2.3.7.post1
17+
pluggy==0.6.0
18+
py==1.11.0
19+
pycodestyle==2.3.1
20+
pyflakes==1.6.0
21+
pytest==3.6.1
22+
pytest-cov==2.5.1
23+
pytest-mock==1.10.0
24+
pytest-responses==0.3.0
25+
requests==2.19.1
26+
responses==0.10.15
27+
six==1.16.0
28+
typing_extensions==4.7.1
29+
urllib3==1.23
30+
zipp==3.15.0

setup.py

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,39 @@
22

33
import setuptools
44

5-
65
requires = [
7-
'requests>=2.19.1',
8-
'backoff>=1.6.0',
9-
'flatten_dict>=0.3.0'
6+
'atomicwrites==1.4.1',
7+
'attrs==23.2.0',
8+
'backoff==2.2.1',
9+
'certifi==2024.6.2',
10+
'chardet==3.0.4',
11+
'flatten_dict==0.3.0',
12+
'idna==2.7',
13+
'importlib-metadata==6.7.0',
14+
'mccabe==0.6.1',
15+
'more-itertools==9.1.0',
16+
'pluggy==0.6.0',
17+
'py==1.11.0',
18+
'requests==2.19.1',
19+
'responses==0.10.15',
20+
'six==1.16.0',
21+
'typing_extensions==4.7.1',
22+
'urllib3==1.23',
23+
'zipp==3.15.0'
1024
]
1125

1226
tests_require = [
13-
'flake8>=3.5.0',
14-
'flake8-import-order>=0.17.1',
15-
'flake8-print>=3.1.0',
16-
'flake8-quotes>=1.0.0',
17-
'pytest>=3.6.1',
18-
'pytest-responses>=0.3.0',
19-
'pytest-mock>=1.10.0',
20-
'pytest-cov>=2.5.1'
27+
'coverage==7.2.7',
28+
'flake8==3.5.0',
29+
'flake8-import-order==0.17.1',
30+
'flake8-print==3.1.0',
31+
'flake8-quotes==1.0.0',
32+
'pycodestyle<2.4.0,>=2.0.0',
33+
'pyflakes==1.6.0',
34+
'pytest==3.6.1',
35+
'pytest-cov==2.5.1',
36+
'pytest-mock==1.10.0',
37+
'pytest-responses==0.3.0'
2138
]
2239

2340
extras_require = {

0 commit comments

Comments
 (0)