Skip to content

Commit

Permalink
migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Dec 2, 2024
1 parent 8288086 commit 7337a5b
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('pyproject.toml') }}|${{ hashFiles('requirements/*.txt') }}
- run: pip install tox
- run: tox -e ${{ matrix.tox }}
8 changes: 0 additions & 8 deletions MANIFEST.in

This file was deleted.

66 changes: 66 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[project]
name = "boltons"
version = "24.1.1dev"
description = "When they're not builtins, they're boltons."
readme = "README.md"
authors = [{ name = "Mahmoud Hashemi", email = "[email protected]" }]
classifiers = [
# See: https://pypi.python.org/pypi?:action=list_classifiers
"Topic :: Utilities",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Libraries",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
# List of python versions and their support status:
# https://en.wikipedia.org/wiki/CPython#Version_history
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.7"
license = { file = "LICENSE" }

[project.urls]
Homepage = "https://github.com/mahmoud/boltons"

[tool.flit.sdist]
include = ["doc/", "tests/", "CHANGELOG.md", "tox.ini"]
exclude = ["doc/_build"]

[tool.pytest.ini_options]
doctest_optionflags = [
"ALLOW_UNICODE",
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
"NORMALIZE_WHITESPACE",
]

[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

# A brief checklist for release:
# * tox
# * git commit (if applicable)
# * Bump pyproject.toml version off of -dev
# * git commit -a -m "bump version for x.y.z release"
# * rm -rf dist/*
# * python -m build
# * twine upload dist/*
# * bump docs/conf.py version
# * git commit
# * git tag -a x.y.z -m "brief summary"
# * write CHANGELOG
# * git commit
# * bump pyproject.toml version onto n+1 dev
# * git commit
# * git push
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

77 changes: 0 additions & 77 deletions setup.py

This file was deleted.

0 comments on commit 7337a5b

Please sign in to comment.