Browse Source

module: convert to use Pipfile

three
cn 6 months ago
parent
commit
40bdf7fd6a
8 changed files with 35 additions and 17 deletions
  1. +3
    -3
      .gitignore
  2. +0
    -2
      .pyup.yml
  3. +9
    -0
      .travis.yml
  4. +14
    -0
      Pipfile
  5. +1
    -0
      demo.py
  6. +0
    -2
      pytest.ini
  7. +0
    -4
      requirements.txt
  8. +8
    -6
      setup.py

+ 3
- 3
.gitignore View File

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

+ 0
- 2
.pyup.yml View File

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

+ 9
- 0
.travis.yml View File

@@ -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
- 0
Pipfile 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 = '*'

+ 1
- 0
demo.py View File

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

import veml6070



+ 0
- 2
pytest.ini View File

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

+ 0
- 4
requirements.txt 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

+ 8
- 6
setup.py View File

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