1
0
Форк 0

module: convert to use Pipfile

This commit is contained in:
cn 2019-12-18 19:44:10 +01:00
джерело 1bdfe0e54a
коміт 40bdf7fd6a
8 змінених файлів з 35 додано та 17 видалено

6
.gitignore сторонній

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

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

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

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,3 +1,4 @@
#!/usr/bin/env python
import veml6070

@ -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

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