-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* version still in setup, but everything else is now in pyproject.toml
- Loading branch information
1 parent
0235aa2
commit 51eab60
Showing
4 changed files
with
86 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
include macapype/utils/*.json | ||
include macapype/bash/* | ||
include workflows/params*.json | ||
|
||
include macapype/_version.py |
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,57 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", "wheel" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
dynamic = ['version'] | ||
name = "macapype" | ||
maintainers = [{name = "Macapype developers" }] | ||
authors= [{name = "Macatools team"}] | ||
description= "Pipeline for anatomic processing for macaque " | ||
readme = {content-type = "text/markdown", file = "README.md"} | ||
requires-python = ">= 3.10" | ||
license = {text = "BSD-3-Clause"} | ||
|
||
dependencies = [ | ||
"nipype", | ||
"rdflib==6.3.1", | ||
"pandas==2.2.3", | ||
"matplotlib", | ||
"nilearn", | ||
"networkx", | ||
"pybids", | ||
"scikit-image", | ||
"nibabel", | ||
"numpy", | ||
"SimpleITK" | ||
] | ||
|
||
[project.optional-dependencies] | ||
# Dependencies for building the documentation | ||
doc_deps = [ | ||
"sphinx", | ||
"sphinx-gallery", | ||
"sphinx_bootstrap_theme", | ||
"numpydoc", | ||
"sphinxcontrib-fulltoc" | ||
] | ||
|
||
# Dependencies for test | ||
test_deps = [ | ||
"pytest", | ||
"pytest-cov", | ||
"codecov", | ||
] | ||
flake_deps = [ | ||
"flake8" | ||
] | ||
|
||
# real calls | ||
test=["macapype[test_deps, flake_deps]"] | ||
doc=["macapype[flake_deps, test_deps, doc_deps]"] | ||
|
||
|
||
[tool.setuptools.packages] | ||
find = {} # Scanning implicit namespaces is active by default |
This file was deleted.
Oops, something went wrong.
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,52 +1,31 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
#!/usr/bin/env python | ||
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | ||
# vi: set ft=python sts=4 ts=4 sw=4 et: | ||
"""Pydra: Dataflow Engine | ||
import re | ||
from setuptools import find_packages, setup | ||
|
||
verstr = "unknown" | ||
try: | ||
verstrline = open('macapype/_version.py', "rt").read() | ||
except EnvironmentError: | ||
pass # Okay, there is no version file. | ||
else: | ||
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" | ||
mo = re.search(VSRE, verstrline, re.M) | ||
if mo: | ||
verstr = mo.group(1) | ||
else: | ||
raise RuntimeError("unable to find version in yourpackage/_version.py") | ||
|
||
print("Will not build conda module") | ||
""" | ||
import sys | ||
from setuptools import setup | ||
|
||
test_deps = ['codecov', 'pytest', 'pytest-cov'] | ||
|
||
flake_deps = ['flake8'] | ||
|
||
doc_deps = ['sphinx', | ||
'sphinx-gallery', | ||
'sphinx_bootstrap_theme', | ||
'numpydoc', | ||
'sphinxcontrib-fulltoc', | ||
'matplotlib'] | ||
import re | ||
|
||
with open('requirements.txt') as f: | ||
requirements = f.read().splitlines() | ||
def _get_version(): | ||
|
||
setup( | ||
name="macapype", | ||
version=verstr, | ||
packages=find_packages(), | ||
author="macatools team", | ||
description="Pipeline for anatomic processing for macaque", | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
license='BSD 3', | ||
entry_points={ | ||
'console_scripts': ['segment_pnh = workflows.segment_pnh:main']}, | ||
install_requires=requirements, | ||
extras_require={ | ||
'test': test_deps + flake_deps, | ||
'doc': flake_deps + test_deps + doc_deps | ||
}, | ||
include_package_data=True) | ||
verstr = "unknown" | ||
try: | ||
verstrline = open('macapype/_version.py', "rt").read() | ||
except EnvironmentError: | ||
pass # Okay, there is no version file. | ||
else: | ||
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" | ||
mo = re.search(VSRE, verstrline, re.M) | ||
if mo: | ||
verstr = mo.group(1) | ||
else: | ||
raise RuntimeError("unable to find version in yourpackage/_version.py") | ||
return verstr | ||
|
||
if __name__ == "__main__": | ||
setup( | ||
version=_get_version() | ||
) |