Skip to content

Commit 668562a

Browse files
authored
migrate setup.cfg to pyproject.toml (#1776)
1 parent fbdb2bf commit 668562a

File tree

2 files changed

+110
-102
lines changed

2 files changed

+110
-102
lines changed

pyproject.toml

+110-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,112 @@
1+
[project]
2+
name = "jira"
3+
authors = [{name = "Ben Speakmon", email = "[email protected]"}]
4+
maintainers = [{name = "Sorin Sbarnea", email = "[email protected]"}]
5+
description = "Python library for interacting with JIRA via REST APIs."
6+
requires-python = ">=3.8"
7+
license = {text = "BSD-2-Clause"}
8+
classifiers = [
9+
"Development Status :: 5 - Production/Stable",
10+
"Environment :: Other Environment",
11+
"Intended Audience :: Developers",
12+
"Intended Audience :: Information Technology",
13+
"License :: OSI Approved :: BSD License",
14+
"Operating System :: OS Independent",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3 :: Only",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Topic :: Software Development :: Libraries :: Python Modules",
23+
"Topic :: Internet :: WWW/HTTP",
24+
]
25+
keywords = ["api", "atlassian", "jira", "rest", "web"]
26+
dependencies = [
27+
"defusedxml",
28+
"packaging",
29+
"Pillow>=2.1.0",
30+
"requests-oauthlib>=1.1.0",
31+
"requests>=2.10.0",
32+
"requests_toolbelt",
33+
"typing_extensions>=3.7.4.2",
34+
]
35+
dynamic = ["version"]
36+
37+
[project.readme]
38+
file = "README.rst"
39+
content-type = "text/x-rst; charset=UTF-8"
40+
# Do not include ChangeLog in description-file due to multiple reasons:
41+
# - Unicode chars, see https://github.com/pycontribs/jira/issues/512
42+
# - Breaks ability to perform `python setup.py install`
43+
44+
[project.urls]
45+
Homepage = "https://github.com/pycontribs/jira"
46+
"Bug Tracker" = "https://github.com/pycontribs/jira/issues"
47+
"Release Management" = "https://github.com/pycontribs/jira/projects"
48+
"CI: GitHub Actions" = "https://github.com/pycontribs/jira/actions"
49+
"Source Code" = "https://github.com/pycontribs/jira.git"
50+
Documentation = "https://jira.readthedocs.io"
51+
Forum = "https://community.atlassian.com/t5/tag/jira-python/tg-p?sort=recent"
52+
53+
[project.optional-dependencies]
54+
cli = [
55+
"ipython>=4.0.0",
56+
"keyring",
57+
]
58+
docs = [
59+
"sphinx>=5.0.0",
60+
"sphinx-copybutton",
61+
# HTML Theme
62+
"furo",
63+
]
64+
opt = [
65+
"filemagic>=1.6",
66+
"PyJWT",
67+
"requests_jwt",
68+
"requests_kerberos",
69+
]
70+
async = ["requests-futures>=0.9.7"]
71+
test = [
72+
"docutils>=0.12",
73+
"flaky",
74+
"MarkupSafe>=0.23",
75+
"oauthlib",
76+
"pytest-cache",
77+
"pytest-cov",
78+
"pytest-instafail",
79+
"pytest-sugar",
80+
"pytest-timeout>=1.3.1",
81+
"pytest-xdist>=2.2",
82+
"pytest>=6.0.0", # MIT
83+
"PyYAML>=5.1", # MIT
84+
"requests_mock", # Apache-2
85+
"requires.io", # UNKNOWN!!!
86+
"tenacity", # Apache-2
87+
"wheel>=0.24.0", # MIT
88+
"yanc>=0.3.3", # GPL
89+
"parameterized>=0.8.1", # BSD-3-Clause
90+
]
91+
92+
[project.scripts]
93+
jirashell = "jira.jirashell:main"
94+
95+
[tool.files]
96+
packages = """
97+
jira"""
98+
99+
[tool.setuptools]
100+
include-package-data = true
101+
zip-safe = false
102+
platforms = ["any"]
103+
104+
[tool.setuptools.packages]
105+
find = {namespaces = false}
106+
107+
[tool.setuptools.package-data]
108+
jira = ["jira/py.typed"]
109+
1110
[build-system]
2111
requires = ["setuptools >= 60.0.0", "setuptools_scm[toml] >= 7.0.0"]
3112
build-backend = "setuptools.build_meta"
@@ -14,7 +123,7 @@ addopts = '''-p no:xdist --durations=10 --tb=long -rxX -v --color=yes
14123
--junitxml=build/results.xml
15124
--cov-report=xml --cov jira'''
16125

17-
# these are important for distributed testing, to speedup their execution we minimize what we sync
126+
# these are important for distributed testing, to speed up their execution we minimize what we sync
18127
rsyncdirs = ". jira demo docs"
19128
rsyncignore = ".git"
20129

setup.cfg

-101
This file was deleted.

0 commit comments

Comments
 (0)