File tree Expand file tree Collapse file tree 6 files changed +56
-44
lines changed
Expand file tree Collapse file tree 6 files changed +56
-44
lines changed Original file line number Diff line number Diff line change 11---
22name : pre-commit
33
4- on :
4+ " on " :
55 pull_request :
66 push :
77 branches : [main]
1010 pre-commit :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414 - uses : actions/setup-python@v4
1515 with :
1616 python-version : " 3.9"
Original file line number Diff line number Diff line change 11---
22name : Upload Python Package
33
4- on :
4+ " on " :
55 release :
66 types : [created]
77
88jobs :
99 publish :
1010 runs-on : ubuntu-latest
11+ environment : release
12+ permissions :
13+ # IMPORTANT: this permission is mandatory for trusted publishing
14+ id-token : write
1115 steps :
12- - uses : actions/checkout@v3
16+ - uses : actions/checkout@v4
1317 - name : Set up Python
1418 uses : actions/setup-python@v4
1519 with :
1822 run : |
1923 python -m pip install --upgrade pip
2024 pip install -r requirements-dev.txt
21- - name : Build and publish
22- env :
23- TWINE_USERNAME : __token__
24- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
25- run : |
26- python -m build
27- twine upload dist/*
25+ - name : Build
26+ run : python -m build
27+ - name : Publish package distributions to PyPI
28+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 11---
22repos :
33 - repo : https://github.com/pre-commit/pre-commit-hooks
4- rev : v4.2 .0
4+ rev : v4.5 .0
55 hooks :
66 - id : trailing-whitespace
77 - id : end-of-file-fixer
88 - id : check-yaml
99 - id : check-added-large-files
1010 - id : requirements-txt-fixer
11- - repo : https://github.com/psf/black
12- rev : 22.3 .0
11+ - repo : https://github.com/psf/black-pre-commit-mirror
12+ rev : 23.11 .0
1313 hooks :
1414 - id : black
1515 - repo : https://github.com/PyCQA/isort
16- rev : 5.10.1
16+ rev : 5.12.0
1717 hooks :
1818 - id : isort
Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" setuptools>=45" , " wheel" , " setuptools-scm" ]
3+ build-backend = " setuptools.build_meta"
4+
5+ [project ]
6+ name = " co2mini"
7+ description = " Monitor CO2 levels with Prometheus and/or HomeKit"
8+ readme = " README.md"
9+ authors = [{ email = " jeremy@jerr.dev" }, { name = " Jeremy Mayeres" }]
10+ requires-python = " >=3.9"
11+ keywords = [
12+ " co2" ,
13+ " co2mini" ,
14+ " temperature" ,
15+ " humidity" ,
16+ " sensors" ,
17+ " prometheus" ,
18+ " homekit" ,
19+ ]
20+ license = { file = " LICENSE" }
21+ classifiers = [
22+ " Programming Language :: Python :: 3" ,
23+ " License :: OSI Approved :: MIT License" ,
24+ " Operating System :: OS Independent" ,
25+ " Development Status :: 3 - Alpha" ,
26+ ]
27+ dependencies = [" prometheus_client" ]
28+ dynamic = [" version" ]
29+
30+ [project .urls ]
31+ repository = " https://github.com/jerr0328/co2-mini"
32+
33+ [project .optional-dependencies ]
34+ homekit = [" HAP-python" ]
35+
36+ [project .scripts ]
37+ co2mini = " co2mini.main:main"
38+
139[tool .isort ]
240profile = " black"
341
4- [build-system ]
5- requires = [" setuptools>=45" , " wheel" ]
6- build-backend = " setuptools.build_meta"
42+ [tool .setuptools_scm ]
Original file line number Diff line number Diff line change 55isort
66pre-commit
77setuptools
8- twine
8+ setuptools-scm
99wheel
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments