Skip to content

Commit 72c30e9

Browse files
author
agrandiere
committed
Merge branch 'dev'
2 parents afc9faa + 36c2d57 commit 72c30e9

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
from setuptools import setup
2-
import os
3-
4-
VERSION = None
5-
path_version = os.path.join(os.path.dirname(__file__), './version.py')
6-
exec(open(path_version).read())
72

83
setup(
94
name = 'sightengine',
105
packages = ['sightengine'],
11-
version = VERSION,
6+
version = '1.2.1',
127
description = 'Sightengine Python client',
138
author = 'Sightengine',
149
author_email='[email protected]',

sightengine/__init__.py

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

sightengine/check.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
THE SOFTWARE.
2020
"""
2121

22-
import requests, json, os
22+
import requests, json, sightengine
2323
from io import BytesIO
2424

25-
VERSION = None
26-
path_version = os.path.join(os.path.dirname(__file__), '../version.py')
27-
exec(open(path_version).read())
25+
VERSION = sightengine.__version__
2826

2927
headers = requests.utils.default_headers()
3028
headers.update(

sightengine/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
"""
2121

2222
import requests, json, os
23+
import sightengine
2324
from .check import Check
2425

25-
VERSION = None
26-
path_version = os.path.join(os.path.dirname(__file__), '../version.py')
27-
exec(open(path_version).read())
26+
VERSION = sightengine.__version__
2827

2928
headers = requests.utils.default_headers()
3029
headers.update(

version.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)