File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 3737import re as re_
3838import typing
3939from functools import cached_property, lru_cache
40+ from itertools import zip_longest
4041from math import pi, sqrt
4142from operator import attrgetter
4243
4344import natsort
4445import networkx as nx
4546import numpy
4647from lxml import etree as etree_
47- from six.moves import zip_longest
4848
4949import neuroml
5050import neuroml.neuro_lex_ids
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ regenerate () {
2323
2424
2525 PYTHONPATH=" $PYTHONPATH :." generateDS -o nml.py --use-getter-setter=none --user-methods=helper_methods.py --export=" write validate" --custom-imports-template=gds_imports-template.py $SCHEMA_FILE
26+ # replace six
27+ sed -i ' s/from six.moves/from itertools/' nml.py
2628 # correct path to generatedssupersuper module file
2729 sed -i ' s/from generatedssupersuper/from .generatedssupersuper/' nml.py
2830 sed -i ' s/from generatedscollector/from .generatedscollector/' nml.py
Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ classifiers =
2626[options]
2727install_requires =
2828 lxml
29- six
3029 networkx
31- numpy
32- tables
33- typing; python_version<"3.5"
30+ # tables 3.10+ support numpy2x, but no wheels are provided for py<3.10
31+ numpy<2.0; python_version<"3.10"
32+ tables; python_version<"3.10"
33+ # for py>3.10, specify minimum tables version and let that choose appropriate numpy
34+ numpy; python_version>="3.10"
35+ tables>3.10; python_version>="3.10"
3436 natsort
3537
3638packages = find:
You can’t perform that action at this time.
0 commit comments