Skip to content
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
38 changes: 18 additions & 20 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: Visual Studio 2022
image: Ubuntu
environment:

matrix:
Expand All @@ -8,22 +8,18 @@ environment:
# The list here is complete (excluding Python 2.6, which
# isn't covered by this document) at the time of writing.

- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38-x64"
- PYTHON: "C:\\Python39-x64"
- PYTHON: "C:\\Python310-x64"
- PYTHON: "C:\\Python311-x64"
- PYTHON: 3.7
- PYTHON: 3.8
- PYTHON: 3.9
- PYTHON: 3.10
- PYTHON: 3.11
- PYTHON: 3.12

install:
# Newer setuptools is needed for proper support of pyproject.toml
- "%PYTHON%\\python.exe -m pip install setuptools --upgrade"
# We need wheel installed to build wheels
- "%PYTHON%\\python.exe -m pip install wheel --upgrade"
- "%PYTHON%\\python.exe -m pip install build setuptools_scm"
- "%PYTHON%\\python.exe -m pip install pytest numpy pandas"
- source ~/venv${PYTHON}/bin/activate
- which python
- python -m pip install build pytest numpy pandas

build: off

Expand All @@ -35,20 +31,22 @@ test_script:
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python version you want to use on PATH.
#- "build.cmd %PYTHON%\\python.exe setup.py test"
- "%PYTHON%\\python.exe -m pytest -v --doctest-modules --ignore benchmark.py"
- source ~/venv${PYTHON}/bin/activate
- which python
- python -m pytest -v --doctest-modules --ignore benchmark.py


after_test:
# This step builds your wheels.
# Again, you only need build.cmd if you're building C extensions for
# 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
# interpreter
#- "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"
- "%PYTHON%\\python.exe -m build -nswx ."
- source ~/venv${PYTHON}/bin/activate
- which python
- python -m build .

artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
- path: dist/*

#on_success:
# You can use this step to upload your artifacts to a public website.
Expand Down
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ Homepage = "https://github.com/astanin/python-tabulate"

[project.optional-dependencies]
widechars = ["wcwidth"]
test = [
"pytest",
"numpy",
"pandas",
"wcwidth",
]
dev = [
"tox",
"black",
"pre-commit",
]

[project.scripts]
tabulate = "tabulate:_main"
Expand All @@ -37,3 +48,7 @@ packages = ["tabulate"]

[tool.setuptools_scm]
write_to = "tabulate/version.py"

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
Loading