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

Test Deployment PR #34

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e8eb914
a0 ver
camfairchild Oct 3, 2024
22657c0
replace with pyproject.toml
camfairchild Oct 3, 2024
0cb2635
try new CI generation
camfairchild Oct 3, 2024
b92098b
use newer action
camfairchild Oct 3, 2024
48cef4c
add openssl install step
camfairchild Oct 3, 2024
41b7f33
remove windows as a target
camfairchild Oct 3, 2024
ac899c7
add pkg config
camfairchild Oct 3, 2024
b4bd57c
no sudo
camfairchild Oct 3, 2024
ba1b039
add back sudo
camfairchild Oct 3, 2024
d10a76b
remove openssl from command
camfairchild Oct 3, 2024
cd19691
add to before script
camfairchild Oct 3, 2024
d48f66c
try adding to cargo
camfairchild Oct 3, 2024
dae1629
use apt-get
camfairchild Oct 3, 2024
61d1229
try with yum
camfairchild Oct 3, 2024
8923ec8
use & at the end
camfairchild Oct 3, 2024
66f2c3b
use ||
camfairchild Oct 3, 2024
f61f002
add openssl
camfairchild Oct 3, 2024
b55c439
remove openssl
camfairchild Oct 3, 2024
f5347ab
only x86_64
camfairchild Oct 3, 2024
d8045c7
add apt-utils install
camfairchild Oct 3, 2024
1649894
use -y
camfairchild Oct 3, 2024
bfd1b19
remove musllinux
camfairchild Oct 3, 2024
a09c9a3
comment out musllinux too
camfairchild Oct 3, 2024
3e669db
rename package and file
camfairchild Oct 3, 2024
61f519c
fix classifiers
camfairchild Oct 3, 2024
aecaeae
remove btwallet dir
camfairchild Oct 3, 2024
79baf07
bump version a bit
camfairchild Oct 3, 2024
2b57e43
try ignoring tests dir
camfairchild Oct 3, 2024
2fbe398
bump ver
camfairchild Oct 3, 2024
617c91b
try with maturin config
camfairchild Oct 3, 2024
c728cd7
add bip39
camfairchild Oct 3, 2024
af8d3ee
bump ver
camfairchild Oct 3, 2024
13c21ae
test with more platforms
camfairchild Oct 3, 2024
24d19ba
bump ver
camfairchild Oct 3, 2024
eff1a7c
remove other platforms
camfairchild Oct 3, 2024
9f2d3b7
comment out other platforms
camfairchild Oct 3, 2024
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
169 changes: 0 additions & 169 deletions .github/workflows/CI.yml

This file was deleted.

156 changes: 156 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# This file is autogenerated by maturin v1.7.4
# To update, run
#
# maturin generate-ci github
#
name: Build wheels

on:
push:
branches:
- main
tags:
- '*'
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
linux:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
# - runner: ubuntu-latest
# target: aarch64
# - runner: ubuntu-latest
# target: armv7
# - runner: ubuntu-latest
# target: s390x
# - runner: ubuntu-latest
# target: ppc64le
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: PyO3/[email protected]
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
before-script-linux: (apt-get update && apt-get install -y apt-utils && apt-get install -y pkg-config libssl-dev) || (yum install openssl openssl-devel -y)
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
path: dist

# musllinux:
# runs-on: ${{ matrix.platform.runner }}
# strategy:
# matrix:
# platform:
# - runner: ubuntu-latest
# target: x86_64
# # - runner: ubuntu-latest
# # target: x86
# # - runner: ubuntu-latest
# # target: aarch64
# # - runner: ubuntu-latest
# # target: armv7
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: 3.x
# - name: Build wheels
# uses: PyO3/[email protected]
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist --find-interpreter
# sccache: 'true'
# manylinux: musllinux_1_2
# before-script-linux: (apt-get update && apt-get install -y apt-utils && apt-get install -y pkg-config libssl-dev) || (yum install openssl openssl-devel -y)
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-musllinux-${{ matrix.platform.target }}
# path: dist

macos:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: macos-12
target: x86_64
- runner: macos-14
target: aarch64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: PyO3/[email protected]
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}
path: dist

sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/[email protected]
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: dist

release:
name: Release
runs-on: ubuntu-latest
environment: release
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
#needs: [linux, macos, musllinux, sdist]
needs: [linux, macos, sdist]
permissions:
# Use to sign the release artifacts
id-token: write
# Used to upload release artifacts
contents: write
# Used to generate artifact attestation
attestations: write
steps:
- uses: actions/download-artifact@v4
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'wheels-*/*'
- name: Publish to PyPI
if: "startsWith(github.ref, 'refs/tags/')"
uses: PyO3/[email protected]
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bittensor_wallet"
version = "2.0.0"
version = "2.0.0-a4"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion bittensor_wallet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
wallet as wallet,
)

__version__ = "2.0.0"
__version__ = "2.0.0-a4"
23 changes: 0 additions & 23 deletions btwallet/__init__.py

This file was deleted.

Loading