Skip to content

Commit e760ccd

Browse files
committed
Update project configuration to make package standalone
1 parent f3e6c6f commit e760ccd

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

pyproject.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
1+
[build-system]
2+
requires = ["setuptools", "lsst-versions >= 1.3.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "lsst-sconsUtils"
7+
description = "Utilities for build LSST packages with SCons."
8+
license = {text = "BSD 3-Clause License, GPLv3+"}
9+
readme = "README.md"
10+
authors = [
11+
{name="Rubin Observatory Data Management", email="dm-admin@lists.lsst.org"},
12+
]
13+
classifiers = [
14+
"Intended Audience :: Science/Research",
15+
"License :: OSI Approved :: BSD License",
16+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Topic :: Scientific/Engineering :: Astronomy",
23+
]
24+
keywords = ["lsst"]
25+
dependencies = [
26+
"flake8",
27+
"pytest >= 3.2",
28+
"pytest-cov",
29+
"pytest-session2file",
30+
"ruff",
31+
"scons",
32+
]
33+
dynamic = ["version"]
34+
requires-python = ">=3.10.0"
35+
36+
[project.urls]
37+
"Homepage" = "https://github.com/lsst/sconsUtils"
38+
39+
[project.optional-dependencies]
40+
test = []
41+
42+
[tool.setuptools.packages.find]
43+
where = ["python"]
44+
45+
[tool.setuptools]
46+
zip-safe = true
47+
license-files = ["COPYRIGHT", "LICENSE", "gpl-v3.0.txt", "bsd_license.txt"]
48+
49+
[tool.setuptools.package-data]
50+
"lsst.pex.config" = ["py.typed", "configs/*.cfg"]
51+
52+
[tool.setuptools.dynamic]
53+
version = { attr = "lsst_versions.get_lsst_version" }
54+
155
[tool.black]
256
line-length = 110
357
target-version = ["py311"]
@@ -41,3 +95,4 @@ convention = "numpy"
4195

4296
[tool.pytest.ini_options]
4397
addopts = "--import-mode=importlib" # Recommended as best practice
98+
norecursedirs = ["build"]

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
flake8
2+
pytest >= 3.2
3+
pytest-cov
4+
pytest-session2file
5+
ruff
6+
scons

setup.cfg

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
[flake8]
22
max-line-length = 110
33
max-doc-length = 79
4-
ignore = N802, N803, N806, N812, N815, N816, W503, E203
5-
exclude = __init__.py, tests/.tests
4+
ignore = E133, E226, E228, N802, N803, N806, N812, N813, N815, N816, W503
5+
exclude =
6+
bin,
7+
doc/conf.py,
8+
**/*/__init__.py,
9+
**/*/version.py,
10+
tests/.tests

0 commit comments

Comments
 (0)