Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gemd/units/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
from typing import Union, List, Tuple, Generator, Any

from pint import UnitRegistry, Unit, register_unit_format
from pint.compat import tokenizer
try: # Pint 0.23 migrated the location of this method, and augmented it
from pint.pint_eval import tokenizer
except ImportError: # pragma: no cover
from pint.compat import tokenizer
from tokenize import NAME, NUMBER, OP, ERRORTOKEN, TokenInfo
# alias the error that is thrown when units are incompatible
# this helps to isolate the dependence on pint
Expand Down
3 changes: 0 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
pint==0.20
sphinx==4.3.0
sphinxcontrib-apidoc==0.3.0
sphinx-rtd-theme==1.0.0
deprecation==2.1.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packages.append("")

setup(name='gemd',
version='1.16.7',
version='1.16.8',
python_requires='>=3.8',
url='http://github.com/CitrineInformatics/gemd-python',
description="Python binding for Citrine's GEMD data model",
Expand All @@ -23,7 +23,7 @@
'tests.units': ['test_units.txt']
},
install_requires=[
"pint>=0.20,<0.23",
"pint>=0.20,<0.24",
"deprecation>=2.1.0,<3"
],
extras_require={
Expand Down
3 changes: 3 additions & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ pytest-cov==4.0.0
pandas==1.5.0
toolz==0.12.0
derp==0.1.1
sphinx==4.3.0
sphinxcontrib-apidoc==0.3.0
sphinx-rtd-theme==1.0.0