Skip to content

Commit 78beb24

Browse files
committed
Squashed commit of the following:
commit 403b848 Author: Alex Eftimiades <[email protected]> Date: Mon Dec 13 08:14:00 2021 -0500 set version to 0.0.2 commit 86bef79 Author: Alex Eftimiades <[email protected]> Date: Fri Dec 10 14:17:06 2021 -0500 add pypi link commit c513852 Author: Alex Eftimiades <[email protected]> Date: Fri Dec 10 14:00:07 2021 -0500 developers should clone from github commit 22b447a Author: Alex Eftimiades <[email protected]> Date: Fri Dec 10 11:09:36 2021 -0500 __version__ importable from version.py
1 parent a9cde08 commit 78beb24

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
- python/install-packages:
3333
pkg-manager: pip-dist
3434
pip-dependency-file:
35+
- run:
36+
name: Run pre-commit
37+
command: pip install pre-commit && pre-commit run --all
3538
- run:
3639
name: Run tests
3740
# This assumes pytest is installed via the install-package step above
3841
no_output_timeout: 30m
3942
command: pip install pytest && pytest tests
40-
- run:
41-
name: Run pre-commit
42-
command: pip install pre-commit && pre-commit run --all
4343

4444
# Invoke jobs via workflows
4545
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="docs/images/logo.svg" alt="drawing" width="250px"/>
22

3-
[![CircleCI](https://circleci.com/gh/FINRAOS/model-validation-toolkit/tree/main.svg?style=svg)](https://circleci.com/gh/FINRAOS/Gatekeeper/tree/main)[![Join the chat at https://gitter.im/FINRAOS/model-validation-toolkit](https://badges.gitter.im/FINRAOS/model-validation-toolkit.svg)](https://gitter.im/FINRAOS/model-validation-toolkit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)![PyPI version](https://img.shields.io/pypi/v/mvtk)
3+
[![CircleCI](https://circleci.com/gh/FINRAOS/model-validation-toolkit/tree/main.svg?style=svg)](https://circleci.com/gh/FINRAOS/Gatekeeper/tree/main)[![Join the chat at https://gitter.im/FINRAOS/model-validation-toolkit](https://badges.gitter.im/FINRAOS/model-validation-toolkit.svg)](https://gitter.im/FINRAOS/model-validation-toolkit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![PyPI version](https://img.shields.io/pypi/v/mvtk)](https://pypi.org/project/mvtk/)
44

55
# Model Validation Tookit
66

@@ -15,7 +15,10 @@ Alternatively, you can [build jaxlib from
1515
source](https://jax.readthedocs.io/en/latest/developer.html#additional-notes-for-building-jaxlib-from-source-on-windows).
1616

1717
## Developers
18-
Run `pip install -e "mvtk[doc]"`.
18+
19+
Check out this repository and `cd` into the directory.
20+
21+
Run `pip install -e ".[doc]"`.
1922

2023
The `[doc]` is used to install dependencies for building documentation.
2124

mvtk/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
from . import supervisor
33
from . import credibility
44
from . import interprenet
5+
from mvtk.version import __version__ as __version__

mvtk/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.2"

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from setuptools import find_packages, setup
22

3-
VERSION = "0.0.2"
3+
_dct = {}
4+
with open("mvtk/version.py") as f:
5+
exec(f.read(), _dct)
6+
__version__ = _dct["__version__"]
47

58
extras_require = {
69
"doc": [
@@ -17,7 +20,7 @@
1720

1821
setup(
1922
name="mvtk",
20-
version=VERSION,
23+
version=__version__,
2124
license="Apache-2.0",
2225
author="Alex Eftimiades",
2326
author_email="[email protected]",

tests/package.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import mvtk
2+
3+
4+
def test_version():
5+
assert isinstance(mvtk.__version__, str)

0 commit comments

Comments
 (0)