mirror of
https://github.com/cmur2/python-veml6070.git
synced 2024-12-22 00:54:23 +01:00
module: declare Python 2.7 support as legacy
This commit is contained in:
parent
4f16e38129
commit
e34a3685db
36
.github/dependabot.yml
vendored
36
.github/dependabot.yml
vendored
@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: pip
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
day: thursday
|
|
||||||
time: '14:00'
|
|
||||||
timezone: Europe/Berlin
|
|
||||||
pull-request-branch-name:
|
|
||||||
separator: "-"
|
|
||||||
open-pull-requests-limit: 99
|
|
||||||
commit-message:
|
|
||||||
prefix: "module:"
|
|
||||||
target-branch: three
|
|
||||||
versioning-strategy: lockfile-only
|
|
||||||
allow:
|
|
||||||
- dependency-type: direct
|
|
||||||
- dependency-type: indirect
|
|
||||||
- package-ecosystem: pip
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
day: thursday
|
|
||||||
time: '14:00'
|
|
||||||
timezone: Europe/Berlin
|
|
||||||
pull-request-branch-name:
|
|
||||||
separator: "-"
|
|
||||||
open-pull-requests-limit: 99
|
|
||||||
commit-message:
|
|
||||||
prefix: "module:"
|
|
||||||
versioning-strategy: lockfile-only
|
|
||||||
allow:
|
|
||||||
- dependency-type: direct
|
|
||||||
- dependency-type: indirect
|
|
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@ -1,44 +0,0 @@
|
|||||||
---
|
|
||||||
name: ci
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [master, three]
|
|
||||||
pull_request:
|
|
||||||
branches: [master, three]
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
- cron: '37 4 * * 4' # weekly on thursday morning
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version:
|
|
||||||
- '2.7'
|
|
||||||
# Python 3.4 on GHA doesn't work due to fastdiff==0.2.0 failing with:
|
|
||||||
# pkg_resources.DistributionNotFound: The 'setuptools_scm>=1.15.0' distribution was not found and is required by the application
|
|
||||||
#- '3.4'
|
|
||||||
- '3.5'
|
|
||||||
- '3.7'
|
|
||||||
- '3.9'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- run: python -m pip install --upgrade pip
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Install Poetry
|
|
||||||
run: |
|
|
||||||
pip install poetry==1.0.10
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
poetry install
|
|
||||||
- name: Lint
|
|
||||||
run: |
|
|
||||||
make lint
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
make test
|
|
13
.travis.yml
13
.travis.yml
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
os: linux
|
|
||||||
language: python
|
|
||||||
python:
|
|
||||||
- "3.4"
|
|
||||||
|
|
||||||
install:
|
|
||||||
- pip install poetry==1.0.10
|
|
||||||
- poetry install
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make lint
|
|
||||||
- make test
|
|
11
Makefile
11
Makefile
@ -21,17 +21,6 @@ lint: ## Lint all source code
|
|||||||
test: ## Run all tests
|
test: ## Run all tests
|
||||||
poetry run pytest
|
poetry run pytest
|
||||||
|
|
||||||
.PHONY: rebase-three-branch
|
|
||||||
rebase-three-branch: ## Rebase the py3 branch with master contents
|
|
||||||
git stash
|
|
||||||
git checkout master
|
|
||||||
git pull
|
|
||||||
git checkout three
|
|
||||||
git rebase -i origin/master
|
|
||||||
git push --force-with-lease
|
|
||||||
git checkout master
|
|
||||||
git stash pop
|
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help: ## Print this help text
|
help: ## Print this help text
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# python-veml6070
|
# python-veml6070
|
||||||
|
|
||||||
![ci](https://github.com/cmur2/python-veml6070/workflows/ci/badge.svg?branch=master) [![Build Status](https://travis-ci.com/cmur2/python-veml6070.svg?branch=master)](https://travis-ci.com/cmur2/python-veml6070)
|
**Note: This `legacy` branch is unmaintained and contains the Python 2.7 compatible code.**
|
||||||
|
|
||||||
A Python library for accessing the [VEML6070 digital UV light sensor](http://www.vishay.com/docs/84277/veml6070.pdf) from Vishay via `python-smbus` using the I2C interface.
|
A Python library for accessing the [VEML6070 digital UV light sensor](http://www.vishay.com/docs/84277/veml6070.pdf) from Vishay via `python-smbus` using the I2C interface.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user