Skip to content

Commit

Permalink
Feature: 尝试修改打包时的版本获取方式
Browse files Browse the repository at this point in the history
  • Loading branch information
littlemo committed Dec 8, 2019
1 parent f26e83b commit 114a173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ dist: trusty
python:
- '2.7'
install:
- export VERSON=$(git describe --tags)
- pip install -r requirements/pip.txt
- pip install -e .
- python -c 'import pkg_resources; print("export VERSION={}".format(pkg_resources.get_distribution("mohand").version))'
> VERSION && source VERSION
script:
- echo "No Test"
deploy:
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# encoding=utf-8
import os
from setuptools import find_packages, setup

from source.mohand.version import get_setup_version

setup(
name='mohand',
url='https://github.com/littlemo/mohand',
author='moear developers',
author_email='[email protected]',
maintainer='littlemo',
maintainer_email='[email protected]',
version=get_setup_version(),
version=os.getenv('VERSION'),
description='通用自动化处理工具',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 114a173

Please sign in to comment.