-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update environment, change to pyproject.toml convention * update test and score list in readme * update environment * update environment
- Loading branch information
Showing
12 changed files
with
136 additions
and
94 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 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
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,9 +1,7 @@ | ||
name: networkunit_env | ||
channels: | ||
- damianavila82 | ||
- defaults | ||
dependencies: | ||
- rise | ||
- pip | ||
- pip: | ||
- jupyter==1.0.0 | ||
|
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 +1 @@ | ||
0.2.0dev | ||
0.2.1 |
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,68 @@ | ||
[project] | ||
name = "networkunit" | ||
description = "A SciUnit library for validation testing of spiking networks." | ||
version = "0.2.1" | ||
readme = "README.rst" | ||
authors = [ | ||
{ name = "NetworkUnit authors and contributors", email = "[email protected]" } | ||
] | ||
|
||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"nbconvert == 7.12.0", #remove when updating sciunit version | ||
"sciunit == 0.2.7", | ||
"elephant >= 0.7.0", | ||
"neo >= 0.9", | ||
"networkx >= 2.1", | ||
"tabulate >= 0.8.2", | ||
"seaborn >= 0.8.1", | ||
"numpy >= 1.15.3", | ||
"opencv-python" | ||
] | ||
|
||
[metadata] | ||
description-file = "README.md" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD-3-Clause", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Software Development :: Libraries :: Python Modules" | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/INM-6/networkunit" | ||
"Bug Tracker" = "https://github.com/INM-6/networkunit/issues" | ||
|
||
[project.scripts] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black", | ||
"bump2version", | ||
"flake8", | ||
"mypy", | ||
"pre-commit", | ||
"pydocstyle", | ||
"pylint", | ||
"pytest", | ||
"pytest-black", | ||
"pytest-cov", | ||
"pytest-flake8", | ||
"pytest-mypy", | ||
"pytest-pydocstyle", | ||
"pytest-pylint", | ||
"pytest-xdist", | ||
] | ||
doc = [ | ||
"sphinx", | ||
"sphinx-autodoc-typehints", | ||
"numpydoc>=1.1.0", | ||
"sphinx-tabs>=1.3.0", | ||
"sphinx-argparse>=0.4.0", | ||
"pygments", | ||
"recommonmark", | ||
] | ||
|
||
[build-system] | ||
build-backend = "flit_core.buildapi" | ||
requires = ["flit_core >=3.2,<4"] |
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,48 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# encoding: utf8 | ||
'Packaging configuration.' | ||
|
||
from setuptools import setup | ||
import os | ||
import sys | ||
from setuptools import setup # type: ignore | ||
|
||
long_description = open("README.rst").read() | ||
with open('requirements.txt', 'r') as fp: | ||
install_requires = fp.read() | ||
extras_require = {} | ||
for extra in ['docs']: | ||
with open('requirements-{0}.txt'.format(extra)) as fp: | ||
extras_require[extra] = fp.read() | ||
|
||
setup( | ||
name="networkunit", | ||
version='0.2.0', | ||
packages=['networkunit', 'figures', 'examples'], | ||
package_data={'networkunit':[ | ||
os.path.join('tests','*.py'), | ||
os.path.join('models','*.py'), | ||
os.path.join('models/backends','*.py'), | ||
os.path.join('capabilities','*.py'), | ||
os.path.join('scores','*.py'), | ||
os.path.join('plots','*.py'), | ||
'VERSION'], | ||
'figures':['*.png'], | ||
'examples':['*.py', '*.ipynb'] | ||
}, | ||
install_requires=install_requires, | ||
extras_require=extras_require, | ||
|
||
author="NetworkUnit authors and contributors", | ||
author_email="[email protected]", | ||
description="A SciUnit library for validation testing of neural network models.", | ||
long_description=long_description, | ||
license="BSD", | ||
url='https://github.com/INM-6/NetworkUnit', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
'Topic :: Scientific/Engineering'] | ||
) | ||
setup() # everything configured via pyproject.toml |
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,22 @@ | ||
[pytest] | ||
addopts = -n 0 --doctest-modules --pycodestyle --mypy --pylint --pylint-rcfile=.pylintrc --pydocstyle --cov --ignore=conda --ignore=env --ignore=.git --ignore=__pycache__ | ||
|
||
[pycodestyle] | ||
count = False | ||
#ignore = E226,E302,E41 | ||
exclude = .git/, .snakemake/, .pytest_cache/, sync-test-env/, conda/, env/ | ||
max-line-length = 120 | ||
statistics = True | ||
|
||
# as suggested by pylint docs for joint usage with other tools | ||
# http://pylint.pycqa.org/en/latest/faq.html?highlight=pylintrc#i-am-using-another-popular-linter-alongside-pylint-which-messages-should-i-disable-to-avoid-duplicates | ||
|
||
[pylint] | ||
options = unneeded-not, line-too-long, unnecessary-semicolon, trailing-whitespace, missing-final-newline, bad-indentation, multiple-statements, bare-except | ||
|
||
[pydocstyle] | ||
convention = numpy | ||
add-ignore = D300 | ||
|
||
[mypy] | ||
exclude = .git/, .snakemake/, .pytest_cache/, sync-test-env/, conda/, env/ |