[setup] improvements
This commit is contained in:
parent
b48b2b1a92
commit
72fe7e2df8
9
fishbook/package_info.json
Normal file
9
fishbook/package_info.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"VERSION": "0.2.dev",
|
||||||
|
"STATUS": "developlemt",
|
||||||
|
"AUTHOR": "Jan Grewe",
|
||||||
|
"COPYRIGHT": "2020, Neuroethology group, Uni Tübingen, Jan Grewe",
|
||||||
|
"CONTACT": "jan.grewe@g-node.org",
|
||||||
|
"BRIEF": "Database providing an overview of the electrophysiological data recorded in the group.",
|
||||||
|
"HOMEPAGE": "https://whale.am28.uni-tuebingen.de/fishbook"
|
||||||
|
}
|
33
setup.py
33
setup.py
@ -1,20 +1,29 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import json
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
from setuptools import find_packages
|
from setuptools import find_packages
|
||||||
import sys
|
|
||||||
assert(sys.version_info >= (3, 0))
|
assert(sys.version_info >= (3, 0))
|
||||||
|
|
||||||
__version__ = 0.1
|
with open(os.path.join("fishbook", "package_info.json")) as infofile:
|
||||||
# exec(open('fishbook/version.py').read())
|
infodict = json.load(infofile)
|
||||||
|
|
||||||
|
VERSION = infodict["VERSION"]
|
||||||
|
AUTHOR = infodict["AUTHOR"]
|
||||||
|
CONTACT = infodict["CONTACT"]
|
||||||
|
BRIEF = infodict["BRIEF"]
|
||||||
|
HOMEPAGE = infodict["HOMEPAGE"]
|
||||||
|
|
||||||
requires = ['datajoint', 'nixio', 'numpy', 'PyYAML', 'scipy', 'tqdm', 'backports-datetime-fromisoformat']
|
requirements = ['datajoint', 'nixio', 'numpy', 'PyYAML', 'scipy', 'tqdm', 'backports-datetime-fromisoformat']
|
||||||
print(find_packages(exclude=['contrib', 'doc', 'tests*', 'site']))
|
|
||||||
|
|
||||||
setup(name='fishbook',
|
setup(name='fishbook',
|
||||||
version = __version__,
|
version = VERSION,
|
||||||
packages = find_packages(exclude=['contrib', 'doc', 'tests*']),
|
packages = find_packages(exclude=['doc*', 'tests*', 'site']),
|
||||||
description = 'Database providing an overview of the electrophysiological data recorded in the group.',
|
description = BRIEF,
|
||||||
author = 'Jan Grewe',
|
author = AUTHOR,
|
||||||
install_requires = requires if sys.version_info < (3,7) else requires[:-1],
|
author_email=CONTACT,
|
||||||
entry_points = {'console_scripts': [
|
url=HOMEPAGE,
|
||||||
'fishbook-import=fishbook.cmd.data_import:main']}
|
license="GPLv3",
|
||||||
|
install_requires = requirements if sys.version_info < (3,7) else requirements[:-1],
|
||||||
|
entry_points = {'console_scripts': ['fishbook-import=fishbook.cmd.data_import:main']}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user