|
4 | 4 | from setuptools import setup, find_packages |
5 | 5 |
|
6 | 6 | # Get the current version number from inside the module |
7 | | -with open(os.path.join('fooof', 'version.py')) as vf: |
8 | | - exec(vf.read()) |
| 7 | +with open(os.path.join('fooof', 'version.py')) as version_file: |
| 8 | + exec(version_file.read()) |
9 | 9 |
|
10 | | -# Copy in long description. |
11 | | -# Note: this is a partial copy from the README |
12 | | -# Only update here in coordination with the README, to keep things consistent. |
13 | | -LONG_DESCRIPTION = \ |
14 | | -""" |
15 | | -FOOOF: Fitting Oscillations & One-Over F |
| 10 | +# Load the long description from the README |
| 11 | +with open('README.rst') as readme_file: |
| 12 | + long_description = readme_file.read() |
16 | 13 |
|
17 | | -FOOOF is a fast, efficient, physiologically-informed model to parameterize neural |
18 | | -power spectra, characterizing both the aperiodic & periodic components. |
19 | | -
|
20 | | -The model conceives of the neural power spectrum as consisting of two distinct components: |
21 | | -
|
22 | | -1) an aperiodic component, reflecting 1/f like characteristics, modeled with an exponential fit, with |
23 | | -2) band-limited peaks, reflecting putative oscillations, and modeled as Gaussians |
24 | | -
|
25 | | -The module includes: |
26 | | -
|
27 | | -- Code for applying models to parameterize neural power spectra |
28 | | -- Plotting functions for visualizing power spectra, model fits, and model parameters |
29 | | -- Analysis functions for examining model components and parameters |
30 | | -- Utilities for Input/Output management, data management and analysis reports |
31 | | -- Simulation code for simulating power spectra for methods testing |
32 | | -
|
33 | | -More details are available on the documentation site. |
34 | | -
|
35 | | -Documentation: https://fooof-tools.github.io/ |
36 | | -
|
37 | | -If you use this code in your project, please cite: |
38 | | -
|
39 | | -Haller M, Donoghue T, Peterson E, Varma P, Sebastian P, Gao R, Noto T, Knight RT, Shestyuk A, |
40 | | -Voytek B (2018) Parameterizing Neural Power Spectra. bioRxiv, 299859. doi: https://doi.org/10.1101/299859 |
41 | | -
|
42 | | -A full description of the method and approach is available in this paper. |
43 | | -
|
44 | | -Direct Paper Link: https://www.biorxiv.org/content/10.1101/299859v1 |
45 | | -""" |
| 14 | +# Load the required dependencies from the requirements file |
| 15 | +with open("requirements.txt") as requirements_file: |
| 16 | + install_requires = requirements_file.read().splitlines() |
46 | 17 |
|
47 | 18 | setup( |
48 | 19 | name = 'fooof', |
49 | 20 | version = __version__, |
50 | 21 | description = 'fitting oscillations & one-over f', |
51 | | - long_description = LONG_DESCRIPTION, |
| 22 | + long_description = long_description, |
52 | 23 | python_requires = '>=3.5', |
53 | 24 | author = 'The Voytek Lab', |
54 | 25 | author_email = 'voyteklab@gmail.com', |
|
80 | 51 | }, |
81 | 52 | download_url = 'https://github.com/fooof-tools/fooof/releases', |
82 | 53 | keywords = ['neuroscience', 'neural oscillations', 'power spectra', '1/f', 'electrophysiology'], |
83 | | - install_requires = ['numpy', 'scipy>=0.19.0'], |
| 54 | + install_requires = install_requires, |
84 | 55 | tests_require = ['pytest'], |
85 | 56 | extras_require = { |
86 | 57 | 'plot' : ['matplotlib'], |
|
0 commit comments