Compare commits
14 Commits
relax-pand
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b89900ef36 | ||
|
|
13387cbd38 | ||
|
|
5430f897de | ||
|
|
dec9378d00 | ||
|
|
c8f8a0eecb | ||
|
|
fe8a650060 | ||
|
|
e48642dd73 | ||
|
|
6ea9dbcf42 | ||
|
|
376eda5a02 | ||
|
|
4093ae7803 | ||
|
|
3fedf61513 | ||
|
|
839274ef1d | ||
|
|
27163972e7 | ||
|
|
b64a3a2340 |
11
.github/workflows/CI.yml
vendored
11
.github/workflows/CI.yml
vendored
@@ -12,7 +12,7 @@ env:
|
||||
|
||||
jobs:
|
||||
rust-build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -35,10 +35,10 @@ jobs:
|
||||
|
||||
python-test:
|
||||
needs: rust-build-and-test
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
|
||||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -72,14 +72,15 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
os: [ubuntu-20.04, macos-latest, windows-latest]
|
||||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "qvd"
|
||||
version = "0.0.11"
|
||||
version = "0.0.15"
|
||||
authors = ["Sam Bentley <samtbentley@gmail.com>"]
|
||||
edition = "2018"
|
||||
readme = "README.md"
|
||||
@@ -24,5 +24,3 @@ bitvec = "0.19.4"
|
||||
version = "0.12.3"
|
||||
features = ["extension-module"]
|
||||
|
||||
[package.metadata.maturin]
|
||||
requires-dist = ["pandas~=1.1.4"]
|
||||
|
||||
3
pyproject.toml
Normal file
3
pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["maturin>=1.0,<2.0", "pandas>=1.1.4"]
|
||||
build-backend = "maturin"
|
||||
@@ -1,17 +1,16 @@
|
||||
from qvd import qvd_reader
|
||||
import os
|
||||
import pandas as pd
|
||||
import numpy
|
||||
import numpy as np
|
||||
|
||||
|
||||
class TestQvdReader():
|
||||
def test_read_shape(self):
|
||||
qvd = qvd_reader.read('test_files/AAPL.qvd')
|
||||
csv = pd.read_csv('test_files/AAPL.csv', float_precision='round_trip')
|
||||
qvd = qvd_reader.read(f'{os.path.dirname(__file__)}/test_files/AAPL.qvd')
|
||||
csv = pd.read_csv(f'{os.path.dirname(__file__)}/test_files/AAPL.csv', float_precision='round_trip')
|
||||
assert qvd.shape == csv.shape
|
||||
|
||||
def test_read_size(self):
|
||||
qvd = qvd_reader.read('test_files/AAPL.qvd')
|
||||
csv = pd.read_csv('test_files/AAPL.csv', float_precision='round_trip')
|
||||
print(qvd.columns)
|
||||
print(csv.columns)
|
||||
assert numpy.array_equal(qvd.columns, csv.columns)
|
||||
qvd = qvd_reader.read(f'{os.path.dirname(__file__)}/test_files/AAPL.qvd')
|
||||
csv = pd.read_csv(f'{os.path.dirname(__file__)}/test_files/AAPL.csv', float_precision='round_trip')
|
||||
assert np.array_equal(np.sort(qvd.columns, axis=0), np.sort(csv.columns, axis=0))
|
||||
|
||||
Reference in New Issue
Block a user