Browse Source

module: convert to use Pipfile

pull/36/head
cn 1 year ago
parent
commit
40bdf7fd6a
  1. 6
      .gitignore
  2. 2
      .pyup.yml
  3. 9
      .travis.yml
  4. 14
      Pipfile
  5. 1
      demo.py
  6. 2
      pytest.ini
  7. 4
      requirements.txt
  8. 14
      setup.py

6
.gitignore

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

2
.pyup.yml

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

9
.travis.yml

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

@ -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
demo.py

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

2
pytest.ini

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

4
requirements.txt

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

@ -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())
Loading…
Cancel
Save