Skip to content

Commit c8cb534

Browse files
committed
Bug fixes with packaging
1 parent e009618 commit c8cb534

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

requirements_dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
setuptools>=25.0.1
2+
twine>=6.1.0
3+
wheel>=0.45.1

sdk/commands/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def wrapper(*args, **kwargs):
4848
if env_file:
4949
load_dotenv(env_file)
5050
else:
51-
load_dotenv()
51+
# Look for .env in the current working directory
52+
cwd_env = os.path.join(os.getcwd(), '.env')
53+
load_dotenv(cwd_env)
5254

5355
# Now validate required options
5456
missing = []

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"click>=8.0.0",
3030
"google-auth>=2.0.0",
3131
"requests>=2.25.0",
32+
"python-dotenv>=1.0.0",
3233
],
3334
entry_points={
3435
"console_scripts": [

0 commit comments

Comments
 (0)