-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (96 loc) · 3.15 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (96 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "onecite"
version = "0.2.0"
description = "Auditable normalization of messy scholarly references into source-resolved BibTeX and CSL-JSON"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{name = "He Zhiang", email = "ang@hezhiang.com"}
]
keywords = ["citation", "bibliography", "bibtex", "academic", "reference", "doi", "arxiv", "normalization", "reproducibility", "metadata", "research-software"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
]
dependencies = [
"requests>=2.25.0",
"beautifulsoup4>=4.9.0",
"bibtexparser>=1.2.0,<2.0.0",
"thefuzz>=0.19.0",
"pyyaml>=5.4.0",
"feedparser>=6.0.0",
]
[project.optional-dependencies]
scholar = [
"scholarly>=1.5.0",
]
dev = [
"pytest>=6.0",
"pytest-cov>=2.10",
"flake8>=3.8",
"black>=20.8b1",
"build>=1.0",
"mypy>=1.0",
"types-requests",
"types-PyYAML",
# Document and image tooling used by repository maintenance scripts.
"python-docx>=1.1.0,<2.0.0",
"pillow>=10.0.0,<13.0.0",
]
[project.urls]
Homepage = "https://github.com/HzaCode/OneCite"
Documentation = "https://hezhiang.com/OneCite/"
Repository = "https://github.com/HzaCode/OneCite"
Issues = "https://github.com/HzaCode/OneCite/issues"
Changelog = "https://github.com/HzaCode/OneCite/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/HzaCode/OneCite/issues"
[project.scripts]
onecite = "onecite.cli:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["onecite*"]
[tool.setuptools.package-data]
onecite = ["templates/*.yaml", "benchmarks/*.json"]
# Installed data files are limited to artifacts with an actual consumer:
# `onecite doctor` locates SKILL.md and the benchmark baseline under
# sys.prefix/share. Documentation is not installed — it lives in the
# repository and on the documentation site.
[tool.setuptools.data-files]
"share/onecite/skills/onecite" = ["skills/onecite/SKILL.md"]
"share/onecite/benchmarks" = ["benchmarks/README.md", "benchmarks/leaderboard.json", "benchmarks/anti_hallucination_baseline.json"]
[tool.pytest.ini_options]
addopts = ["-m", "not live"]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"live: marks tests that require live external APIs (excluded by default)",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
check_untyped_defs = true
[tool.black]
line-length = 100
target-version = ['py310', 'py311', 'py312']
[tool.isort]
profile = "black"
line_length = 100