Skip to content

migrate to pyproject.toml #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/cache@v3
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 }},coverage-report
- name: "Upload coverage to Codecov"
Expand Down
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

6 changes: 4 additions & 2 deletions glom/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
version_info = (24, 11, 1, 'dev')
__version__ = '.'.join([str(part) for part in version_info if part or part == 0])
__version__ = "24.11.1.dev"
version_info = tuple(
int(part) if part.isdigit() else part for part in __version__.split(".")
)
76 changes: 76 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[project]
name = "glom"
dynamic = ["version"]
description = "A declarative object transformer and formatter, for conglomerating nested data."
readme = "README.md"
authors = [
{ name = "Mahmoud Hashemi and Kurt Rose", email = "[email protected]" },
]
classifiers = [
"Topic :: Utilities",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Development Status :: 5 - Production/Stable",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = ["boltons>=19.3.0", "attrs", "face>=20.1.1"]
license = "BSD-3-Clause"
requires-python = ">=3.7"

[project.optional-dependencies]
toml = ["tomli; python_version < '3.11'"]
yaml = ["PyYAML"]

[project.scripts]
glom = "glom.cli:console_main"

[project.urls]
Homepage = "https://github.com/mahmoud/glom"
Documentation = "https://glom.readthedocs.io/en/latest/"

[tool.flit.sdist]
include = [
"docs/",
"CHANGELOG.md",
"requirements.txt",
"tox.ini",
".tox-coveragerc",
]
exclude = ["docs/_build"]

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

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

# A brief checklist for release:

# * tox
# * git commit (if applicable)
# * Bump glom/_version.py off of -dev
# * git commit -a -m "bump version for vx.y.z release"
# * write CHANGELOG
# * bump docs/conf.py version
# * git commit
# * rm -rf dist/*
# * python3 -m build
# * twine upload dist/*
# * git tag -a vx.y.z -m "brief summary"
# * bump glom/_version.py onto n+1 dev
# * git commit
# * git push

# NB: if dropping support for a python version, bump the pyupgrade argument in tox and run syntax-upgrade tox env.
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

88 changes: 0 additions & 88 deletions setup.py

This file was deleted.