Skip to content

Commit a77d2b4

Browse files
committed
feat(papis_html): switch to pyproject.toml
1 parent 4897db3 commit a77d2b4

File tree

4 files changed

+85
-87
lines changed

4 files changed

+85
-87
lines changed

papis-html/Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ help: ## Show this help
88
@echo ""
99
.PHONY: help
1010

11-
ci-install:
12-
$(PYTHON) -m pip install --upgrade pip setuptools wheel
13-
$(PYTHON) -m pip install -e .[develop]
11+
ci-install: ## Install all development dependencies
12+
$(PYTHON) -m pip install --upgrade pip hatchling editables wheel
13+
$(PYTHON) -m pip install --verbose --editable '.[develop]'
1414
.PHONY: ci-install
1515

16-
ci-lint:
16+
ci-lint: ## Run linting
1717
python -m flake8 papis_html
1818
python -m mypy --show-error-codes papis_html
1919
.PHONY: ci-lint
@@ -27,4 +27,3 @@ tags: ## Generate ctags for main codebase
2727
--language-force=python \
2828
papis
2929
.PHONY: tags
30-

papis-html/pyproject.toml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = ["hatchling>=1.10.0"]
4+
5+
[project]
6+
name = "papis-html"
7+
version = "0.1"
8+
description = "Create a simple searchable offline HTML site with your references"
9+
readme = "README.rst"
10+
keywords = [
11+
"bibtex",
12+
"biliography",
13+
"cli",
14+
"html",
15+
"javascript",
16+
"management",
17+
"papis",
18+
]
19+
license = { text = "GPL-3.0-or-later" }
20+
maintainers = [{ name = "Alejandro Gallo", email = "[email protected]" }]
21+
authors = [{ name = "Alejandro Gallo", email = "[email protected]" }]
22+
requires-python = ">=3.8"
23+
classifiers = [
24+
"Development Status :: 3 - Alpha",
25+
"Environment :: Console",
26+
"Environment :: Console :: Curses",
27+
"Intended Audience :: Developers",
28+
"Intended Audience :: Science/Research",
29+
"Intended Audience :: End Users/Desktop",
30+
"Intended Audience :: System Administrators",
31+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
32+
"Operating System :: MacOS",
33+
"Operating System :: POSIX",
34+
"Operating System :: Unix",
35+
"Operating System :: Microsoft",
36+
"Operating System :: OS Independent",
37+
"Programming Language :: Python :: 3.8",
38+
"Programming Language :: Python :: 3.9",
39+
"Programming Language :: Python :: 3.10",
40+
"Programming Language :: Python :: 3.11",
41+
"Programming Language :: Python :: 3.12",
42+
"Programming Language :: Python :: 3.13",
43+
"Topic :: Utilities",
44+
]
45+
dependencies = [
46+
"papis==0.14",
47+
]
48+
49+
[project.urls]
50+
Repository = "https://github.com/papis/scripts/tree/master/papis-html"
51+
52+
[project.optional-dependencies]
53+
develop = [
54+
"flake8",
55+
"flake8-bugbear",
56+
"Flake8-pyproject",
57+
"flake8-quotes",
58+
"mypy>=0.7",
59+
"pep8-naming",
60+
]
61+
62+
[project.entry-points."papis.command"]
63+
html = "papis_html:main"
64+
65+
[tool.hatch.build.targets.wheel]
66+
packages = ["papis_html"]
67+
68+
[tool.flake8]
69+
select = ["B", "D", "E", "F", "N", "Q", "W"]
70+
extend-ignore = ["B019", "E123", "N818", "W503"]
71+
max-line-length = 88
72+
inline-quotes = "double"
73+
multiline-quotes = "double"
74+
75+
[tool.mypy]
76+
strict = true
77+
pretty = true
78+
show_column_numbers = true
79+
hide_error_codes = false
80+
files = [ "papis_html" ]
81+
warn_unused_ignores = false

papis-html/setup.cfg

Lines changed: 0 additions & 13 deletions
This file was deleted.

papis-html/setup.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)