Skip to content
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

Migrated the metadata into PEP 621-compliant pyproject.toml. #179

Merged
merged 3 commits into from Oct 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions .circleci/config.yml
Expand Up @@ -39,6 +39,16 @@ jobs:
- ./venv
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}

- run:
name: build wheel
command: |
. venv/bin/activate
python -m build -nwx .

- store_artifacts:
path: dist
destination: dist

- run:
name: run tests
command: |
Expand Down
5 changes: 5 additions & 0 deletions .circleci/requirements.txt
Expand Up @@ -3,3 +3,8 @@ tox
numpy
pandas
wcwidth
setuptools
pip
build
wheel
setuptools_scm
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
/tabulate/version.py

build
dist
.tox
Expand Down
5 changes: 2 additions & 3 deletions HOWTOPUBLISH
@@ -1,8 +1,7 @@
# update contributors and CHANGELOG in README
# tag version release
python3 benchmark.py # then update README
tox -e py33,py34,py36-extra
python3 setup.py sdist bdist_wheel
python3 -m build -nswx .
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
# tag version release
# bump version number in setup.py in tabulate.py
42 changes: 42 additions & 0 deletions pyproject.toml
@@ -0,0 +1,42 @@
[build-system]
requires = ["setuptools>=61.2.0", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[project]
name = "tabulate"
authors = [{name = "Sergey Astanin", email = "s.astanin@gmail.com"}]
license = {text = "MIT"}
description = "Pretty-print tabular data"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
]
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/astanin/python-tabulate"

[project.optional-dependencies]
widechars = ["wcwidth"]

[project.scripts]
tabulate = "tabulate:_main"

[tool.setuptools]
packages = ["tabulate"]

[tool.setuptools_scm]
write_to = "tabulate/version.py"
68 changes: 0 additions & 68 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion tabulate.py → tabulate/__init__.py
Expand Up @@ -63,7 +63,7 @@ def _is_file(f):


__all__ = ["tabulate", "tabulate_formats", "simple_separated_format"]
__version__ = "0.8.10"
from .version import version as __version__


# minimum extra space in headers
Expand Down