sgx.py 0.9.dev4__tar.gz → 0.9.dev5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sgx.py
3
- Version: 0.9.dev4
3
+ Version: 0.9.dev5
4
4
  Summary: SGX
5
5
  Home-page: http://github.com/skalenetwork/sgx.py
6
6
  Author: SKALE Labs
@@ -0,0 +1,71 @@
1
+ # sgx.py
2
+ [![Discord](https://img.shields.io/discord/534485763354787851.svg)](https://discord.gg/vvUtWJB)
3
+
4
+ ## Requirements
5
+
6
+ |**Tool**|**Minimum Supported Version**|
7
+ |--------|-----------|
8
+ | Python | 3.11 |
9
+
10
+ ---
11
+
12
+ ## Installation
13
+
14
+ ### Install Python 3.11
15
+
16
+ ```bash
17
+ # confirm prerequisites are isntalled
18
+ sudo apt update
19
+ sudo apt install software-properties-common
20
+ # Add deadsnakes PPA - widely used for Python versions
21
+ sudo add-apt-repository ppa:deadsnakes/ppa
22
+ # update again & install python 3.11
23
+ sudo apt update
24
+ sudo apt install python3.11
25
+ # Check if it was installed
26
+ python3.11 --version
27
+
28
+ pip install sgx.py
29
+ ```
30
+ ---
31
+
32
+ ## Developers
33
+ ### Install all python libraries
34
+ ```bash
35
+ sudo apt-get update --fix-missing
36
+ sudo apt-get install libudev-dev
37
+ sudo apt-get install swig
38
+
39
+ # create virtual environment - install dependencies locally
40
+ python3.11 -m venv venv
41
+ source venv/bin/activate
42
+ pip install -e .
43
+ pip install -e .[dev]
44
+ ```
45
+
46
+ ### Running Tests
47
+
48
+ Create a `.env` file in source directory, like the following:
49
+ ```bash
50
+ SERVER=https://127.0.0.1:1026
51
+ CERT_PATH=.
52
+ ETH_PRIVATE_KEY=
53
+ GETH=
54
+ ```
55
+ You may alter the fields as needed.
56
+
57
+ Run the tests:
58
+ ```bash
59
+ # Run all tests
60
+ pytest
61
+
62
+ # Run specific test file
63
+ pytest ./tests/<test-file-name>.py
64
+
65
+ ```
66
+
67
+ ## License
68
+
69
+ [![License](https://img.shields.io/github/license/skalenetwork/sgx.py.svg)](LICENSE)
70
+
71
+ Copyright (C) 2019-present SKALE Labs
@@ -22,7 +22,7 @@ extras_require['dev'] = (
22
22
 
23
23
  setup(
24
24
  name='sgx.py',
25
- version='0.9dev4',
25
+ version='0.9dev5',
26
26
  description='SGX',
27
27
  url='http://github.com/skalenetwork/sgx.py',
28
28
  author='SKALE Labs',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sgx.py
3
- Version: 0.9.dev4
3
+ Version: 0.9.dev5
4
4
  Summary: SGX
5
5
  Home-page: http://github.com/skalenetwork/sgx.py
6
6
  Author: SKALE Labs
sgx.py-0.9.dev4/README.md DELETED
@@ -1,14 +0,0 @@
1
- # sgx.py
2
- [![Discord](https://img.shields.io/discord/534485763354787851.svg)](https://discord.gg/vvUtWJB)
3
-
4
- ## Installation
5
-
6
- ```commandline
7
- pip install sgx.py
8
- ```
9
-
10
- ## License
11
-
12
- [![License](https://img.shields.io/github/license/skalenetwork/sgx.py.svg)](LICENSE)
13
-
14
- Copyright (C) 2019-present SKALE Labs
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes