|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=66.0"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +# ============================================================================ |
| 6 | +# project info |
| 7 | +# ============================================================================ |
| 8 | + |
| 9 | +[project] |
| 10 | +name = "compas_triangle" |
| 11 | +description = "COMPAS-firendly wrappers for the Triangle library" |
| 12 | +keywords = [] |
| 13 | +authors = [ |
| 14 | + { name = "tom van mele", email = "tom.v.mele@gmail.com" }, |
| 15 | +] |
| 16 | +license = { file = "LICENSE" } |
| 17 | +readme = "README.md" |
| 18 | +requires-python = ">=3.9" |
| 19 | +dynamic = ['dependencies', 'optional-dependencies', 'version'] |
| 20 | +classifiers = [ |
| 21 | + "Development Status :: 4 - Beta", |
| 22 | + "Topic :: Scientific/Engineering", |
| 23 | + "Operating System :: Unix", |
| 24 | + "Operating System :: POSIX", |
| 25 | + "Operating System :: Microsoft :: Windows", |
| 26 | + "Programming Language :: Python", |
| 27 | + "Programming Language :: Python :: 3", |
| 28 | + "Programming Language :: Python :: 3.10", |
| 29 | + "Programming Language :: Python :: 3.11", |
| 30 | + "Programming Language :: Python :: 3.12", |
| 31 | +] |
| 32 | + |
| 33 | +[project.urls] |
| 34 | +Homepage = "https://compas-dev.github.io/compas_triangle" |
| 35 | +Documentation = "https://compas-dev.github.io/compas_triangle" |
| 36 | +Repository = "https://github.com/compas-dev/compas_triangle" |
| 37 | +Changelog = "https://github.com/compas-dev/compas_triangle/blob/main/CHANGELOG.md" |
| 38 | +Issues = "https://github.com/compas-dev/compas_triangle/issues" |
| 39 | +Forum = "https://forum.compas-framework.org/" |
| 40 | + |
| 41 | +# ============================================================================ |
| 42 | +# setuptools config |
| 43 | +# ============================================================================ |
| 44 | + |
| 45 | +[tool.setuptools] |
| 46 | +package-dir = { "" = "src" } |
| 47 | +include-package-data = true |
| 48 | +zip-safe = false |
| 49 | + |
| 50 | +[tool.setuptools.dynamic] |
| 51 | +version = { attr = "compas_triangle.__version__" } |
| 52 | +dependencies = { file = "requirements.txt" } |
| 53 | +optional-dependencies = { dev = { file = "requirements-dev.txt" } } |
| 54 | + |
| 55 | +[tool.setuptools.packages.find] |
| 56 | +where = ["src"] |
| 57 | + |
| 58 | +# ============================================================================ |
| 59 | +# replace pytest.ini |
| 60 | +# ============================================================================ |
| 61 | + |
| 62 | +[tool.pytest.ini_options] |
| 63 | +minversion = "6.0" |
| 64 | +testpaths = ["tests", "src/compas_triangle"] |
| 65 | +python_files = ["test_*.py", "*_test.py", "test.py"] |
| 66 | +addopts = [ |
| 67 | + "-ra", |
| 68 | + "--strict-markers", |
| 69 | + "--doctest-glob=*.rst", |
| 70 | + "--tb=short", |
| 71 | + "--import-mode=importlib", |
| 72 | +] |
| 73 | +doctest_optionflags = [ |
| 74 | + "NORMALIZE_WHITESPACE", |
| 75 | + "IGNORE_EXCEPTION_DETAIL", |
| 76 | + "ALLOW_UNICODE", |
| 77 | + "ALLOW_BYTES", |
| 78 | + "NUMBER", |
| 79 | +] |
| 80 | + |
| 81 | +# ============================================================================ |
| 82 | +# replace bumpversion.cfg |
| 83 | +# ============================================================================ |
| 84 | + |
| 85 | +[tool.bumpversion] |
| 86 | +current_version = "1.1.0" |
| 87 | +message = "Bump version to {new_version}" |
| 88 | +commit = true |
| 89 | +tag = true |
| 90 | + |
| 91 | +[[tool.bumpversion.files]] |
| 92 | +filename = "src/compas_triangle/__init__.py" |
| 93 | +search = "{current_version}" |
| 94 | +replace = "{new_version}" |
| 95 | + |
| 96 | +[[tool.bumpversion.files]] |
| 97 | +filename = "CHANGELOG.md" |
| 98 | +search = "Unreleased" |
| 99 | +replace = "[{new_version}] {now:%Y-%m-%d}" |
| 100 | + |
| 101 | +# ============================================================================ |
| 102 | +# replace setup.cfg |
| 103 | +# ============================================================================ |
| 104 | + |
| 105 | +[tool.black] |
| 106 | +line-length = 179 |
| 107 | + |
| 108 | +[tool.ruff] |
| 109 | +line-length = 179 |
| 110 | +indent-width = 4 |
| 111 | +target-version = "py39" |
| 112 | + |
| 113 | +[tool.ruff.lint] |
| 114 | +select = ["E", "F", "I"] |
| 115 | + |
| 116 | +[tool.ruff.lint.per-file-ignores] |
| 117 | +"__init__.py" = ["I001"] |
| 118 | +"tests/*" = ["I001"] |
| 119 | +"tasks.py" = ["I001"] |
| 120 | + |
| 121 | +[tool.ruff.lint.isort] |
| 122 | +force-single-line = true |
| 123 | +known-first-party = ["compas_triangle"] |
| 124 | + |
| 125 | +[tool.ruff.lint.pydocstyle] |
| 126 | +convention = "numpy" |
| 127 | + |
| 128 | +[tool.ruff.lint.pycodestyle] |
| 129 | +max-doc-length = 179 |
| 130 | + |
| 131 | +[tool.ruff.format] |
| 132 | +docstring-code-format = true |
| 133 | +docstring-code-line-length = "dynamic" |
0 commit comments