Merge pull request #112 from Precioussheep/feature/build-migration

migrate setup.py to pyproject.toml
This commit is contained in:
Georgios Verigakis
2025-07-01 08:18:14 +03:00
committed by GitHub
4 changed files with 40 additions and 34 deletions

View File

@@ -1,2 +0,0 @@
include README.rst LICENSE
include test_*.py

View File

@@ -24,7 +24,7 @@ except ImportError:
from time import time as monotonic from time import time as monotonic
__version__ = '1.6' __version__ = '1.6.1'
HIDE_CURSOR = '\x1b[?25l' HIDE_CURSOR = '\x1b[?25l'
SHOW_CURSOR = '\x1b[?25h' SHOW_CURSOR = '\x1b[?25h'

39
pyproject.toml Normal file
View File

@@ -0,0 +1,39 @@
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "progress"
dynamic = ["version"]
description = "Easy to use progress bars"
readme = "README.rst"
authors = [{ name = "Georgios Verigakis", email = "verigak@gmail.com" }]
maintainers = [{ name = "Georgios Verigakis", email = "verigak@gmail.com" }]
license = "ISC"
license-files = ["LICENSE"]
requires-python = ">=3.6"
keywords = ["progress", "bar"]
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/verigak/progress/"
Repository = "https://github.com/verigak/progress.git"
Issues = "https://github.com/verigak/progress/issues"
[tool.setuptools]
packages = ["progress"]
[tool.setuptools.dynamic]
version = {attr = "progress.__version__"}

View File

@@ -1,31 +0,0 @@
#!/usr/bin/env python
from setuptools import setup
import progress
setup(
name='progress',
version=progress.__version__,
description='Easy to use progress bars',
long_description=open('README.rst').read(),
author='Georgios Verigakis',
author_email='verigak@gmail.com',
url='http://github.com/verigak/progress/',
license='ISC',
packages=['progress'],
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
]
)