Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README-contributor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Icecream (Forked) - My Contribution

I used this repository to modernise the build infrastructure of the `icecream` library.

### What I Accomplished:
- Migrated static metadata from `setup.py` to a PEP 621-compliant `pyproject.toml` file.
- Preserved custom `cmdclass` handlers for testing/publishing to maintain full backwards compatibility.
- Verified the build locally via editable installation (`pip install -e .`).

**View my official, live Pull Request here:** https://github.com/gruns/icecream/pull/237
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "icecream"
authors = [
{name = "Ansgar Grunseid", email = "grunseid@gmail.com"},
]
description = """
Never use print() to debug again: inspect variables, expressions, and \
program execution with a single, simple function call.\
"""
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"colorama>=0.3.9",
"pygments>=2.2.0",
"executing>=2.1.0",
"asttokens>=2.0.1",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/gruns/icecream"

[project.optional-dependencies]
test = [
"tox>=4",
]

[tool.setuptools.dynamic]
version = {attr = "icecream.__version__.__version__"}

[tool.setuptools]
include-package-data = true

[tool.mypy]
show_error_codes=true
disallow_untyped_defs=true
Expand Down
41 changes: 0 additions & 41 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,48 +64,7 @@ def run_tests(self) -> None:
result = TextTestRunner().run(suite)
sys.exit(0 if result.wasSuccessful() else -1)


setup(
name=meta['__title__'],
license=meta['__license__'],
version=meta['__version__'],
author=meta['__author__'],
author_email=meta['__contact__'],
url=meta['__url__'],
description=meta['__description__'],
long_description=(
'Information and documentation can be found at '
'https://github.com/gruns/icecream.'),
platforms=['any'],
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
package_data={'icecream': ['py.typed']},
classifiers=[
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: 3.14',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
],
tests_require=[
'tox>=4',
],
install_requires=[
'colorama>=0.3.9',
'pygments>=2.2.0',
'executing>=2.1.0',
'asttokens>=2.0.1',
],
cmdclass={
'test': RunTests,
'publish': Publish,
Expand Down