Skip to content

Commit

Permalink
VER: Release 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
threecgreen authored Jun 20, 2023
2 parents e3f8ecc + 4186cd6 commit 968b7d7
Show file tree
Hide file tree
Showing 23 changed files with 1,055 additions and 160 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
name: build - Python ${{ matrix.python-version }} (x86_64 ${{ matrix.os }})
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -43,18 +43,22 @@ jobs:

- name: Format
run: scripts/format.sh
shell: bash
- name: Build
run: scripts/build.sh
shell: bash
- name: Lint
run: scripts/lint.sh
shell: bash
- name: Test
run: scripts/test.sh
shell: bash

aarch64-build:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
name: build - Python ${{ matrix.python-version }} (aarch64 linux)
runs-on: ubuntu-latest

Expand Down Expand Up @@ -98,7 +102,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
name: build - Python ${{ matrix.python-version }} (macOS)
runs-on: macos-latest

Expand Down
34 changes: 12 additions & 22 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ jobs:
with:
python-version: "3.11"

- name: Format
run: scripts/format.sh
- name: Build
run: scripts/build.sh
- name: Lint
run: scripts/lint.sh
- name: Test
run: scripts/test.sh

# Tag the commit with the library version
- name: Create git tag
uses: salsify/action-detect-and-tag-new-version@v2
Expand All @@ -57,29 +48,28 @@ jobs:
- name: Set output
id: vars
run: |
echo "::set-output name=tag_name::v$(scripts/get_version.sh)"
echo "::set-output name=release_name::$(scripts/get_version.sh)"
echo "TAG_NAME=v$(scripts/get_version.sh)" >> $GITHUB_ENV
echo "RELEASE_NAME=$(scripts/get_version.sh)" >> $GITHUB_ENV
echo "## Release notes" > NOTES.md
sed -n '4,/^$/p' CHANGELOG.md >> NOTES.md
# Create GitHub release
- name: Create release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ steps.vars.outputs.tag_name }}
RELEASE_NAME: ${{ steps.vars.outputs.release_name }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.RELEASE_NAME }}
draft: false
tag_name: ${{ env.TAG_NAME }}
append_body: true
body_path: ./NOTES.md
prerelease: false

macos-release:
needs: [tag-release]
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: macos-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -124,7 +114,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: windows-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -164,7 +154,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
target: [x86_64, aarch64]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -205,7 +195,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
target: [x86_64-unknown-linux-musl, aarch64-unknown-linux-musl]
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.7.0 - TBD
- Added publishers enums
- Added export to Python for `Compression`, `Encoding`, `SType`, and `Schema`
enums
- Added async JSON encoder
- Fixed pretty timestamp formatting to match API
- Improved Python string representation of `ErrorMsg` and `SystemMsg`
- Dropped support for Python 3.7

## 0.6.1 - 2023-06-02
- Added `--fragment` and `--zstd-fragment` CLI arguments to read DBN streams
without metadata
Expand Down
11 changes: 6 additions & 5 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![license](https://img.shields.io/github/license/databento/dbn?color=blue)](./LICENSE)
[![Current Crates.io Version](https://img.shields.io/crates/v/dbn.svg)](https://crates.io/crates/dbn)
[![pypi-version](https://img.shields.io/pypi/v/databento_dbn)](https://pypi.org/project/databento-dbn)
[![Slack](https://img.shields.io/badge/join_Slack-community-darkblue.svg?logo=slack)](https://join.slack.com/t/databento-hq/shared_invite/zt-1xk498wxs-9fUs_xhz5ypaGD~mhI_hVQ)

Libraries and a CLI tool for working with Databento Binary
Encoding (DBN) files and streams.
Expand Down
2 changes: 1 addition & 1 deletion c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dbn-c"
authors = ["Databento <[email protected]>"]
version = "0.6.1"
version = "0.7.0"
edition = "2021"
description = "C bindings for working with Databento Binary Encoding (DBN)"
license = "Apache-2.0"
Expand Down
3 changes: 3 additions & 0 deletions c/src/decode.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// RawFd isn't defined for windows
#![cfg(not(target_os = "windows"))]

use std::{
fs::File,
io::BufReader,
Expand Down
2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "databento-dbn"
authors = ["Databento <[email protected]>"]
version = "0.6.1"
version = "0.7.0"
edition = "2021"
description = "Python library written in Rust for working with Databento Binary Encoding (DBN)"
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# databento-dbn

[![build](https://github.com/databento/dbn/actions/workflows/build.yaml/badge.svg)](https://github.com/databento/dbn/actions/workflows/build.yaml)
![python](https://img.shields.io/badge/python-3.8+-blue.svg)
![license](https://img.shields.io/github/license/databento/dbn?color=blue)
[![pypi-version](https://img.shields.io/pypi/v/databento_dbn)](https://pypi.org/project/databento-dbn)

Expand Down
Loading

0 comments on commit 968b7d7

Please sign in to comment.