Skip to content

Commit ec4157e

Browse files
Reece Hartreece
authored andcommitted
fix license format in pyproject.toml
1 parent 1ff0fd4 commit ec4157e

File tree

2 files changed

+495
-114
lines changed

2 files changed

+495
-114
lines changed

pyproject.toml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[project]
22
name = "python-package"
3-
version = "0.0.1"
4-
description = "Package Description"
5-
authors = [{ name = "Biocommons Contributors", email = "[email protected]" }]
3+
authors = [
4+
{ name = "biocommons contributors", email = "[email protected]" },
5+
]
6+
description = "Example Package"
67
readme = "README.md"
7-
keywords = ['python']
8-
requires-python = ">=3.9,<4.0"
8+
license = "Apache-2.0"
9+
requires-python = ">=3.10"
910
classifiers = [
1011
"Intended Audience :: Developers",
1112
"Programming Language :: Python",
@@ -17,6 +18,20 @@ classifiers = [
1718
"Programming Language :: Python :: 3.13",
1819
"Topic :: Software Development :: Libraries :: Python Modules",
1920
]
21+
dynamic = ["version"]
22+
dependencies = ["coloredlogs ~= 15.0", "pyyaml ~= 6.0"]
23+
24+
[project.optional-dependencies]
25+
tests = [
26+
"pytest-cov ~= 4.1",
27+
"pytest ~= 7.1",
28+
"vcrpy",
29+
"tox ~= 4.15",
30+
]
31+
docs = ["mkdocs"]
32+
33+
[project.scripts]
34+
marvin-quote = "biocommons.example.__main__:main"
2035

2136
[project.urls]
2237
Homepage = "https://biocommons.github.io/python-package/"
@@ -38,8 +53,22 @@ dev = [
3853
]
3954

4055
[build-system]
41-
requires = ["hatchling"]
42-
build-backend = "hatchling.build"
56+
requires = ["setuptools >= 70.1", "setuptools_scm[toml] ~= 8.1"]
57+
build-backend = "setuptools.build_meta"
58+
59+
[tool.setuptools]
60+
include-package-data = true
61+
62+
[tool.setuptools.packages.find]
63+
where = ["src"]
64+
exclude = ["__pycache__", "*.pyc"]
65+
namespaces = true
66+
67+
[tool.setuptools.package-data]
68+
"*" = ["*.gz", "*.json", "*.yaml"]
69+
70+
71+
[tool.setuptools_scm]
4372

4473
[tool.hatch.build.targets.wheel]
4574
packages = ["src/python_package"]

0 commit comments

Comments
 (0)