Skip to content

Commit 948fbb1

Browse files
committed
Publish to PyPi
1 parent 2ddb4bc commit 948fbb1

File tree

5 files changed

+26
-19
lines changed

5 files changed

+26
-19
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- PROJECT HEADER -->
22
<div align="center">
3-
<a href ="https://homora-v2.alphaventuredao.io/"><img src="img/ahv2.png" alt="Alpha Homora V2 Logo" height="200"></a>
4-
<br></br>
3+
<a href ="https://homora-v2.alphaventuredao.io/"><img src="https://dappimg.com/media/image/dapp/bd46bacaa4f045d491d2723340590edf.blob" alt="Alpha Homora V2 Logo" height="200"></a>
4+
<br/>
55
<h2 align="center"><strong>Alpha-Homora-V2-Python</strong></h2>
66
<a href="https://homora-v2.alphaventuredao.io/"><img src="https://img.shields.io/website?down_color=red&down_message=Disconnected&label=Alpha%20Homora%20V2&up_color=blue&up_message=Online&url=https%3A%2F%2Fhomora-v2.alphaventuredao.io%2F"/></a>
77
<img src="https://img.shields.io/badge/Python-3.9%2B-yellow"/>
@@ -38,14 +38,12 @@ This package is set up to be installed using the `pip` package manager.
3838

3939
1. Ensure that you have Python 3.9+ installed. If not, you can download [here](https://www.python.org/downloads/release/python-3912/). The syntax is dependent on features added in this recent version.
4040

41-
2. Install the package using pip (you must use the git+url as this project is private and not listed on PyPi):
41+
2. Install the package using pip:
4242
```bash
43-
pip install --upgrade git+https://github.com/PathX-Projects/Alpha-Homora-V2-Python.git
43+
pip install --upgrade alpha-homora-v2
4444
```
4545

46-
***Note:*** You may need to provide your git credentials depending on the repository privacy settings. In the event, if you need help generating a personal access token see [here](https://catalyst.zoho.com/help/tutorials/githubbot/generate-access-token.html)
47-
48-
3. After install, the package will be available to you in your local Python environment as ***alpha_homora_v2***
46+
3. After install, the package will be available to you in your local Python environment as ***alpha-homora-v2***
4947

5048
When updates are made to the package, the version will automatically be incremented so that in order to get the newest version on your end, you can simply use the same installation command and your pip will detect and update to the newest version.
5149

@@ -70,7 +68,7 @@ How to use the package:
7068
3. Creating an [AvalanchePosition](alpha_homora_v2/position.py) instance requires the following:
7169
- Your position ID (an integer)
7270
- This ID should match your position on Alpha Homora, without the "#"
73-
![demo](img/id_highlight.png)
71+
![demo](https://github.com/PathX-Projects/Alpha-Homora-V2-Python/blob/main/img/id_highlight.png?raw=true)
7472

7573
<!--- DEPRECATED
7674
- The token symbol/pair (a string)

alpha_homora_v2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .position import AvalanchePosition
22

3-
__version__ = "2.0.0"
3+
__version__ = "2.0.1"
44

examples/avalanche/position_info.ipynb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 9,
29+
"execution_count": 3,
3030
"metadata": {},
3131
"outputs": [],
3232
"source": [
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"cell_type": "code",
39-
"execution_count": 25,
39+
"execution_count": 4,
4040
"metadata": {},
4141
"outputs": [],
4242
"source": [
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"cell_type": "code",
48-
"execution_count": 26,
48+
"execution_count": 5,
4949
"metadata": {},
5050
"outputs": [
5151
{
@@ -54,7 +54,7 @@
5454
"('0xC9E6e248928aC18eD6b103653cBcF66d23B743C6', None)"
5555
]
5656
},
57-
"execution_count": 26,
57+
"execution_count": 5,
5858
"metadata": {},
5959
"output_type": "execute_result"
6060
}
@@ -157,18 +157,19 @@
157157
},
158158
{
159159
"cell_type": "code",
160-
"execution_count": 15,
160+
"execution_count": 6,
161161
"metadata": {},
162162
"outputs": [
163163
{
164164
"data": {
165165
"text/plain": [
166-
"{'totalAPY': 17.11585545697788,\n",
167-
" 'tradingFeeAPY': 10.584364627015674,\n",
168-
" 'farmingAPY': 6.531490829962204}"
166+
"{'APY': 9.824596908196767,\n",
167+
" 'tradingFeeAPY': 8.55467361459393,\n",
168+
" 'farmingAPY': 6.59739128857244,\n",
169+
" 'borrowAPY': -5.327467994969603}"
169170
]
170171
},
171-
"execution_count": 15,
172+
"execution_count": 6,
172173
"metadata": {},
173174
"output_type": "execute_result"
174175
}

img/ahv2.png

-18.2 KB
Binary file not shown.

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@
66
import alpha_homora_v2
77

88

9+
def readme():
10+
with open("README.md") as infile:
11+
return infile.read().strip()
12+
13+
914
setup(
10-
name='alpha_homora_v2',
15+
name='alpha-homora-v2',
1116
version=alpha_homora_v2.__version__,
1217
author='Harrison Schick',
1318
author_email='[email protected]',
1419
description='An unofficial Python package that wraps Alpha Homora V2 position smart contracts.',
20+
long_description=readme(),
21+
long_description_content_type="text/markdown",
1522
url='https://github.com/PathX-Projects/Alpha-Homora-V2-Python',
1623
license='Apache-2.0',
1724
packages=['alpha_homora_v2'],
1825
include_package_data=True,
1926
install_requires=[line.strip() for line in open('requirements.txt').readlines()],
27+
python_requires='>=3.9',
2028
)

0 commit comments

Comments
 (0)