-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from jcreinhold/publish-pypi-1
Publish to pypi
- Loading branch information
Showing
6 changed files
with
83 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[metadata] | ||
name = intensity-normalization-jcreinhold | ||
version = 1.4.4 | ||
author = Jacob Reinhold | ||
author_email = jcreinhold@gmail.com | ||
description = Normalize the intensity of MR images | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
license = Apache License 2.0 | ||
url = https://github.com/jcreinhold/intensity-normalization | ||
project_urls = | ||
Bug Tracker = https://github.com/jcreinhold/intensity-normalization/issues | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: Apache Software License | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Topic :: Scientific/Engineering :: Medical Science Apps. | ||
|
||
[options] | ||
package_dir = | ||
= intensity_normalization | ||
packages = find: | ||
exclude = | ||
tests | ||
docs | ||
tutorials | ||
python_requires = >=3.6 | ||
install_requires = | ||
antspyx | ||
matplotlib | ||
nibabel | ||
numpy | ||
scikit-image | ||
scikit-learn | ||
scikit-fuzzy | ||
scipy | ||
statsmodels | ||
|
||
[options.packages.find] | ||
where = intensity_normalization | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
fcm-normalize = intensity_normalization.exec.fcm_normalize:main | ||
gmm-normalize = intensity_normalization.exec.gmm_normalize:main | ||
nyul-normalize = intensity_normalization.exec.nyul_normalize:main | ||
kde-normalize = intensity_normalization.exec.kde_normalize:main | ||
ws-normalize = intensity_normalization.exec.ws_normalize:main | ||
zscore-normalize = intensity_normalization.exec.zscore_normalize:main | ||
ravel-normalize = intensity_normalization.exec.ravel_normalize:main | ||
lsq-normalize = intensity_normalization.exec.lsq_normalize:main | ||
plot-hists = intensity_normalization.exec.plot_hists:main | ||
preprocess = intensity_normalization.exec.preprocess:main | ||
coregister = intensity_normalization.exec.coregister:main | ||
tissue-mask = intensity_normalization.exec.tissue_mask:main | ||
norm-quality = intensity_normalization.exec.norm_quality:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,3 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
setup | ||
import setuptools | ||
|
||
Module installs intensity-normalization package | ||
Can be run via command: python setup.py install (or develop) | ||
Author: Jacob Reinhold (jacob.reinhold@jhu.edu) | ||
Created on: Apr 24, 2018 | ||
""" | ||
|
||
from setuptools import setup, find_packages | ||
from sys import platform | ||
import sys | ||
|
||
custom_args = sys.argv[2:].copy() | ||
del sys.argv[2:] | ||
|
||
install_antspy = '--antspy' in custom_args | ||
link_preprocess = '--preprocess' in custom_args | ||
|
||
console_scripts = ['fcm-normalize=intensity_normalization.exec.fcm_normalize:main', | ||
'gmm-normalize=intensity_normalization.exec.gmm_normalize:main', | ||
'nyul-normalize=intensity_normalization.exec.nyul_normalize:main', | ||
'kde-normalize=intensity_normalization.exec.kde_normalize:main', | ||
'ws-normalize=intensity_normalization.exec.ws_normalize:main', | ||
'zscore-normalize=intensity_normalization.exec.zscore_normalize:main', | ||
'ravel-normalize=intensity_normalization.exec.ravel_normalize:main', | ||
'lsq-normalize=intensity_normalization.exec.lsq_normalize:main', | ||
'plot-hists=intensity_normalization.exec.plot_hists:main'] | ||
|
||
if link_preprocess: console_scripts.extend(['preprocess=intensity_normalization.exec.preprocess:main', | ||
'coregister=intensity_normalization.exec.coregister:main', | ||
'tissue-mask=intensity_normalization.exec.tissue_mask:main', | ||
'norm-quality=intensity_normalization.exec.norm_quality:main']) | ||
|
||
with open('README.md', encoding="utf-8") as f: | ||
readme = f.read() | ||
|
||
with open('LICENSE', encoding="utf-8") as f: | ||
license = f.read() | ||
|
||
if platform not in ["linux", "linux32", "darwin"] and install_antspy: | ||
raise Exception('antspy package only supports linux and OS X, must install without antspy option') | ||
|
||
args = dict( | ||
name='intensity-normalization', | ||
version='1.4.4', | ||
description="Normalize the intensity values of MR images", | ||
long_description=readme, | ||
author='Jacob Reinhold', | ||
author_email='jacob.reinhold@jhu.edu', | ||
url='https://gitlab.com/jcreinhold/intensity-normalization', | ||
license=license, | ||
packages=find_packages(exclude=('tests', 'docs', 'tutorials')), | ||
entry_points={ | ||
'console_scripts': console_scripts | ||
}, | ||
keywords="mr intensity normalization", | ||
) | ||
|
||
setup(install_requires=['matplotlib', | ||
'nibabel', | ||
'numpy', | ||
'scikit-image', | ||
'scikit-learn', | ||
'scikit-fuzzy', | ||
'scipy', | ||
'statsmodels'] + ['antspyx'] if install_antspy else [], **args) | ||
setuptools.setup() |