Skip to content

Commit

Permalink
Feature pypi (#88)
Browse files Browse the repository at this point in the history
* Added test pypi script
* Example doc
* Bumped version
* Removed old authors, bumped version
* Fixed logo paths in readme
  • Loading branch information
Jegp committed Jul 17, 2023
1 parent bc48cb0 commit bf253d0
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 11 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,35 @@ jobs:
#needs: [build-wheels, build-wheels-aarch64, build-sdist]
needs: [build-wheels, build-sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/aestream
permissions:
id-token: write

# alternatively, to publish when a GitHub Release is created, use the following rule:
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
# unpacks default artifact into dist/
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1

publish-pypi-test:
#needs: [build-wheels, build-wheels-aarch64, build-sdist]
needs: [build-wheels, build-sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/aestream
permissions:
id-token: write

# alternatively, to publish when a GitHub Release is created, use the following rule:
if: github.event_name != 'release' && github.event.action != 'published'
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -108,6 +134,4 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
repository-url: https://test.pypi.org/legacy/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<img src="logo.png" />
<img src="https://github.com/aestream/aestream/raw/main/logo.png" />

<p align="center">
<a href="https://github.com/aestream/aestream/actions">
Expand All @@ -21,7 +21,7 @@ AEStream effiently sends event-based data from A to B.
AEStream can be used from the command-line, via Python, or as a C++ library.
We support multiple inputs and outputs, providing seamless integration with files, [event cameras](https://en.wikipedia.org/wiki/Event_camera), network data, Python libraries via Numpy or PyTorch, and visualization tools.

<img src="docs/aestream_flow.png" />
<img src="https://github.com/aestream/aestream/raw/main/docs/aestream_flow.png" />

Read more about the inner workings of the library in [the AEStream publication](https://jegp.github.io/aestream-paper/).

Expand Down
4 changes: 2 additions & 2 deletions example/speck_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
# Initialize our canvas
window, pixels = sdl.create_sdl_surface(512, 512)

# Start streaming from a DVS camera on USB 2:2
# Start streaming from the SynSense Speck chip
with SpeckInput() as stream:
while True:
# Read a tensor (640, 480) tensor from the camera
# Read a tensor (128, 128) tensor from the camera
tensor = stream.read()

# Zoom to (512, 512)
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
};
aestream = pkgs.stdenv.mkDerivation {
name = "aestream";
version = "0.5.1";
version = "0.6";
src = ./.;
nativeBuildInputs = [
pkgs.pkg-config
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
# Setuptools entrypoint
setup(
name="aestream",
version="0.5.1",
author="Jens E. Pedersen, Christian Pehle",
author_email="jens@jepedersen.dk, christian.pehle@gmail.com",
version="0.6.0",
author="Jens E. Pedersen",
author_email="jens@jepedersen.dk",
url="https://github.com/aestream/aestream",
description="Streaming library for Address-Event Representation (AER) data",
license="MIT",
Expand Down

0 comments on commit bf253d0

Please sign in to comment.