Skip to content

Commit

Permalink
Create pyproject.toml (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed May 31, 2024
1 parent 7b25b95 commit 0ad2b14
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 57 deletions.
7 changes: 0 additions & 7 deletions TODO.md

This file was deleted.

5 changes: 0 additions & 5 deletions build.sh

This file was deleted.

70 changes: 70 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license
# Publish pip package to PyPI https://pypi.org/project/ultralytics/ and Docs to https://docs.ultralytics.com
#
# Overview:
# This `pyproject.toml` file manages the build, packaging, and distribution of the `thop` library.
# It defines essential project metadata, dependencies, and settings used to develop and deploy the library.
#
# Key Sections:
# - `[build-system]`: Specifies the build requirements and backend (e.g., setuptools, wheel).
# - `[project]`: Includes details like name, version, description, authors, dependencies, and more.
# - `[tool.setuptools.dynamic]`: Configures dynamic versioning for the project.
# - `[tool.setuptools]`: Configures settings specific to the `setuptools` build backend.
#
# Installation:
# The `thop` library can be installed using the command: `pip install thop`
# For development purposes, you can install the package in editable mode with: `pip install -e .`
# This approach allows for real-time code modifications without the need for re-installation.
#
# Documentation:
# For comprehensive documentation and usage instructions, visit: https://github.com/ultralytics/thop

[build-system]
requires = ["setuptools>=57.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "thop"
version = "0.0.1" # Placeholder version, needs to be dynamically set
description = "A tool to count the FLOPs of PyTorch model."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
keywords = ["FLOPs", "PyTorch", "Model Analysis"] # Optional
authors = [
{ name = "Ligeng Zhu", email = "[email protected]" }
]
maintainers = [
{ name = "Ligeng Zhu", email = "[email protected]" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
]
dependencies = [
"torch",
]

[project.urls]
"Homepage" = "https://github.com/ultralytics/thop"

[tool.setuptools]
package-data = { "thop" = ["__version__.py"] }

[tool.setuptools.dynamic]
version = { attr = "thop.__version__.VERSION" }
Empty file removed requirements.txt
Empty file.
45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

0 comments on commit 0ad2b14

Please sign in to comment.