1
0
mirror of https://github.com/cmur2/python-veml6070.git synced 2024-12-30 16:54:24 +01:00

module: convert to use Pipfile

This commit is contained in:
cn 2019-12-18 19:44:10 +01:00
parent 1bdfe0e54a
commit 40bdf7fd6a
8 changed files with 35 additions and 17 deletions

6
.gitignore vendored
View File

@ -1,4 +1,4 @@
.cache/ .pytest_cache/
env/
__pycache__/ __pycache__/
*.pyc *.py[cod]
Pipfile.lock

View File

@ -1,2 +0,0 @@
---
schedule: "every month"

View File

@ -10,8 +10,17 @@ python:
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: allow_failures:
- python: "3.4"
- python: "3.5"
- python: "3.7" - python: "3.7"
env:
- PIPENV_VERBOSITY=-1
install:
- pip install --upgrade pipenv
- pipenv install --dev
script: script:
- pylint veml6070 - pylint veml6070
- pytest - pytest

14
Pipfile Normal file
View File

@ -0,0 +1,14 @@
[[source]]
url = 'https://pypi.python.org/simple'
[requires]
python_version = '2.7'
[packages]
smbus2 = '*'
[dev-packages]
mock = '*'
pylint = '< 2'
pytest = '< 5'
snapshottest = '*'

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
import veml6070 import veml6070

View File

@ -1,2 +0,0 @@
[pytest]
norecursedirs = env* .*

View File

@ -1,4 +0,0 @@
mock==3.0.5
pylint==1.9.3 # pyup: ignore
pytest==4.6.4 # pyup: ignore
snapshottest==0.5.0

View File

@ -1,11 +1,13 @@
from setuptools import setup from setuptools import setup
setup(name='veml6070', setup(name='veml6070',
version='1.0', version='1.0.0',
url='http://github.com/cmur2/python-veml6070', packages=['veml6070'],
install_requires=['smbus2'],
python_requires='>=2.7',
url='https://dev.mycrobase.de/gitea/cn/python-veml6070',
author='Christian Nicolai', author='Christian Nicolai',
description=' A python library for accessing the VEML6070 digital UV light sensor from Vishay.', description=' A python library for accessing the VEML6070 digital UV light sensor from Vishay.',
packages=['veml6070'], long_description=open('README.md').read())
long_description=open('README.md').read(),
requires=['python (>= 2.7)', 'smbus (>= 0.4.1)'],
install_requires=['smbus-cffi'])