-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: migrate the whole project to
pyproject.toml
project defi…
- Loading branch information
Showing
20 changed files
with
97 additions
and
140 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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "elmo" | ||
dynamic = ["version"] | ||
description = 'API adapter used to control programmatically an Elmo alarm system' | ||
readme = "README.md" | ||
requires-python = ">=3.5" | ||
license = "Apache-2.0" | ||
keywords = [] | ||
authors = [ | ||
{ name = "Emanuele Palazzetti", email = "emanuele.palazzetti@gmail.com" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
dependencies = [ | ||
"requests[security]", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"mypy", | ||
# Test | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-mock", | ||
"responses", | ||
"tox", | ||
] | ||
|
||
lint = [ | ||
"black", | ||
"flake8", | ||
] | ||
|
||
all = [ | ||
"elmo[dev]", | ||
"elmo[lint]", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://github.com/palazzem/econnect-python#readme" | ||
Issues = "https://github.com/palazzem/econnect-python/issues" | ||
Source = "https://github.com/palazzem/econnect-python" | ||
|
||
[tool.hatch.version] | ||
path = "src/elmo/__about__.py" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2023-present Emanuele Palazzetti <emanuele.palazzetti@gmail.com> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
__version__ = "0.4.0" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
[tox] | ||
envlist = | ||
lint | ||
py{36} | ||
py{37} | ||
py{38} | ||
py{39} | ||
py3.6 | ||
py3.7 | ||
py3.8 | ||
py3.9 | ||
|
||
[testenv] | ||
setenv = | ||
PYTHONPATH = {toxinidir} | ||
PYTHONDONTWRITEBYTECODE=1 | ||
deps = -r requirements/requirements-testing.txt | ||
allowlist_externals = pytest | ||
deps = | ||
-e .[dev] | ||
commands = | ||
pytest tests/ --cov elmo -s -v | ||
|
||
[testenv:lint] | ||
skip_install = true | ||
deps = -r requirements/requirements-linting.txt | ||
deps = | ||
-e .[lint] | ||
basepython = | ||
python3.9 | ||
commands = | ||
flake8 elmo/ tests/ --exclude=elmo/const.py | ||
black elmo/ tests/ --check | ||
flake8 src/elmo/ tests/ --exclude=src/elmo/const.py | ||
black src/elmo/ tests/ --check | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
exclude = | ||
.tox | ||
conftest.py # Contains fixtures | ||
conftest.py # Contains fixtures |