Skip to content

Commit

Permalink
add commit number two version string and deploy to test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
nihlaeth committed Feb 25, 2017
1 parent b215124 commit ce93cb2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
25 changes: 18 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,24 @@ install: pip install ".[deploy]"
script: python -m pytest --cov=user_config --cov-report xml -v
after_script: python-codacy-coverage -r coverage.xml
deploy:
provider: pypi
user: nihlaeth
password:
secure: LT9NLXIrLUI7ogO+3Q7kit3n739B/sMaQFoT8vXUmZF6lLjD78RyXZldo/baH7UAFAo0fBs105iA+5+dVnP2lpsWSzNQIwg4obtKCpo559tPOZZULIUKqWazeThg/NWYzZna4K737Y645cXzrl0+AMo23hmsddHJcImnTBew6EsJBTW725BhGI5jhc3tHSKfGkTW17NfZESSx624yfky+R5ASEg8FJPU3+ypW63YW05PtKfhmPxHGetUw7cB2gBUfmmhUAyXVqtbDFNdDh5RiIokDoqysAnY5AYTes/mbUKqp14sl7SyeJ95Qv3d+SOZl6g/TrLYy1SXvud6Kffb+wHd+OCfS3Dar8uaNijC2D0cESHCoihpnTBRrpyZ7SFYWvU3nlQpyfqM32VOaTGJ88zpEfzDCK8HgMaCHFUQyZCEsn09Dj3cnOvb3pysuM0DAXlH9csiqKtURMGH7pNB8lUAMdHUmHxA7fUmxyloDv7yZ680dYQ/dvvOaovIpB4UN1Kd8skBdgkMRDumfj9OtjlYMPZg2DwgVgvMTYBRPj6ZvTn52lQ/bx9vmAbum+l0iMFWoaZv6j3+HmKNNFBb4regrz7eIf4DABOuTdpQDewHoqcYTaihlUWTv9FchplHQb2VdOcYRh72lh/N8LfuBYwZ9B/ah7jLWH1ToZ9U19E=
on:
tags: true
distributions: sdist bdist_wheel --universal
# test pypi
- provider: pypi
server: https://testpypi.python.org/pypi
user: nihlaeth
password:
secure: LT9NLXIrLUI7ogO+3Q7kit3n739B/sMaQFoT8vXUmZF6lLjD78RyXZldo/baH7UAFAo0fBs105iA+5+dVnP2lpsWSzNQIwg4obtKCpo559tPOZZULIUKqWazeThg/NWYzZna4K737Y645cXzrl0+AMo23hmsddHJcImnTBew6EsJBTW725BhGI5jhc3tHSKfGkTW17NfZESSx624yfky+R5ASEg8FJPU3+ypW63YW05PtKfhmPxHGetUw7cB2gBUfmmhUAyXVqtbDFNdDh5RiIokDoqysAnY5AYTes/mbUKqp14sl7SyeJ95Qv3d+SOZl6g/TrLYy1SXvud6Kffb+wHd+OCfS3Dar8uaNijC2D0cESHCoihpnTBRrpyZ7SFYWvU3nlQpyfqM32VOaTGJ88zpEfzDCK8HgMaCHFUQyZCEsn09Dj3cnOvb3pysuM0DAXlH9csiqKtURMGH7pNB8lUAMdHUmHxA7fUmxyloDv7yZ680dYQ/dvvOaovIpB4UN1Kd8skBdgkMRDumfj9OtjlYMPZg2DwgVgvMTYBRPj6ZvTn52lQ/bx9vmAbum+l0iMFWoaZv6j3+HmKNNFBb4regrz7eIf4DABOuTdpQDewHoqcYTaihlUWTv9FchplHQb2VdOcYRh72lh/N8LfuBYwZ9B/ah7jLWH1ToZ9U19E=
on:
condition: $TRAVIS_PYTHON_VERSION = "3.6"
distributions: sdist bdist_wheel --universal
# production pypi
- provider: pypi
user: nihlaeth
password:
secure: LT9NLXIrLUI7ogO+3Q7kit3n739B/sMaQFoT8vXUmZF6lLjD78RyXZldo/baH7UAFAo0fBs105iA+5+dVnP2lpsWSzNQIwg4obtKCpo559tPOZZULIUKqWazeThg/NWYzZna4K737Y645cXzrl0+AMo23hmsddHJcImnTBew6EsJBTW725BhGI5jhc3tHSKfGkTW17NfZESSx624yfky+R5ASEg8FJPU3+ypW63YW05PtKfhmPxHGetUw7cB2gBUfmmhUAyXVqtbDFNdDh5RiIokDoqysAnY5AYTes/mbUKqp14sl7SyeJ95Qv3d+SOZl6g/TrLYy1SXvud6Kffb+wHd+OCfS3Dar8uaNijC2D0cESHCoihpnTBRrpyZ7SFYWvU3nlQpyfqM32VOaTGJ88zpEfzDCK8HgMaCHFUQyZCEsn09Dj3cnOvb3pysuM0DAXlH9csiqKtURMGH7pNB8lUAMdHUmHxA7fUmxyloDv7yZ680dYQ/dvvOaovIpB4UN1Kd8skBdgkMRDumfj9OtjlYMPZg2DwgVgvMTYBRPj6ZvTn52lQ/bx9vmAbum+l0iMFWoaZv6j3+HmKNNFBb4regrz7eIf4DABOuTdpQDewHoqcYTaihlUWTv9FchplHQb2VdOcYRh72lh/N8LfuBYwZ9B/ah7jLWH1ToZ9U19E=
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION = "3.6"
distributions: sdist bdist_wheel --universal
env:
matrix:
secure: mDTKEa4wzfc61mi16W660zf0zPqO2ydlFTZ3wFrWkB7dyV2zV9N/m/1nULKmbjHF5s9wy6urfOZXfb0XdMF0ZsYZbWHflq3lEDUYvPA6OaxM189q9fwQCkgmxtlIWSpjKM2v267gPYsbv8YZx0MvAXGbpx6xioVY7iILxl+/rsuPVyAnNJymVUhcJBY1wqoVmOFp+7hIvAn4FTCvINydcVfF/z4qu6q7Sc5LcKr39VuGZkXeUQiPzPL0HXEJMkG7MSP2LBn7PsTbgcVckWveOtatfWGq6X4K4iF9KY5bSArjw9a+LgdFZXm+dAroJ42kSaHApm5jHepUhZuBYuL4sSUGp8SLTDiRMtZ2/oL1t95+t017KZBwQciFV5L+5PKGuh3mwuz8QrqJAy6/AULMnU7dWUvBzqZg090mAaXLy9PKE2Mx9aES7iAPf1yAiDbnOQRFU0R2f3unfHYd6bc54rCNO3FWfNAjjADLuOL1EN/AvrSsmtigNFqPiC9B+Z4FkPJsEQpRN7lYv2K2W2MVXgb8nHlAGVoUeo8oFtmGPbZ4hcN6+gHe27ElRc6mTUQuPQHpMGXhou4ypZMinvnv6DsBXA6zGUwycaxiJpOSyPPXT9R8cHx34idjLmJsbbWOj02tg/BnABAMNu5p6dnaiih63JPD24ZharKd9wR5dds=
7 changes: 5 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import sys
import os
import sphinx_rtd_theme
import vcversioner

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -62,10 +63,12 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
version = release = vcversioner.find_version(
root=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))).version
# The short X.Y version.
version = u'1.0'
#version = u'1.0'
# The full version, including alpha/beta/rc tags.
release = u'1.0a4'
#release = u'1.0a4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def run(self):

setup(
name='user_config',
version='1.0a6',
description='manage user configuration for python packages',
long_description=LONG_DESCRIPTION,
author='nihlaeth',
Expand All @@ -47,7 +46,8 @@ def run(self):
license='GPLv3',
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
packages=find_packages(),
setup_requires=['pytest-runner'],
setup_requires=['pytest-runner', 'vcversioner'],
vcversioner={'version_file': 'VERSION'},
tests_require=['pytest'],
install_requires=['appdirs>=1.4'],
extras_require={
Expand Down

0 comments on commit ce93cb2

Please sign in to comment.