Skip to content

Commit

Permalink
BLD: Move build to setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsokol committed Jan 24, 2024
1 parent 2e08269 commit 578d6cc
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 167 deletions.
File renamed without changes.
16 changes: 16 additions & 0 deletions finch/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '0.1.dev10+g2e08269.d20240124'
__version_tuple__ = version_tuple = (0, 1, 'dev10', 'g2e08269.d20240124')
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_sparse.py → finch/tests/test_sparse.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from src import finch
import finch

@pytest.fixture
def x():
Expand Down
144 changes: 0 additions & 144 deletions poetry.lock

This file was deleted.

52 changes: 39 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,46 @@
[tool.poetry]
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "finch-tensor"
version = "0.1.3"
dynamic = ["version"]
description = ""
authors = ["Willow Ahrens <[email protected]>"]
maintainers = [{ name = "Willow Ahrens", email = "[email protected]" }]
readme = "README.md"
packages = [{include = "finch", from = "src"}]
license = { file = "LICENSE" }
requires-python = ">=3.8"
dependencies = ["juliapkg>=0.1.10", "juliacall>=0.9.15"]

[tool.poetry.dependencies]
python = "^3.8"
juliapkg = "^0.1.10"
juliacall = "^0.9.15"
[project.optional-dependencies]
tests = ["pytest>=3.5", "sparse>=0.15.1"]

[project.urls]
Source = "https://github.com/willow-ahrens/finch-tensor"
Repository = "https://github.com/willow-ahrens/finch-tensor.git"

[tool.poetry.group.test.dependencies]
pytest = "^7.4.4"
[tool.setuptools.packages.find]
where = ["."]
include = ["finch", "finch.*"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.setuptools_scm]
version_file = "finch/_version.py"

[tool.ruff]
select = ["F", "E", "W", "I", "B", "UP", "YTT", "BLE", "C4", "T10", "ISC", "ICN", "PIE", "PYI", "RSE", "RET", "SIM", "PGH", "FLY", "NPY", "PERF"]
exclude = ["finch/_version.py"]
line-length = 120

[tool.ruff.format]
quote-style = "double"
docstring-code-format = true

[tool.ruff.lint.isort]
section-order = [
"future",
"standard-library",
"first-party",
"third-party",
"numpy",
"local-folder",
]
7 changes: 7 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[pytest]
addopts = --cov-report term-missing --cov-report html --cov-report=xml --cov-report=term --cov sparse --cov-config .coveragerc --junitxml=junit/test-results.xml
filterwarnings =
ignore::PendingDeprecationWarning
testpaths =
finch
junit_family=xunit2
9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

0 comments on commit 578d6cc

Please sign in to comment.