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

Update build + release. #171

Merged
merged 36 commits into from
May 10, 2023
Merged
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
a22ba5f
Update build + release.
benjaminrwilson Apr 26, 2023
e9394ef
Modify release script.
benjaminrwilson Apr 26, 2023
61b56ba
Add maturin action.
benjaminrwilson Apr 27, 2023
64248c4
Update ci.
benjaminrwilson Apr 27, 2023
9d454e3
Test automated build.
benjaminrwilson Apr 27, 2023
fcbe3b9
Add test upload.
benjaminrwilson Apr 27, 2023
e2015b2
Update release workflow.
benjaminrwilson Apr 27, 2023
c8e4543
Update release workflow.
benjaminrwilson Apr 27, 2023
7751d39
Update release workflow.
benjaminrwilson Apr 27, 2023
91a7365
Remove space reclaim.
benjaminrwilson Apr 27, 2023
09075f3
Remove ppc64le build.
benjaminrwilson Apr 27, 2023
de82210
Use nightly toolchain.
benjaminrwilson Apr 27, 2023
f0760dc
Limit archs.
benjaminrwilson Apr 27, 2023
2ca7e74
Update release.
benjaminrwilson Apr 27, 2023
5f62a82
Add artifacts.
benjaminrwilson Apr 27, 2023
8305746
Update artifact name.
benjaminrwilson Apr 28, 2023
65c454c
Update download artifact.
benjaminrwilson Apr 28, 2023
7a1d430
Add https.
benjaminrwilson Apr 28, 2023
231a03a
Update pyproject.toml
benjaminrwilson Apr 28, 2023
b68ba49
Update pyproject.toml
benjaminrwilson Apr 28, 2023
59f8630
Merge branch 'main' into ci/automate-releases
benjaminrwilson May 1, 2023
7ee0610
Test new pypi build.
benjaminrwilson May 1, 2023
8a211b9
Merge branch 'main' into ci/automate-releases
benjaminrwilson May 1, 2023
0459aa4
Test version bump.
benjaminrwilson May 1, 2023
862f411
Add project metadata.
benjaminrwilson May 2, 2023
956f643
Merge branch 'main' into ci/automate-releases
benjaminrwilson May 9, 2023
cb784c8
Merge.
benjaminrwilson May 9, 2023
b1ab596
Add release section.
benjaminrwilson May 9, 2023
3d0a952
Comment out test release.
benjaminrwilson May 9, 2023
57a256b
Add 3.11.
benjaminrwilson May 9, 2023
d95a388
Update python versions.
benjaminrwilson May 9, 2023
4344a66
Merge branch 'main' into ci/automate-releases
benjaminrwilson May 9, 2023
ef5f33b
Update release.yaml.
benjaminrwilson May 10, 2023
138b2ea
Disable windows.
benjaminrwilson May 10, 2023
6c4d5cb
Change needs.
benjaminrwilson May 10, 2023
d0be072
Fix ci.
benjaminrwilson May 10, 2023
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
File renamed without changes.
File renamed without changes.
133 changes: 133 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: "[av2] Release"

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
manylinux: auto
rust-toolchain: nightly
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

# windows:
# runs-on: windows-latest
# strategy:
# matrix:
# target: [x64, x86]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# architecture: ${{ matrix.target }}
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: "true"
# rust-toolchain: nightly
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist

macos:
runs-on: macos-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
rust-toolchain: nightly
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

# test_release:
# name: Test release.
# needs: [linux, windows, macos, sdist]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: wheels
# path: dist
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *
27 changes: 22 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,30 @@ build-backend = "maturin"

[project]
name = "av2"
description = "Argoverse 2: Next generation datasets for self-driving perception and forecasting."
requires-python = ">=3.8"
license = { file = "LICENSE" }
keywords = [
"argoverse",
"argoverse2",
"autonomous-driving",
"av1",
"av2",
"3d-object-detection",
"3d-scene-flow",
"4d-occupancy-forecasting",
"e2e-forecasting",
"motion-forecasting",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
]

dependencies = [
Expand All @@ -29,13 +49,10 @@ dependencies = [
"torch",
"tqdm",
"universal_pathlib",
"trackeval @ git+https://github.com/JonathonLuiten/TrackEval.git"
]

dynamic = [
"authors",
"description",
"license",
"version"
]

Expand All @@ -54,7 +71,7 @@ test = [
]

[project.urls]
homepage = "argoverse.org"
homepage = "https://argoverse.org"
repository = "https://github.com/argoverse/av2-api"

[tool.maturin]
Expand Down
2 changes: 0 additions & 2 deletions src/av2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# <Copyright 2022, Argo AI, LLC. Released under the MIT license.>

"""Argoverse 2 API."""

__version__ = "0.3.0"