Skip to content

Commit cb9c750

Browse files
authored
Merge pull request #156 from Neuroinflab/pypiinstall
Pypi Install
2 parents af3e2a1 + f1301eb commit cb9c750

File tree

7 files changed

+219
-88
lines changed

7 files changed

+219
-88
lines changed

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ need to install jupyter-notebook. Do this by
5050

5151
.. code-block:: bash
5252
53-
pip install jupyter notebook
53+
pip install jupyter notebook
5454
5555
5656
Figures
@@ -69,9 +69,13 @@ This library includes all the necessary scripts to generate the figures for pape
6969
Installation
7070
------------
7171

72-
`kCSD-python Installation`_
72+
.. code-block:: bash
73+
74+
user:~/$ pip install kcsd
75+
76+
`More Installations`_
7377

74-
.. _kCSD-python Installation : https://kcsd-python.readthedocs.io/en/latest/INSTALL.html
78+
.. _More Installations : https://kcsd-python.readthedocs.io/en/latest/INSTALL.html
7579

7680

7781
Documentation

docs/source/INSTALL.rst

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
Installation
22
------------
33

4-
Clone repository
5-
~~~~~~~~~~~~~~~~
6-
7-
.. code-block:: bash
8-
9-
user:~$ git clone https://github.com/Neuroinflab/kCSD-python.git
10-
user:~$ cd kCSD-python
11-
user:~/kCSD-python$
12-
13-
14-
Bash or Anaconda env
15-
~~~~~~~~~~~~~~~~~~~~
4+
From PyPi
5+
~~~~~~~~~
166

177
.. code-block:: bash
188
19-
user:~/kCSD-python$ pip install .
9+
user:~$ pip install kcsd
2010
2111
22-
or
12+
From repository
13+
~~~~~~~~~~~~~~~~
2314

2415
.. code-block:: bash
2516
17+
user:~$ git clone https://github.com/Neuroinflab/kCSD-python.git
18+
user:~$ cd kCSD-python
2619
user:~/kCSD-python$ python setup.py install
20+
21+
22+
On Anaconda
23+
~~~~~~~~~~~
2724

25+
.. code-block:: bash
26+
27+
(base)user:~/kCSD-python$ conda activate testkcsd
28+
(testkcsd)user:~/kCSD-python$ pip install kcsd
2829
2930
3031
Development and testing

docs/source/TUTORIALS.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ install jupyter notebook on your desktop.
2121

2222
.. code-block:: bash
2323
24-
git clone https://github.com/Neuroinflab/kCSD-python.git
25-
cd kCSD-python
26-
pip install .
27-
pip install jupyterlab
24+
pip install kcsd
25+
pip install jupyter notebook
2826
2927
3028

docs/source/conf.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
1919
#
20-
# import os
21-
# import sys
22-
# sys.path.insert(0, os.path.abspath('.'))
20+
import os
21+
import sys
22+
sys.path.insert(0, os.path.abspath('.'))
23+
sys.path.insert(0, os.path.abspath('../../'))
2324

2425

2526
# -- General configuration ------------------------------------------------
@@ -69,7 +70,7 @@
6970
#
7071
# This is also used if you do content translation via gettext catalogs.
7172
# Usually you set "language" from the command line for these cases.
72-
language = None
73+
language = 'en'
7374

7475
# List of patterns, relative to source directory, that match files and
7576
# directories to ignore when looking for source files.
@@ -99,7 +100,8 @@
99100
# Add any paths that contain custom static files (such as style sheets) here,
100101
# relative to this directory. They are copied after the builtin static files,
101102
# so a file named "default.css" will overwrite the builtin "default.css".
102-
html_static_path = ['_static']
103+
# html_static_path = ['_static']
104+
html_static_path = []
103105

104106
# Custom sidebar templates, must be a dictionary that maps document names
105107
# to template names.
@@ -147,8 +149,11 @@
147149
# (source start file, target name, title,
148150
# author, documentclass [howto, manual, or own class]).
149151
latex_documents = [
150-
(master_doc, 'kCSD-python.tex', 'kCSD-python Documentation',
151-
'Chintaluri et.al.', 'manual'),
152+
(master_doc,
153+
'kCSD-python.tex',
154+
'kCSD-python Documentation',
155+
'Chintaluri et al.',
156+
'manual'),
152157
]
153158

154159

docs/source/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Requirements for building documentation
22
scipy
3-
numpy>=1.8.2
3+
numpy
4+
matplotlib
45
numpydoc
56
sphinx
67

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def readme():
1919

2020

2121
setup(name='kcsd',
22-
version='2.0',
22+
version='2.0.1',
2323
description='kernel current source density methods',
2424
long_description=readme(),
2525
classifiers=[
@@ -54,10 +54,10 @@ def readme():
5454
'figures/*'
5555
]
5656
},
57-
install_requires=['numpy>=1.8.0',
58-
'scipy>=0.14.0',
59-
'matplotlib>=2.0'],
60-
extras_require={'docs': ['numpydoc>=0.5',
61-
'sphinx>=1.2.2']},
57+
install_requires=['numpy>=1.19',
58+
'scipy>=1.8.0',
59+
'matplotlib>=3.6'],
60+
extras_require={'docs': ['numpydoc>=1.6.0',
61+
'sphinx>=5']},
6262
test_suite='kcsd.tests',
6363
zip_safe=False)

tutorials/skcsd_tutorial.ipynb

Lines changed: 175 additions & 53 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)