mirror of
https://github.com/cmur2/python-veml6070.git
synced 2024-12-21 14:54:23 +01:00
module: convert to use Pipfile
This commit is contained in:
parent
1bdfe0e54a
commit
40bdf7fd6a
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
.cache/
|
.pytest_cache/
|
||||||
env/
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.py[cod]
|
||||||
|
Pipfile.lock
|
||||||
|
@ -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
14
Pipfile
Normal 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 = '*'
|
@ -1,2 +0,0 @@
|
|||||||
[pytest]
|
|
||||||
norecursedirs = env* .*
|
|
@ -1,4 +0,0 @@
|
|||||||
mock==3.0.5
|
|
||||||
pylint==1.9.3 # pyup: ignore
|
|
||||||
pytest==4.6.4 # pyup: ignore
|
|
||||||
snapshottest==0.5.0
|
|
14
setup.py
14
setup.py
@ -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'])
|
|
||||||
|
Loading…
Reference in New Issue
Block a user