Skip to content

Commit 0d81f82

Browse files
committed
Check for python version and running unit tests
1 parent 6411438 commit 0d81f82

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ for complexity of deep learning architectures.
2828

2929
## Installation
3030

31-
Install with pip from [pypi](https://pypi.python.org/pypi/bristol).
31+
Install with pip from [pypi](https://pypi.python.org/pypi/bristol), as of 0.2.14 we prefer Python > 3.9
3232

3333
```bash
3434
pip install bristol
3535
```
3636

37+
Running tests
38+
39+
```bash
40+
bash run_tests.py
41+
```
42+
3743
To use the latest development version
3844

3945
```bash

bristol/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__='0.2.12'
1+
__version__='0.2.14'

run_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# Run tests
3+
#
4+
python -m unittest discover test

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
with open('README.md') as f:
77
long_description = f.read()
88

9+
import sys
10+
if (sys.version_info.major, sys.version_info.minor) < (3,9):
11+
sys.exit(' Python <= 3.9 is not supported or preferred')
12+
913
setup(
1014
name='bristol',
1115
version=__version__,
@@ -20,7 +24,7 @@
2024
install_requires=[
2125
'numpy >= 1.11',
2226
'torch >= 1.3.0',
23-
'torchvision >= 0.4.1a0+d94043a'
27+
'torchvision >= 0.4.1'
2428
],
2529
test_suite="test",
2630
zip_safe=False

0 commit comments

Comments
 (0)