-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make dependencies and other build arguments static (#86)
Co-authored-by: Jonah Lawrence <[email protected]>
- Loading branch information
1 parent
d22c423
commit b969185
Showing
7 changed files
with
33 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
] | ||
requires = ["setuptools>=42"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[project] | ||
name = "table2ascii" | ||
authors = [{name = "Jonah Lawrence", email = "[email protected]"}] | ||
dynamic = ["version", "description", "readme", "dependencies", "optional-dependencies"] | ||
dynamic = ["version"] | ||
description = "Convert 2D Python lists into Unicode/ASCII tables" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
license = {file = "LICENSE"} | ||
keywords = ["table", "ascii", "unicode", "formatter"] | ||
|
@@ -38,7 +37,30 @@ classifiers = [ | |
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Typing :: Typed", | ||
] | ||
dependencies = [ | ||
"typing-extensions>=3.7.4; python_version<'3.8'", | ||
"wcwidth<1", | ||
] | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"enum-tools", | ||
"sphinx", | ||
"sphinx-autobuild", | ||
"sphinx-toolbox", | ||
"sphinxcontrib_trio", | ||
"sphinxext-opengraph", | ||
"sphinx-book-theme==0.3.3", | ||
] | ||
dev = [ | ||
"mypy>=0.982,<1", | ||
"pre-commit>=2.0.0,<3", | ||
"pyright>=1.0.0,<2", | ||
"pytest>=6.0.0,<8", | ||
"slotscheck>=0.1.0,<1", | ||
"taskipy>=1.0.0,<2", | ||
"tox>=3.0.0,<5", | ||
] | ||
|
||
[project.urls] | ||
documentation = "https://table2ascii.rtfd.io" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# /usr/bin/env python | ||
import os | ||
import re | ||
|
||
from setuptools import setup | ||
|
@@ -14,57 +13,4 @@ def version(): | |
return version.group(1) | ||
|
||
|
||
def long_description(): | ||
# check if README.md exists | ||
if not os.path.exists("README.md"): | ||
return "" | ||
with open("README.md", "r", encoding="utf-8") as fh: | ||
return fh.read() | ||
|
||
|
||
def requirements(): | ||
# check if requirements.txt exists | ||
if not os.path.exists("requirements.txt"): | ||
return [] | ||
with open("requirements.txt") as f: | ||
return f.read().splitlines() | ||
|
||
|
||
extras_require = { | ||
"docs": [ | ||
"enum-tools", | ||
"sphinx", | ||
"sphinx-autobuild", | ||
"sphinx-toolbox", | ||
"sphinxcontrib_trio", | ||
"sphinxext-opengraph", | ||
"sphinx-book-theme==0.3.3", | ||
], | ||
"dev": [ | ||
"mypy>=0.982,<1", | ||
"pre-commit>=2.0.0,<3", | ||
"pyright>=1.0.0,<2", | ||
"pytest>=6.0.0,<8", | ||
"slotscheck>=0.1.0,<1", | ||
"taskipy>=1.0.0,<2", | ||
"tox>=3.0.0,<5", | ||
], | ||
} | ||
|
||
setup( | ||
name="table2ascii", | ||
version=version(), | ||
author="Jonah Lawrence", | ||
author_email="[email protected]", | ||
description="Convert 2D Python lists into Unicode/Ascii tables", | ||
long_description=long_description(), | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/DenverCoder1/table2ascii", | ||
packages=["table2ascii"], | ||
install_requires=requirements(), | ||
extras_require=extras_require, | ||
setup_requires=[], | ||
tests_require=[ | ||
"pytest>=6.2,<8", | ||
], | ||
) | ||
setup(name="table2ascii", version=version()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ envlist = py37, py38, py39, py310, py311 | |
[testenv] | ||
deps = | ||
pytest | ||
-rrequirements.txt | ||
commands = pytest tests -s |