File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from setuptools import setup
22import os
33
4- version_file = open (os .path .join (os .path .dirname (__file__ ), 'VERSION' ))
5- VERSION = version_file .read ().strip ()
4+ VERSION = None
5+ path_version = os .path .join (os .path .dirname (__file__ ), '../version.py' )
6+ exec (open (path_version ).read ())
67
78setup (
89 name = 'sightengine' ,
Original file line number Diff line number Diff line change 1919THE SOFTWARE.
2020"""
2121
22- import requests , json
22+ import requests , json , os
23+
24+ VERSION = None
25+ path_version = os .path .join (os .path .dirname (__file__ ), '../version.py' )
26+ exec (open (path_version ).read ())
2327
2428headers = requests .utils .default_headers ()
2529headers .update (
2630 {
27- 'User-Agent' : 'SE-SDK-Python ' + '1.1' ,
31+ 'User-Agent' : 'SE-SDK-Python ' + VERSION ,
2832 }
2933)
3034
Original file line number Diff line number Diff line change 1919THE SOFTWARE.
2020"""
2121
22- import requests , json
22+ import requests , json , os
2323from .check import Check
2424
25+ VERSION = None
26+ path_version = os .path .join (os .path .dirname (__file__ ), '../version.py' )
27+ exec (open (path_version ).read ())
28+
2529headers = requests .utils .default_headers ()
2630headers .update (
2731 {
28- 'User-Agent' : 'SE-SDK-Python ' + '1.1' ,
32+ 'User-Agent' : 'SE-SDK-Python ' + VERSION ,
2933 }
3034)
3135
Original file line number Diff line number Diff line change 1+
2+ VERSION = "1.1"
You can’t perform that action at this time.
0 commit comments