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

Replaces setup.py with pyproject.toml #236

Merged
merged 6 commits into from
Jul 3, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ Unreleased
* Rich text format lists can now be of length 2.
* gptables now supports python 3.11
* Official disclaimer included at the bottom of the README and PyPI index
* pyproject.toml is now used to manage the packaging

**Removed**

* CI for Python 3.6 on Linux, as no longer supported by GitHub action ``setup-python``
* Dataclasses as a dependency due to no longer supporting Python 3.6
* setup.py as this has been replaced by the more modern pyproject.toml

**Changed**

Expand Down
48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
exclude = ["test"]

[project]
name = "gptables"
authors = [
{name = "Analysis Standards and Pipelines", email = "[email protected]"}
]
maintainers = [
{name = "Analysis Standards and Pipelines", email = "[email protected]"}
]
dynamic = ["version"]
requires-python = '>=3.7'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this change. There may still be a small number of users on python 3.6 but they can use an earlier version of the package if they can't update their python version

description = 'Simplifying good practice in statistical tables.'
readme = "README.rst"
license = {text = "MIT License"}
keywords=["reproducible", "tables", "excel", "xlsxwriter", "reproducible-analytical-pipelines"]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
]
dependencies = [
"pandas>=0.25.3",
"xlrd>=1.2.0",
"XlsxWriter>=1.2.6",
"pyyaml>=3.12"
]

[project.optional-dependencies]
docs = [
"sphinx>=2",
"sphinx_rtd_theme"
]
testing = [
"sphinx>=2",
"sphinx_rtd_theme",
"coverage",
"pytest>=6.2.5",
"pytest-cov"
]

[project.urls]
Homepage = "https://github.com/best-practice-and-impact/gptables"
Documentation = "https://gptables.readthedocs.io/en/latest/"
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

51 changes: 0 additions & 51 deletions setup.py

This file was deleted.

Loading