-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace pipenv with uv * clean up * drop python 3.10 support
- Loading branch information
Showing
13 changed files
with
1,506 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,22 +13,17 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.10 | ||
- name: Set up Python 3.11 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.10.8 | ||
python-version: 3.11.4 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel build | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m build . | ||
# - name: Publish 📦 to Test PyPI | ||
# uses: pypa/gh-action-pypi-publish@master | ||
# with: | ||
# password: ${{ secrets.PYPI_TEST_TOKEN }} | ||
# repository-url: https://test.pypi.org/legacy/ | ||
- name: Publish 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ jobs: | |
with: | ||
ref: development | ||
fetch-depth: 0 | ||
- name: Set up Python 3.10 | ||
- name: Set up Python 3.11 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.10.8 | ||
python-version: 3.11.4 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,80 @@ | |
requires = ["wheel", "setuptools", "attrs>=17.1"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyatmo" | ||
description = "Simple API to access Netatmo weather station data from any Python 3 script. Designed for Home Assistant (but not only)" | ||
dynamic = ["version"] | ||
readme = "README.md" | ||
authors = [{ name = "Hugo Dupras", email = "[email protected]" }] | ||
maintainers = [{ name = "Tobias Sauerwein", email = "[email protected]" }] | ||
requires-python = ">=3.11,<3.13" | ||
dependencies = [ | ||
"aiohttp>=3.7.4,<4.0.0", | ||
"oauthlib~=3.1", | ||
"requests~=2.24", | ||
"requests-oauthlib>=1.3,<3.0", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Home Automation", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/jabesq-org/pyatmo" | ||
Repository = "https://github.com/jabesq-org/pyatmo.git" | ||
Issues = "https://github.com/jabesq-org/pyatmo/issues" | ||
Changelog = "https://github.com/jabesq-org/pyatmo/blob/development/CHANGELOG.md" | ||
|
||
[tool.uv] | ||
dev-dependencies = [ | ||
"black==24.8.0", | ||
"pre-commit==3.8.0", | ||
"ruff==0.6.4", | ||
"codespell==2.3.0", | ||
"pytest==8.3.3", | ||
"pytest-asyncio==0.24.0", | ||
"pytest-cov==5.0.0", | ||
"docutils==0.21.2", | ||
"time-machine==2.15.0", | ||
"mypy==1.11.2", | ||
"pytest-mock==3.14.0", | ||
"requests-mock==1.12.1", | ||
"tox==4.18.1", | ||
"twine==5.1.1", | ||
] | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "no-local-version" | ||
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$" | ||
write_to = "src/pyatmo/__version__.py" | ||
write_to_template = '''""" | ||
Pyatmo: Simple API to access Netatmo devices and data | ||
DO NO EDIT THIS FILE - VERSION IS MANAGED BY SETUPTOOLS_SCM | ||
""" | ||
__version__ = "{version}" | ||
''' | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "7.0" | ||
minversion = "8.0" | ||
asyncio_mode = "auto" | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
|
||
[tool.ruff] | ||
target-version = "py310" | ||
target-version = "py311" | ||
fix = true | ||
line-length = 88 | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
|
@@ -113,15 +181,3 @@ split-on-trailing-comma = false | |
|
||
[tool.ruff.lint.mccabe] | ||
max-complexity = 25 | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "no-local-version" | ||
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$" | ||
write_to = "src/pyatmo/__version__.py" | ||
write_to_template = '''""" | ||
Pyatmo: Simple API to access Netatmo devices and data | ||
DO NO EDIT THIS FILE - VERSION IS MANAGED BY SETUPTOOLS_SCM | ||
""" | ||
__version__ = "{version}" | ||
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.