Skip to content

Commit f581ff5

Browse files
committed
remove dotenv dependency
1 parent 031d876 commit f581ff5

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

pyclowder/connectors.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555
from email.mime.multipart import MIMEMultipart
5656
from string import Template
5757

58-
from dotenv import load_dotenv
59-
load_dotenv()
60-
6158

6259
class Connector(object):
6360
""" Class that will listen for messages.

pyclowder/extractors.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
import pyclowder.files
2525
import pyclowder.datasets
2626

27-
from dotenv import load_dotenv
28-
load_dotenv()
29-
clowder_version = float(os.getenv('CLOWDER_VERSION', '1'))
27+
clowder_version = int(os.getenv('CLOWDER_VERSION', '1'))
3028

3129

3230
class Extractor(object):

pyclowder/files.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
from pyclowder.collections import get_datasets, get_child_collections
1717
import pyclowder.api.v2.files as v2files
1818
import pyclowder.api.v1.files as v1files
19-
from dotenv import load_dotenv
20-
load_dotenv()
21-
clowder_version = float(os.getenv('clowder_version', '1.0'))
19+
20+
clowder_version = int(os.getenv('CLOWDER_VERSION', '1'))
2221

2322
# Some sources of urllib3 support warning suppression, but not all
2423
try:

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ requests-toolbelt==0.9.1
2222
# via pyclowder (setup.py)
2323
urllib3==1.26.8
2424
# via requests
25-
python-dotenv

0 commit comments

Comments
 (0)