Skip to content

Commit 6b1894e

Browse files
committed
setup: switch to pyproject and hatchling
1 parent f27f38d commit 6b1894e

4 files changed

Lines changed: 80 additions & 97 deletions

File tree

MANIFEST.in

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

pyproject.toml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling>=1.10",
5+
]
6+
7+
[project]
8+
name = "python-doi"
9+
version = "0.2.0"
10+
description = "Python package to work with Document Object Identifiers (DOIs)"
11+
readme = "README.rst"
12+
keywords = [
13+
"doi",
14+
]
15+
license = { text = "GPL-3.0-or-later" }
16+
maintainers = [{ name = "Alejandro Gallo", email = "aamsgallo@gmail.com" }]
17+
authors = [{ name = "Alejandro Gallo", email = "aamsgallo@gmail.com" }]
18+
classifiers = [
19+
"Development Status :: 3 - Alpha",
20+
"Intended Audience :: Developers",
21+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
22+
"Natural Language :: English",
23+
"Operating System :: OS Independent",
24+
"Programming Language :: Python :: 3 :: Only",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
30+
"Topic :: Utilities",
31+
]
32+
33+
[project.optional-dependencies]
34+
develop = [
35+
"flake8",
36+
"flake8-bugbear",
37+
"Flake8-pyproject",
38+
"flake8-quotes",
39+
"mypy>=0.7",
40+
"pep8-naming",
41+
"pytest",
42+
"pytest-cov",
43+
"python-coveralls",
44+
]
45+
docs = [
46+
"sphinx>=4",
47+
"sphinx_rtd_theme>=1",
48+
]
49+
50+
[project.urls]
51+
Repository = "https://github.com/papis/python-doi"
52+
53+
[tool.hatch.build.targets.sdist]
54+
exclude = [".github", "docs/build"]
55+
56+
[tool.hatch.build.targets.wheel]
57+
packages = ["src/doi"]
58+
59+
[tool.flake8]
60+
select = ["B", "D", "E", "F", "N", "Q", "W"]
61+
extend-ignore = ["B019", "E123", "N818", "W503"]
62+
max-line-length = 88
63+
inline-quotes = "double"
64+
multiline-quotes = "double"
65+
66+
[tool.pytest.ini_options]
67+
addopts = [
68+
"--doctest-modules",
69+
"--cov=src/doi",
70+
]
71+
markers = [
72+
"net: marks tests that call use the net"
73+
]
74+
75+
[tool.mypy]
76+
strict = true
77+
show_column_numbers = true
78+
hide_error_codes = false
79+
pretty = true
80+
warn_unused_ignores = false

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)