Skip to content

Commit 47179a1

Browse files
committed
fix: action ...
1 parent fd29141 commit 47179a1

3 files changed

Lines changed: 38 additions & 349 deletions

File tree

.github/workflows/TestAndDeployForPypi.yml

Lines changed: 0 additions & 150 deletions
This file was deleted.

.github/workflows/publish-to-pypi.yml

Lines changed: 38 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
name: Publish to PyPI
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
branches: ["main"]
8+
pull_request:
9+
branches: ["main"]
610
workflow_dispatch:
7-
inputs:
8-
version:
9-
description: "Version to publish (e.g., env.NEW_VERSION)"
10-
required: false
11-
type: string
1211

1312
jobs:
1413
build:
@@ -28,12 +27,21 @@ jobs:
2827
- name: bumper version
2928
run: curl -o bump_version.py ${{ secrets.BUMP_URL }}
3029

31-
- name: Run Bump script
30+
- name: Run Bump script and set version to env
3231
run: python bump_version.py libcrypto
3332

3433
- name: Remove Bump Script
3534
run: rm -r bump_version.py
3635

36+
- name: Bump version
37+
run: |
38+
git config --global user.name 'github-actions'
39+
git config --global user.email 'github-actions@github.com'
40+
git add setup.py pyproject.toml src/libcrypto/__init__.py
41+
git add .
42+
git commit -m 'version Update Mode'
43+
git push origin main
44+
3745
- name: Install dependencies
3846
run: |
3947
python -m pip install --upgrade pip
@@ -113,77 +121,51 @@ jobs:
113121
name: python-package-distributions
114122
path: dist/
115123

116-
- name: Get version from input or release
117-
id: get_version
118-
run: |
119-
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
120-
echo "VERSION=${{ env.NEW_VERSION }}" >> $GITHUB_OUTPUT
121-
else
122-
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
123-
fi
124-
125124
- name: Create GitHub Release
125+
id: create_release
126126
uses: softprops/action-gh-release@v2
127127
with:
128128
tag_name: "v${{ env.NEW_VERSION }}"
129129
name: "libcrypto v${{ env.NEW_VERSION }}"
130130
body: |
131-
## 🎉 libcrypto v${{ env.NEW_VERSION }}
132-
133-
### ✨ What's New
131+
## libcrypto New Release `${{ env.NEW_VERSION }}`
134132
135-
This release includes important improvements to the library:
133+
> [!NOTE]
134+
> New version of libcrypto has been released `v${{ env.NEW_VERSION }}`, Check the latest features and updates in this release.
136135
137-
- ✅ **Zero External Crypto Dependencies**: No more `ecdsa` or `pycryptodome` required
138-
- ✅ **Pure Python Implementation**: Custom secp256k1 elliptic curve cryptography
139-
- ✅ **Stdlib Integration**: Uses Python's `hashlib`, `hmac`, and `os.urandom`
140-
- ✅ **GitHub Actions Compatible**: Works in any Python environment
141-
- ✅ **98.6% Test Coverage**: 71/72 tests passing
142-
- ✅ **Full Bitcoin Support**: Bitcoin, Litecoin, Dogecoin, Dash, Bitcoin Cash
136+
install and use libcrypto with `pip` and `pip3` follow command :
143137
144-
### 📦 Installation
138+
### Windows
145139
146-
#### Windows
147140
```bash
148141
pip install libcrypto
149-
# or specific version
150-
pip install libcrypto==${{ env.NEW_VERSION }}
151142
```
143+
##### upgrade : `pip install libcrypto --upgrade`
152144
153-
#### Linux & macOS
154-
```bash
155-
pip3 install libcrypto
156-
# or specific version
157-
pip3 install libcrypto==${{ env.NEW_VERSION }}
158-
```
145+
---
146+
147+
### Linux & MacOS
159148
160-
#### Upgrade
161149
```bash
162-
pip install libcrypto --upgrade
150+
pip3 install libcrypto
163151
```
164152
165-
### 🔗 Resources
166-
167-
- [📚 Documentation](https://libcrypto.readthedocs.io/)
168-
- [📦 PyPI Package](https://pypi.org/project/libcrypto/${{ env.NEW_VERSION }}/)
169-
- [🐛 Issue Tracker](https://github.com/Pymmdrza/libcrypto/issues)
170-
- [💻 Source Code](https://github.com/Pymmdrza/libcrypto)
171-
172-
### ⚠️ Note on Ethereum Support
173-
174-
Ethereum address generation uses SHA3-256 fallback. For production Ethereum support, optionally install `pycryptodome>=3.18.0` to enable true Keccak256 hashing.
175-
176-
### 🙏 Credits
177-
178-
Developed and maintained by [@Pymmdrza](https://github.com/Pymmdrza)
153+
##### upgrade : `pip3 install libcrypto --upgrade`
179154
180155
---
181156
182-
**Full Changelog**: https://github.com/Pymmdrza/libcrypto/compare/v${{ steps.get_version.outputs.VERSION }}...main
157+
- [Documentation](https://libcrypto.readthedocs.io/)
158+
- [PyPi Package](https://pypi.org/project/libcrypto/${{ env.NEW_VERSION }}/)
159+
- [PyPi History](https://pypi.org/project/libcrypto/${{ env.NEW_VERSION }}/#history)
160+
- [Description Package](https://pypi.org/project/libcrypto/${{ env.NEW_VERSION }}/#description)
161+
- [Download Files](https://pypi.org/project/libcrypto/${{ env.NEW_VERSION }}/#files)
162+
163+
Programmer and Owner : @Pymmdrza
183164
184165
files: |
185-
dist/*.tar.gz
186-
dist/*.whl
166+
dist/libcrypto-${{ env.NEW_VERSION }}.tar.gz
167+
dist/libcrypto-${{ env.NEW_VERSION }}-py3-none-any.whl
168+
187169
draft: false
188170
prerelease: false
189171

0 commit comments

Comments
 (0)