Skip to content

Commit 3e63b24

Browse files
committed
πŸ§‘β€πŸ’» support uv
1 parent edb9803 commit 3e63b24

File tree

2 files changed

+911
-49
lines changed

2 files changed

+911
-49
lines changed

β€Žpyproject.tomlβ€Ž

Lines changed: 53 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
[build-system]
2+
build-backend = 'setuptools.build_meta'
3+
requires = ['setuptools', 'setuptools-scm']
14

25
[project]
3-
authors = [{ name = 'Rick van Hattem (Wolph)', email = '[email protected]' }]
6+
name = 'progressbar2'
7+
description = 'A Python Progressbar library to provide visual (yet text based) progress to long running operations.'
48
dynamic = ['version']
9+
authors = [{ name = 'Rick van Hattem (Wolph)', email = '[email protected]' }]
10+
license = { text = 'BSD-3-Clause' }
11+
readme = 'README.rst'
512
keywords = [
613
'REPL',
714
'animated',
@@ -33,10 +40,6 @@ keywords = [
3340
'time',
3441
'visual',
3542
]
36-
license = { text = 'BSD-3-Clause' }
37-
name = 'progressbar2'
38-
requires-python = '>=3.8'
39-
4043
classifiers = [
4144
'Development Status :: 5 - Production/Stable',
4245
'Development Status :: 6 - Mature',
@@ -67,11 +70,12 @@ classifiers = [
6770
'Operating System :: Unix',
6871
'Programming Language :: Python :: 3 :: Only',
6972
'Programming Language :: Python :: 3',
73+
'Programming Language :: Python :: 3.8',
74+
'Programming Language :: Python :: 3.9',
7075
'Programming Language :: Python :: 3.10',
7176
'Programming Language :: Python :: 3.11',
7277
'Programming Language :: Python :: 3.12',
73-
'Programming Language :: Python :: 3.8',
74-
'Programming Language :: Python :: 3.9',
78+
'Programming Language :: Python :: 3.13',
7579
'Programming Language :: Python :: Implementation :: IronPython',
7680
'Programming Language :: Python :: Implementation :: PyPy',
7781
'Programming Language :: Python :: Implementation',
@@ -83,8 +87,8 @@ classifiers = [
8387
'Topic :: Office/Business',
8488
'Topic :: Other/Nonlisted Topic',
8589
'Topic :: Software Development :: Build Tools',
86-
'Topic :: Software Development :: Libraries :: Python Modules',
8790
'Topic :: Software Development :: Libraries',
91+
'Topic :: Software Development :: Libraries :: Python Modules',
8892
'Topic :: Software Development :: Pre-processors',
8993
'Topic :: Software Development :: User Interfaces',
9094
'Topic :: System :: Installation/Setup',
@@ -93,26 +97,25 @@ classifiers = [
9397
'Topic :: System :: Shells',
9498
'Topic :: Terminals',
9599
'Topic :: Utilities',
100+
'Typing :: Typed',
96101
]
97-
description = 'A Python Progressbar library to provide visual (yet text based) progress to long running operations.'
98-
readme = 'README.rst'
99102

103+
requires-python = '>3.8'
100104
dependencies = ['python-utils >= 3.8.1']
101105

102-
[tool.setuptools.dynamic]
103-
version = { attr = 'progressbar.__about__.__version__' }
104-
105-
[tool.setuptools.packages.find]
106-
exclude = ['docs*', 'tests*']
107-
108-
[tool.setuptools]
109-
include-package-data = true
106+
[project.urls]
107+
bugs = 'https://github.com/wolph/python-progressbar/issues'
108+
documentation = 'https://progressbar-2.readthedocs.io/en/latest/'
109+
repository = 'https://github.com/wolph/python-progressbar/'
110110

111111
[project.scripts]
112112
progressbar = 'progressbar.__main__:main'
113113

114114
[project.optional-dependencies]
115-
docs = ['sphinx>=1.8.5', 'sphinx-autodoc-typehints>=1.6.0']
115+
docs = [
116+
'sphinx>=1.8.5',
117+
'sphinx-autodoc-typehints>=1.6.0',
118+
]
116119
tests = [
117120
'dill>=0.3.6',
118121
'flake8>=3.7.7',
@@ -124,48 +127,29 @@ tests = [
124127
'pywin32; sys_platform == "win32"',
125128
]
126129

127-
[project.urls]
128-
bugs = 'https://github.com/wolph/python-progressbar/issues'
129-
documentation = 'https://progressbar-2.readthedocs.io/en/latest/'
130-
repository = 'https://github.com/wolph/python-progressbar/'
131-
132-
[build-system]
133-
build-backend = 'setuptools.build_meta'
134-
requires = ['setuptools', 'setuptools-scm']
135-
136-
[tool.codespell]
137-
skip = '*/htmlcov,./docs/_build,*.asc'
138-
139-
ignore-words-list = 'datas,numbert'
130+
[dependency-groups]
131+
dev = ['progressbar2[docs,tests]']
140132

141133
[tool.black]
142134
line-length = 79
143135
skip-string-normalization = true
144136

145-
[tool.mypy]
146-
packages = ['progressbar', 'tests']
147-
exclude = [
148-
'^docs$',
149-
'^tests/original_examples.py$',
150-
'^examples.py$',
151-
]
137+
[tool.codespell]
138+
skip = '*/htmlcov,./docs/_build,*.asc'
139+
ignore-words-list = 'datas,numbert'
152140

153141
[tool.coverage.run]
154142
branch = true
155-
source = [
156-
'progressbar',
157-
'tests',
158-
]
143+
source = ['progressbar', 'tests']
159144
omit = [
160145
'*/mock/*',
161146
'*/nose/*',
162147
'.tox/*',
163148
'*/os_specific/*',
164149
]
150+
165151
[tool.coverage.paths]
166-
source = [
167-
'progressbar',
168-
]
152+
source = ['progressbar']
169153

170154
[tool.coverage.report]
171155
fail_under = 100
@@ -185,10 +169,20 @@ exclude_lines = [
185169
'typing.Protocol',
186170
]
187171

172+
173+
[tool.mypy]
174+
packages = ['progressbar', 'tests']
175+
exclude = [
176+
'^docs$',
177+
'^tests/original_examples.py$',
178+
'^examples.py$',
179+
]
180+
181+
188182
[tool.pyright]
189-
include= ['progressbar']
190-
exclude= ['examples', '.tox']
191-
ignore= ['docs']
183+
include = ['progressbar']
184+
exclude = ['examples', '.tox']
185+
ignore = ['docs']
192186
strict = [
193187
'progressbar/algorithms.py',
194188
'progressbar/env.py',
@@ -216,3 +210,13 @@ reportUnnecessaryCast = false
216210
reportUnnecessaryTypeAssertion = false
217211
reportUnnecessaryComparison = false
218212
reportUnnecessaryContains = false
213+
214+
215+
[tool.setuptools]
216+
include-package-data = true
217+
218+
[tool.setuptools.dynamic]
219+
version = { attr = 'progressbar.__about__.__version__' }
220+
221+
[tool.setuptools.packages.find]
222+
exclude = ['docs*', 'tests*']

0 commit comments

Comments
Β (0)