Skip to content

Commit 31062c5

Browse files
author
Elliot Boschwitz
authored
Create source distributions on macOS during build (#384)
Added sdist call to create tar.gz file.
1 parent b08e8ca commit 31062c5

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.17.2
2+
current_version = 0.17.3
33
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
44
serialize =
55
{major}.{minor}.{patch}

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include LICENSE.txt
22
include mssqlcli/mssqltoolsservice/bin/*
33
include mssqlcli/mssqltoolsservice/bin/*/*
4+
include mssqlcli/packages/mssqlliterals/sqlliterals.json

build.py

+6
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ def build():
8080
utility.ROOT_DIR,
8181
continue_on_error=False)
8282

83+
# generate sdist--only run on macOS to eliminate redundant copies when published to Azure
84+
# NOTE: macOS was arbitrarily chosen as the single OS
85+
if sys.platform == 'darwin':
86+
utility.exec_command('%s setup.py check -r -s sdist --formats=gztar' % PYTHON,
87+
utility.ROOT_DIR, continue_on_error=False)
88+
8389
# Copy back the SqlToolsService binaries for this platform.
8490
clean_and_copy_sqltoolsservice(utility.get_current_platform())
8591
copy_and_rename_wheels()

build_scripts/debian/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
CLI_VERSION=0.17.2
3+
CLI_VERSION=0.17.3
44

55
if [ -z "$1" ]
66
then

build_scripts/rpm/mssql-cli.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
%define name mssql-cli
1212
%define release 1%{?dist}
1313
%define time_stamp %(date +%y%m%d%H%M)
14-
%define base_version 0.17.2
14+
%define base_version 0.17.3
1515
%define python_dir %{_builddir}/python_env
1616
%define python_url https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
1717
%define cli_lib_dir %{_libdir}/mssql-cli

mssqlcli/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.17.2'
1+
__version__ = '0.17.3'

release.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ def publish_official():
100100
"""
101101
Publish mssql-cli package to PyPi.
102102
"""
103-
mssqlcli_wheel_dir = os.listdir(utility.MSSQLCLI_DIST_DIRECTORY)
103+
mssqlcli_dist_dir = os.listdir(utility.MSSQLCLI_DIST_DIRECTORY)
104104
# Run twine action for mssql-cli.
105105
# Only authorized users with credentials will be able to upload this package.
106106
# Credentials will be stored in a .pypirc file.
107-
for wheel in mssqlcli_wheel_dir:
107+
for file_dist in mssqlcli_dist_dir:
108108
utility.exec_command(
109-
'twine upload {}'.format(wheel),
109+
'twine upload {}'.format(file_dist),
110110
utility.MSSQLCLI_DIST_DIRECTORY)
111111

112112

0 commit comments

Comments
 (0)