Skip to content

Commit

Permalink
Package requires looser requirements versions (#493)
Browse files Browse the repository at this point in the history
* looser requirements

* test
  • Loading branch information
samuelduchesne committed Sep 14, 2023
1 parent 775721f commit 72406ae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions archetypal/__init__.py
Expand Up @@ -12,8 +12,8 @@

# Version of the package
from pkg_resources import get_distribution, DistributionNotFound
from pydantic_settings import BaseSettings
from pydantic import (
BaseSettings,
Field,
validator,
DirectoryPath,
Expand Down Expand Up @@ -62,7 +62,7 @@ class Config:
cache_responses: bool = Field(False, env="ARCHETYPAL_CACHE_RESPONSES")

# Debug behavior
debug = Field(False, env="ARCHETYPAL_DEBUG")
debug: bool = Field(False, env="ARCHETYPAL_DEBUG")

# write log to file and/or to console
log_file: bool = Field(False)
Expand Down Expand Up @@ -166,7 +166,7 @@ class Config:
Errors={"PrimaryKey": ["ErrorIndex"], "ParseDates": []},
)

zone_weight = ZoneWeight(n=0)
zone_weight: ZoneWeight = ZoneWeight(n=0)

ep_version: str = Field(
"9-2-0",
Expand Down
27 changes: 13 additions & 14 deletions requirements.txt
Expand Up @@ -5,20 +5,19 @@ pycountry~=20.7.3
scikit-learn~=1.0.2
pandas>=1.2.0,<2.0
numpy>=1.17
tqdm~=4.61.2
tqdm
tabulate~=0.8.9
path~=16.0.0
click~=8.0.1
outdated~=0.2.1
deprecation~=2.1.0
sigfig~=1.1.9
requests~=2.25.1
packaging~=21.0
pytest~=6.2.4
setuptools==67.7.2
click
outdated
deprecation
sigfig
requests
packaging
setuptools
CoolProp~=6.4.1
energy-pandas~=0.3.3
validator_collection~=1.5.0
pint==0.19
typing_extensions==4.3.0
pydantic
energy-pandas
validator_collection
pint<=0.19
typing_extensions
pydantic-settings
2 changes: 1 addition & 1 deletion tests/test_energypandas.py
Expand Up @@ -51,7 +51,7 @@ def test_plot_3d(self, rd_es, kind):
kind=kind,
cmap="Reds",
figsize=(4, 4),
edgecolors="grey",
# edgecolors="grey",
linewidths=0.01,
)

Expand Down

0 comments on commit 72406ae

Please sign in to comment.