Skip to content

Commit 7adec30

Browse files
Fix package installation issue
1 parent d9c86ac commit 7adec30

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

cloudinary_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.4"
1+
from cloudinary_cli.version import __version__
22

33
import cloudinary
44

cloudinary_cli/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "1.0.4"

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/usr/bin/env python3
22

33
import setuptools
4-
from cloudinary_cli import __version__
54

5+
with open("README.md", "r") as rmf:
6+
long_description = rmf.read()
67

7-
with open("README.md", "r") as fh:
8-
long_description = fh.read()
8+
with open('cloudinary_cli/version.py') as vf:
9+
version = vf.readline().strip().split('"')[1]
910

1011
setuptools.setup(
1112
name="cloudinary-cli",
12-
version=__version__,
13+
version=version,
1314
author="Cloudinary, Brian Luk",
1415
1516
classifiers=[

0 commit comments

Comments
 (0)