Merge pull request #54 from Microsoft/users/tedchamb/regen

bump version to 0.1.3 and fix dev_setup script
This commit is contained in:
Ted Chambers 2018-04-23 12:39:56 -04:00 коммит произвёл GitHub
Родитель 5521bfad19 d7ecc20646
Коммит 5484be2a2c
3 изменённых файлов: 9 добавлений и 16 удалений

Просмотреть файл

@ -10,8 +10,6 @@ import glob
import os
from subprocess import check_call, CalledProcessError
root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), '..', '..'))
def exec_command(command):
try:
@ -23,25 +21,20 @@ def exec_command(command):
sys.exit(1)
packages = [os.path.dirname(p) for p in glob.glob('vsts*/setup.py')]
# Extract nspkg and sort nspkg by number of "-"
nspkg_packages = [p for p in packages if "nspkg" in p]
nspkg_packages.sort(key=lambda x: len([c for c in x if c == '-']))
content_packages = [p for p in packages if p not in nspkg_packages]
print('Running dev setup...')
root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), '..', '..'))
print('Root directory \'{}\'\n'.format(root_dir))
exec_command('python -m pip install --upgrade pip')
exec_command('python -m pip install --upgrade wheel')
# install general requirements
if os.path.isfile('./requirements.txt'):
exec_command('pip install -r requirements.txt')
# install packages
for package_list in [nspkg_packages, content_packages]:
for package_name in package_list:
exec_command('pip install -e {}'.format(package_name))
# install dev packages
exec_command('pip install -e vsts')
# install packaging requirements
if os.path.isfile('./scripts/packaging_requirements.txt'):

Просмотреть файл

@ -6,7 +6,7 @@
from setuptools import setup, find_packages
NAME = "vsts"
VERSION = "0.1.2"
VERSION = "0.1.3"
# To install the library, run the following
#

Просмотреть файл

@ -3,4 +3,4 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
VERSION = "0.1.2"
VERSION = "0.1.3"