-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from NeuralEnsemble/experimental
To v0.5.3; uses setup.cfg; tested on mac & win too
- Loading branch information
Showing
15 changed files
with
111 additions
and
118 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 |
---|---|---|
|
@@ -15,35 +15,33 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
runs-on: [ubuntu-latest] | ||
runs-on: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install libhdf5-serial-dev liblzo2-dev libgraphviz-dev -y | ||
#sudo apt-get install libhdf5-serial-dev liblzo2-dev libgraphviz-dev -y | ||
python -m pip install --upgrade pip | ||
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Build package | ||
run: | | ||
pip install .[full] | ||
- name: Test with pytest | ||
if: ${{ matrix.runs-on == 'ubuntu-latest' }} | ||
run: | | ||
pytest | ||
# Just test on linux for now... | ||
pytest -vs | ||
- name: Run examples | ||
if: ${{ matrix.python-version != '3.7' && matrix.runs-on == 'macos-latest' }} # issue with _bz2 module... | ||
run: | | ||
cd ./neuroml/examples && python run_all.py | ||
|
@@ -52,6 +50,7 @@ jobs: | |
pip list | ||
- name: Lint with flake8 | ||
if: ${{ matrix.runs-on == 'ubuntu-latest' }} | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
|
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 |
---|---|---|
|
@@ -12,4 +12,7 @@ sphinx: | |
|
||
python: | ||
install: | ||
- requirements: doc/requirements.txt | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- doc |
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
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
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,3 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
Oops, something went wrong.
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,3 +1,72 @@ | ||
[metadata] | ||
name = libNeuroML | ||
version = 0.5.3 | ||
author_email = [email protected], [email protected] | ||
author = libNeuroML authors and contributors | ||
description = A Python library for working with NeuroML descriptions of neuronal models | ||
long_description = file: README.md | ||
long_description_content_type=text/markdown | ||
url = http://libneuroml.readthedocs.org/en/latest/ | ||
license = BSD-2-Clause | ||
classifiers = | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Natural Language :: English | ||
Operating System :: OS Independent | ||
Development Status :: 5 - Production/Stable | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Topic :: Scientific/Engineering :: Bio-Informatics | ||
Topic :: Scientific/Engineering | ||
|
||
[options] | ||
install_requires = | ||
lxml | ||
six | ||
networkx | ||
numpy | ||
tables>=3.3.0 | ||
typing; python_version<"3.5" | ||
|
||
packages = find: | ||
|
||
[options.packages.find] | ||
where = . | ||
include = neuroml* | ||
exclude = neuroml.test* | ||
|
||
[options.package_data] | ||
neuroml.nml = | ||
*.xsd | ||
|
||
|
||
[options.extras_require] | ||
test = | ||
pytest | ||
|
||
dev = | ||
wheel | ||
generateds >= 2.20a; python_version >= '3.0' | ||
cython | ||
numpy | ||
networkx | ||
flake8 | ||
pytest | ||
black ; python_version >= '3.0' | ||
|
||
doc = | ||
sphinxcontrib-bibtex | ||
pydata-sphinx-theme | ||
|
||
full = | ||
libNeuroML[test] | ||
libNeuroML[dev] | ||
libNeuroML[doc] | ||
|
||
[flake8] | ||
# ignore: | ||
# spacing around operators, comment blocks, in argument lists | ||
|
@@ -8,3 +77,8 @@ exclude = | |
neuroml/nml/helper_methods.py, | ||
doc, | ||
build | ||
|
||
[mypy] | ||
ignore_missing_imports = True | ||
follow_imports = silent | ||
exclude = (nml\.py|doc/|build/|helper_methods\.py|generateds_config\.py|examples/) |