Skip to content

Commit

Permalink
switched to src layout
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
  • Loading branch information
hoefling committed Apr 19, 2019
1 parent e023b9a commit 15a105a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ os:
env:
global:
- _latest=3.6
- PIPENV_IGNORE_VIRTUALENVS=1
python:
- 2.7
- 3.4
Expand Down Expand Up @@ -46,10 +47,13 @@ before_install:
fi
install:
- pip install pipenv --upgrade
- PIPENV_IGNORE_VIRTUALENVS=1 pipenv install --dev --skip-lock
- PIPENV_IGNORE_VIRTUALENVS=1 pipenv check
- pipenv install --dev --skip-lock
- pipenv check
script:
- PIPENV_IGNORE_VIRTUALENVS=1 pipenv run python setup.py test flake8 bdist_wheel
- pipenv run python setup.py bdist_wheel
- PKGVER=$(pipenv run python -c "from setuptools_scm import get_version;print(get_version())")
- pipenv run pip install dist/devpi_client_extensions-${PKGVER}-py2.py3-none-any.whl
- pipenv run python setup.py clean test flake8
after_success:
- |
if [ "$TRAVIS_PYTHON_VERSION" == "$_latest" ]; then
Expand Down
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,16 @@ install:
- "pipenv run pip list"
- "pipenv check"

build: off
build:
- "pipenv run python setup.py bdist_wheel"
- "pipenv run pip install dist\*.whl"
- "pipenv run python setup.py clean"

test_script:
- "pipenv run python setup.py flake8"
- "pipenv run pytest"

after_test:
- "pipenv run python setup.py bdist_wheel"
- "pipenv run python setup.py flake8"

artifacts:
- path: dist\*.whl
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def classifiers():
description='devpi client extensions',
long_description='\n'.join((README, LICENSE)),
license='MIT',
packages=find_packages(),
packages=find_packages(where='src'),
package_dir={'': 'src'},
install_requires=['devpi-client>=3.0.0'],
url='https://github.com/hoefling/devpi-client-extensions',
maintainer='Oleg Hoefling',
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 15a105a

Please sign in to comment.