Skip to content

Commit 3a03a4a

Browse files
committed
setup: switch to pyproject and hatchling
1 parent f27f38d commit 3a03a4a

4 files changed

Lines changed: 82 additions & 97 deletions

File tree

MANIFEST.in

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

pyproject.toml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
requires-python = ">=3.8"
19+
classifiers = [
20+
"Development Status :: 3 - Alpha",
21+
"Intended Audience :: Developers",
22+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
23+
"Natural Language :: English",
24+
"Operating System :: OS Independent",
25+
"Programming Language :: Python :: 3 :: Only",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
32+
"Topic :: Utilities",
33+
]
34+
35+
[project.optional-dependencies]
36+
develop = [
37+
"flake8",
38+
"flake8-bugbear",
39+
"Flake8-pyproject",
40+
"flake8-quotes",
41+
"mypy>=0.7",
42+
"pep8-naming",
43+
"pytest",
44+
"pytest-cov",
45+
"python-coveralls",
46+
]
47+
docs = [
48+
"sphinx>=4",
49+
"sphinx_rtd_theme>=1",
50+
]
51+
52+
[project.urls]
53+
Repository = "https://github.com/papis/python-doi"
54+
55+
[tool.hatch.build.targets.sdist]
56+
exclude = [".github", "docs/build"]
57+
58+
[tool.hatch.build.targets.wheel]
59+
packages = ["src/doi"]
60+
61+
[tool.flake8]
62+
select = ["B", "D", "E", "F", "N", "Q", "W"]
63+
extend-ignore = ["B019", "E123", "N818", "W503"]
64+
max-line-length = 88
65+
inline-quotes = "double"
66+
multiline-quotes = "double"
67+
68+
[tool.pytest.ini_options]
69+
addopts = [
70+
"--doctest-modules",
71+
"--cov=src/doi",
72+
]
73+
markers = [
74+
"net: marks tests that call use the net"
75+
]
76+
77+
[tool.mypy]
78+
strict = true
79+
show_column_numbers = true
80+
hide_error_codes = false
81+
pretty = true
82+
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)