Skip to content

Commit

Permalink
Switch completely to pyproject.toml (& hatch for building)
Browse files Browse the repository at this point in the history
  • Loading branch information
danthedeckie committed Oct 7, 2024
1 parent d4d553c commit f270a29
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 31 deletions.
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

52 changes: 48 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
[project]
name = "simpleeval"
requires-python = ">=3.9"
readme = "README.rst"
description = "A simple, safe single expression evaluator library."
licence = "MIT"
authors = [
{ name = "Daniel Fairhead", email = "danthedeckie@gmail.com" }
]
maintainers = [
{ name = "Daniel Fairhead", email = "danthedeckie@gmail.com" }
]
keywords = [
"eval", "simple", "expression", "parse", "ast"
]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
]
dynamic = ["version"]
dependencies = [
"pip>=24.2",
]

[project.urls]
"Source code" = "https://github.com/danthedeckie/simpleeval"

[pycodestyle]
max_line_length = 99

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

[tool.hatch.build.targets.sdist]
include = [
"simpleeval.py",
"test_simpleeval.py",
"README.rst",
"LICENCE",
]

[tool.hatch.version]
path = "simpleeval.py"

[tool.black]
line-length = 99
Expand Down Expand Up @@ -29,5 +74,4 @@ disable = [
"useless-object-inheritance",
"unnecessary-pass",
"bad-super-call",
]

]
24 changes: 0 additions & 24 deletions setup.cfg

This file was deleted.

2 changes: 2 additions & 0 deletions simpleeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@
"""

__version__ = "1.0.1"

import ast
import operator as op
import sys
Expand Down

0 comments on commit f270a29

Please sign in to comment.