-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from descarteslabs/release/v0.3.2
v0.3.2 release
- Loading branch information
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,18 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import ast | ||
import sys | ||
import os | ||
import re | ||
from setuptools import setup, find_packages | ||
|
||
|
||
__version__ = "0.3.1" | ||
# Parse version out of descarteslabs/__init__.py | ||
_version_re = re.compile(r'__version__\s+=\s+(.*)') | ||
with open('descarteslabs/__init__.py', 'rb') as f: | ||
version = str(ast.literal_eval(_version_re.search( | ||
f.read().decode('utf-8')).group(1)) | ||
) | ||
|
||
|
||
def do_setup(): | ||
|
@@ -35,7 +41,7 @@ def do_setup(): | |
kwargs['author'] = 'Descartes Labs' | ||
kwargs['author_email'] = '[email protected]' | ||
kwargs['url'] = 'https://github.com/descarteslabs/descarteslabs-python' | ||
kwargs['download_url'] = "https://github.com/descarteslabs/descarteslabs-python/archive/v%s.tar.gz" % __version__ | ||
kwargs['download_url'] = "https://github.com/descarteslabs/descarteslabs-python/archive/v%s.tar.gz" % version | ||
|
||
clssfrs = [ | ||
"Programming Language :: Python", | ||
|
@@ -47,7 +53,7 @@ def do_setup(): | |
"Programming Language :: Python :: 3.6", | ||
] | ||
kwargs['classifiers'] = clssfrs | ||
kwargs['version'] = __version__ | ||
kwargs['version'] = version | ||
kwargs['packages'] = find_packages('.') | ||
kwargs['package_data'] = {'descarteslabs.services': ['gd_bundle-g2-g1.crt']} | ||
kwargs['scripts'] = [ | ||
|