Skip to content

Commit ba90c5d

Browse files
committed
setup requirements update
1 parent 7b906f0 commit ba90c5d

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ nil_app.manipulate_labels.relabel('my_segm.nii.gz', 'my_new_segm.nii.gz', [1, 2
3434
### Instructions
3535

3636
+ [Documentation](https://github.com/SebastianoF/nilabels/wiki)
37-
+ [How to install](https://github.com/SebastianoF/nilabels/wiki/Instructions) - not yet pip installable
37+
+ [How to install](https://github.com/SebastianoF/nilabels/wiki/Instructions)
3838
+ [How to run the tests](https://github.com/SebastianoF/nilabels/wiki/Testing)
3939

4040

nilabels/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
__version__ = 'v0.0.6'
3+
__version__ = 'v0.0.7' # update also in setup.py
44
root_dir = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
55

66
info = {

setup.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
#!/usr/bin/env python
22

3-
from nilabels.definitions import __version__
3+
import os
44
from setuptools import setup, find_packages
5-
# from distutils.core import setup
5+
6+
7+
def requirements2list(pfi_txt='requirements.txt'):
8+
here = os.path.dirname(os.path.realpath(__file__))
9+
f = open(os.path.join(here, pfi_txt), 'r')
10+
l = []
11+
for line in f.readlines():
12+
l.append(line.replace('\n', ''))
13+
return l
14+
615

716
setup(name='nilabels',
8-
version='v0.0.6',
17+
version='v0.0.7', # update also in definitions.py
918
description='Toolkit to manipulate and measure image segmentations in nifti format.',
1019
author='sebastiano ferraris',
1120
author_email='[email protected]',
1221
license='MIT',
1322
url='https://github.com/SebastianoF/nilabels',
1423
packages=find_packages(),
24+
install_requires=requirements2list()
1525
)
1626

0 commit comments

Comments
 (0)