-
-
Notifications
You must be signed in to change notification settings - Fork 144
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 #248 from jazzband/tox-travis
Move to tox-travis. Fix #246.
- Loading branch information
Showing
14 changed files
with
90 additions
and
136 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ htmlcov/ | |
*.pyc | ||
dist/ | ||
tests/docs/_build/ | ||
.eggs/ |
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,87 +1,37 @@ | ||
language: python | ||
sudo: false | ||
dist: xenial | ||
cache: pip | ||
matrix: | ||
include: | ||
- env: TOXENV=readme-py27 | ||
python: 2.7 | ||
- env: TOXENV=py27-dj111-coverage | ||
python: 2.7 | ||
- env: TOXENV=py35-dj111-coverage | ||
python: 3.5 | ||
- env: TOXENV=py36-dj111-coverage | ||
python: 3.6 | ||
- env: TOXENV=pypy-dj111-coverage | ||
python: pypy | ||
- env: TOXENV=pypy3-dj111-coverage | ||
python: pypy3 | ||
- env: TOXENV=py35-dj20-coverage | ||
python: 3.5 | ||
- env: TOXENV=py36-dj20-coverage | ||
python: 3.6 | ||
- env: TOXENV=py37-dj20-coverage | ||
python: 3.7 | ||
- env: TOXENV=pypy3-dj20-coverage | ||
python: pypy3 | ||
- env: TOXENV=py36-dj21-coverage | ||
python: 3.6 | ||
- env: TOXENV=py37-dj21-coverage | ||
python: 3.7 | ||
- env: TOXENV=pypy3-dj21-coverage | ||
python: pypy3 | ||
- env: TOXENV=py36-dj22-coverage | ||
python: 3.6 | ||
- env: TOXENV=py37-dj22-coverage | ||
python: 3.7 | ||
- env: TOXENV=py38-dj22-coverage | ||
python: 3.8 | ||
- env: TOXENV=pypy3-dj22-coverage | ||
python: pypy3 | ||
- env: TOXENV=py36-dj30-coverage | ||
python: 3.6 | ||
- env: TOXENV=py37-dj30-coverage | ||
python: 3.7 | ||
- env: TOXENV=py38-dj30-coverage | ||
python: 3.8 | ||
- env: TOXENV=pypy3-dj30-coverage | ||
python: pypy3 | ||
- env: TOXENV=py36-djmaster-coverage | ||
python: 3.6 | ||
- env: TOXENV=py37-djmaster-coverage | ||
python: 3.7 | ||
- env: TOXENV=py38-djmaster-coverage | ||
python: 3.8 | ||
- env: TOXENV=pypy3-djmaster-coverage | ||
python: pypy3 | ||
allow_failures: | ||
- env: TOXENV=py36-djmaster-coverage | ||
python: 3.6 | ||
- env: TOXENV=py37-djmaster-coverage | ||
python: 3.7 | ||
- env: TOXENV=py38-djmaster-coverage | ||
python: 3.8 | ||
- env: TOXENV=pypy3-djmaster-coverage | ||
python: pypy3 | ||
install: | ||
- pip install tox | ||
python: | ||
- '2.7' | ||
- '3.5' | ||
- '3.6' | ||
- '3.7' | ||
- '3.8' | ||
- 'pypy3' | ||
install: travis_retry pip install tox-travis codecov | ||
script: tox -v | ||
after_success: | ||
- | | ||
if [[ "${TOXENV%-coverage}" != "$TOXENV" ]]; then | ||
pip install codecov | ||
coverage xml | ||
codecov --required -X gcov fix pycov -f coverage.xml --flags ${TOXENV//-/ } | ||
fi | ||
after_success: codecov --required -X gcov fix pycov -f coverage.xml --flags ${TOXENV//-/ } | ||
branches: | ||
except: templates/1.5.x templates/1.6.x | ||
deploy: | ||
provider: pypi | ||
user: jazzband | ||
server: https://jazzband.co/projects/django-configurations/upload | ||
distributions: sdist bdist_wheel | ||
password: | ||
secure: LuserSjUTGSsls9zrvck/FbfL+gFpNU/ywOQ/67ufEbbpGCeDBEgxDzgb0acfHNk8wlAkaPvaAejQBFtcUulhdNT/g0NsmaEAjd6HhCGM+FRJAnYFaj33Js6C+N2tX5wznL7uCBxqgtaaH0hf6ucqC8OXqwoCVGgdxAEnUlC/fY= | ||
on: | ||
tags: true | ||
repo: jazzband/django-configurations | ||
condition: "$TOXENV = py36-dj111" | ||
stages: | ||
- test | ||
- name: deploy | ||
if: repo = jazzband/django-configurations AND tag IS present | ||
jobs: | ||
include: | ||
- stage: test | ||
- stage: deploy | ||
install: skip | ||
script: skip | ||
python: 3.7 | ||
env: skip | ||
deploy: | ||
provider: pypi | ||
user: jazzband | ||
server: https://jazzband.co/projects/django-configurations/upload | ||
distributions: sdist bdist_wheel | ||
password: | ||
secure: LuserSjUTGSsls9zrvck/FbfL+gFpNU/ywOQ/67ufEbbpGCeDBEgxDzgb0acfHNk8wlAkaPvaAejQBFtcUulhdNT/g0NsmaEAjd6HhCGM+FRJAnYFaj33Js6C+N2tX5wznL7uCBxqgtaaH0hf6ucqC8OXqwoCVGgdxAEnUlC/fY= | ||
on: | ||
tags: true | ||
repo: jazzband/django-configurations |
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,7 +1,9 @@ | ||
include README.rst | ||
include CONTRIBUTING.md | ||
include AUTHORS | ||
include .travis.yml | ||
include tasks.py | ||
include tox.ini | ||
recursive-include tests * | ||
recursive-include docs * | ||
recursive-include test_project * | ||
include LICENSE |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
|
||
try: | ||
__version__ = get_distribution(__name__).version | ||
except DistributionNotFound: | ||
# package is not installed | ||
__version__ = None |
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
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,38 +1,24 @@ | ||
from __future__ import print_function | ||
import ast | ||
import os | ||
import codecs | ||
from setuptools import setup | ||
|
||
|
||
class VersionFinder(ast.NodeVisitor): | ||
def __init__(self): | ||
self.version = None | ||
|
||
def visit_Assign(self, node): | ||
if node.targets[0].id == '__version__': | ||
self.version = node.value.s | ||
|
||
|
||
def read(*parts): | ||
filename = os.path.join(os.path.dirname(__file__), *parts) | ||
with codecs.open(filename, encoding='utf-8') as fp: | ||
return fp.read() | ||
|
||
|
||
def find_version(*parts): | ||
finder = VersionFinder() | ||
finder.visit(ast.parse(read(*parts))) | ||
return finder.version | ||
|
||
|
||
setup( | ||
name="django-configurations", | ||
version=find_version("configurations", "__init__.py"), | ||
use_scm_version={"version_scheme": "post-release", "local_scheme": "dirty-tag"}, | ||
setup_requires=["setuptools_scm"], | ||
url='https://django-configurations.readthedocs.io/', | ||
license='BSD', | ||
description="A helper for organizing Django settings.", | ||
long_description=read('README.rst'), | ||
long_description_content_type='text/x-rst', | ||
author='Jannis Leidel', | ||
author_email='[email protected]', | ||
packages=['configurations'], | ||
|
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