-
Notifications
You must be signed in to change notification settings - Fork 111
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 #78 from chaimleib/dev
Dev -> master (3.0.1)
- Loading branch information
Showing
6 changed files
with
84 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
matrix: | ||
include: | ||
- python: 2.7 | ||
- python: 3.4 | ||
- python: 3.5 | ||
- python: 3.6 | ||
- python: 3.7 | ||
dist: xenial | ||
sudo: true | ||
- python: 3.8-dev | ||
env: FAILOK=y | ||
dist: xenial | ||
sudo: true | ||
allow_failures: | ||
- env: FAILOK=y | ||
install: | ||
- make deps-dev | ||
- pip install coverage | ||
- make deps-dev | ||
- pip install coverage | ||
script: | ||
coverage run --source=intervaltree setup.py develop test | ||
coverage run --source=intervaltree setup.py develop test | ||
after_success: | ||
coverage report | ||
coverage report |
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 |
---|---|---|
|
@@ -22,22 +22,39 @@ | |
limitations under the License. | ||
""" | ||
from __future__ import absolute_import | ||
import os | ||
from sys import exit | ||
from setuptools import setup | ||
from setuptools.command.test import test as TestCommand | ||
|
||
from utils import version | ||
import subprocess | ||
|
||
## CONFIG | ||
target_version = '3.0.0' | ||
target_version = '3.0.1' | ||
|
||
|
||
def version_info(target_version): | ||
is_dev_version = 'PYPI' in os.environ and os.environ['PYPI'] == 'pypitest' | ||
if is_dev_version: | ||
p = subprocess.Popen('git describe --tag'.split(), stdout=subprocess.PIPE) | ||
git_describe = p.communicate()[0].strip() | ||
release, build, commitish = git_describe.split('-') | ||
version = "{0}.post{1}".format(release, build) | ||
else: # This is a RELEASE version | ||
version = target_version | ||
return { | ||
'is_dev_version': is_dev_version, | ||
'version': version, | ||
'target_version': target_version | ||
} | ||
|
||
|
||
version_info = version.version_info(target_version) | ||
if version_info['is_dev_version']: | ||
vinfo = version_info(target_version) | ||
if vinfo['is_dev_version']: | ||
print("This is a DEV version") | ||
print("Target: {target_version}\n".format(**version_info)) | ||
print("Target: {target_version}\n".format(**vinfo)) | ||
else: | ||
print("!!!>>> This is a RELEASE version <<<!!!\n") | ||
print("Version: {version}".format(**version_info)) | ||
print("Version: {version}".format(**vinfo)) | ||
|
||
with open('README.md', 'r') as fh: | ||
long_description = fh.read() | ||
|
@@ -59,10 +76,11 @@ def run_tests(self): | |
## Run setuptools | ||
setup( | ||
name='intervaltree', | ||
version=version_info['version'], | ||
version=vinfo['version'], | ||
install_requires=['sortedcontainers >= 2.0, < 3.0'], | ||
description='Editable interval tree data structure for Python 2 and 3', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
classifiers=[ # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
'Development Status :: 4 - Beta', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
|
@@ -90,7 +108,7 @@ def run_tests(self): | |
author='Chaim Leib Halbert, Konstantin Tretyakov', | ||
author_email='[email protected]', | ||
url='https://github.com/chaimleib/intervaltree', | ||
download_url='https://github.com/chaimleib/intervaltree/tarball/{version}'.format(**version_info), | ||
download_url='https://github.com/chaimleib/intervaltree/tarball/{version}'.format(**vinfo), | ||
license="Apache License, Version 2.0", | ||
packages=["intervaltree"], | ||
include_package_data=True, | ||
|
Empty file.
This file was deleted.
Oops, something went wrong.