mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
Migrate to pyproject.toml
This commit is contained in:
-40
@@ -1,40 +0,0 @@
|
||||
[run]
|
||||
branch = True
|
||||
|
||||
[report]
|
||||
skip_empty = True
|
||||
skip_covered = True
|
||||
|
||||
# Omit; need a different approach to test modules with hardware dependencies
|
||||
omit =
|
||||
*/__init__.py
|
||||
*/tests/*
|
||||
*/pyzbar/*
|
||||
*/gui/*
|
||||
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# Have to re-enable the standard pragma
|
||||
pragma: no cover
|
||||
|
||||
# Don't complain about missing debug-only code:
|
||||
def __repr__
|
||||
def __str__
|
||||
if self\.debug
|
||||
|
||||
# Don't complain if tests don't hit defensive assertion code:
|
||||
raise AssertionError
|
||||
raise NotImplementedError
|
||||
|
||||
# Don't complain if non-runnable code isn't run:
|
||||
if 0:
|
||||
if __name__ == .__main__.:
|
||||
|
||||
# Don't complain about abstract methods, they aren't run:
|
||||
@(abc\.)?abstractmethod
|
||||
|
||||
|
||||
[html]
|
||||
directory = coverage_html_report
|
||||
skip_empty = True
|
||||
skip_covered = False
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
sudo apt-get install libzbar0
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt -r tests/requirements.txt
|
||||
python setup.py install
|
||||
pip install .
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
mkdir artifacts
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
recursive-include src/seedsigner/resources *
|
||||
@@ -0,0 +1,69 @@
|
||||
[build-system]
|
||||
build-backend = "setuptools.build_meta"
|
||||
requires = ["setuptools", "wheel"]
|
||||
|
||||
[project]
|
||||
authors = [{name = "SeedSigner", email = "author@example.com"}]
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent"
|
||||
]
|
||||
description = "Build an offline, airgapped Bitcoin signing device for less than $50!"
|
||||
name = "seedsigner"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
version = "0.8.0-rc1"
|
||||
|
||||
[project.urls]
|
||||
"Bug Tracker" = "https://github.com/SeedSigner/seedsigner/issues"
|
||||
Homepage = "https://seedsigner.com/"
|
||||
Repository = "https://github.com/SeedSigner/seedsigner"
|
||||
|
||||
[tool.coverage.html]
|
||||
directory = "coverage_html_report"
|
||||
skip_covered = false
|
||||
skip_empty = true
|
||||
|
||||
[tool.coverage.report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines = [
|
||||
# Have to re-enable the standard pragma
|
||||
"pragma: no cover",
|
||||
# Don't complain about missing debug-only code:
|
||||
"def __repr__",
|
||||
"def __str__",
|
||||
"if self\\.debug",
|
||||
# Don't complain if tests don't hit defensive assertion code:
|
||||
"raise AssertionError",
|
||||
"raise NotImplementedError",
|
||||
# Don't complain if non-runnable code isn't run:
|
||||
"if 0:",
|
||||
"if __name__ == .__main__.:",
|
||||
# Don't complain about abstract methods, they aren't run:
|
||||
"@(abc\\.)?abstractmethod"
|
||||
]
|
||||
# Omit; need a different approach to test modules with hardware dependencies
|
||||
omit = [
|
||||
"*/__init__.py",
|
||||
"*/tests/*",
|
||||
"*/pyzbar/*",
|
||||
"*/gui/*"
|
||||
]
|
||||
skip_covered = true
|
||||
skip_empty = true
|
||||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
||||
[tool.setuptools]
|
||||
include-package-data = true
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"seedsigner.resources" = ["**"]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
@@ -1,2 +0,0 @@
|
||||
[pytest]
|
||||
testpaths = tests
|
||||
@@ -1,27 +0,0 @@
|
||||
import setuptools
|
||||
|
||||
with open("README.md", "r", encoding="utf-8") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
name="seedsigner",
|
||||
version="0.8.0-rc1",
|
||||
author="SeedSigner",
|
||||
author_email="author@example.com",
|
||||
description="Build an offline, airgapped Bitcoin signing device for less than $50!",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/SeedSigner/seedsigner",
|
||||
project_urls={
|
||||
"Bug Tracker": "https://github.com/SeedSigner/seedsigner/issues",
|
||||
},
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
package_dir={"": "src"},
|
||||
packages=setuptools.find_packages(where="src"),
|
||||
include_package_data=True,
|
||||
python_requires=">=3.10",
|
||||
)
|
||||
Reference in New Issue
Block a user