Skip to content

Commit

Permalink
Updated to version 1.0.1 and made pip installable
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonytw committed May 30, 2020
1 parent a578503 commit 88a4898
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
10 changes: 5 additions & 5 deletions audata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
__VERSION_MAJOR__ = '20'
__VERSION_MINOR__ = '03'.lstrip('0')
__VERSION_BUILD__ = '30'.lstrip('0')
__VERSION_TAGS__ = '2217'.lstrip('0')
__VERSION_MAJOR__ = '1'
__VERSION_MINOR__ = '0'
__VERSION_BUILD__ = '1'
__VERSION_TAGS__ = ''

__VERSION_LIST__ = [
__VERSION_MAJOR__,
__VERSION_MINOR__,
__VERSION_BUILD__,
__VERSION_TAGS__]

__VERSION__ = '{}.{}.{}b{}'.format(*__VERSION_LIST__)
__VERSION__ = f'{__VERSION_MAJOR__}.{__VERSION_MINOR__}.{__VERSION_BUILD__}{__VERSION_TAGS__}'

__DATA_VERSION__ = 1

Expand Down
4 changes: 2 additions & 2 deletions audata/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from typing import Optional, Union, Literal

from audata import __VERSION_LIST__, __DATA_VERSION__
from audata import __VERSION__, __DATA_VERSION__
from audata._utils import json2dict, dict2json
from audata.group import Group

Expand Down Expand Up @@ -147,7 +147,7 @@ def new(cls,
f = h5.File(filename, 'w', **kwargs)
f.create_group('.meta')
f['.meta'].attrs['audata'] = dict2json({
'version': [int(x) for x in __VERSION_LIST__],
'version': __VERSION__,
'data_version': __DATA_VERSION__
})
f['.meta'].attrs['data'] = dict2json({
Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Auton Universal Data (audata) Library

[Documentation](https://audata.readthedocs.io/en/latest/)

## Installation

```
pip install audata
```

## Bulding

```
Expand Down
1 change: 1 addition & 0 deletions rebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

python setup.py bdist_wheel
python setup.py sdist
pip install -U dist/*.whl
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def read(fn):
'tzlocal',
'h5py'
],
python_requires='>=3.8',
include_dirs=[np.get_include()],
packages=find_packages()
)

0 comments on commit 88a4898

Please sign in to comment.