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

poetry add build scripts #244

Merged
merged 1 commit into from
Dec 14, 2021
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
30 changes: 12 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10.0"
os: linux
dist: bionic
sudo: false
matrix:
include:
- python: 3.8
env: TOXENV=py38
- python: 3.7
env: TOXENV=py37
- python: 3.6
env: TOXENV=py36
- python: 3.5
env: TOXENV=py35
- python: 3.4
env: TOXENV=py34
allow_failures:
- env: TOXENV=flake8
addons:
apt:
packages:
Expand All @@ -26,14 +20,15 @@ addons:
- texlive-latex-recommended
- lmodern
install:
- travis_retry python -m pip install tox
- travis_retry python -m pip install poetry
- travis_retry poetry install
# only download pandoc, the tests should work without a install of pypandoc
- python -c "from pypandoc import download_pandoc as dp; dp(targetfolder='~/bin/');"
- poetry run python -c "from pypandoc import download_pandoc as dp; dp(targetfolder='~/bin/');"
- export PATH=~/bin:$PATH

script:
- ~/bin/pandoc -v
- tox
- poetry run python tests.py

deploy:
provider: pypi
Expand All @@ -43,4 +38,3 @@ deploy:
on:
tags: true
repo: NicklasTegner/pypandoc
condition: $TOXENV == py37
Empty file removed __init__.py
Empty file.
21 changes: 16 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ environment:
PYTHON_VERSION: "3.8.x"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python39-x64"
PYTHON_VERSION: "3.9.9"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python310-x64"
PYTHON_VERSION: "3.10.1"
PYTHON_ARCH: "64"


install:
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
Expand Down Expand Up @@ -68,16 +77,18 @@ install:
# about it being out of date.
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
- "python -m pip install twine wheel"
- "python -m pip install poetry"
- "poetry install"

build_script:
- "python --version"
- "python setup.py download_pandoc"
- "pypandoc\\files\\pandoc --version"
- "poetry run python --version"
- "poetry run python setup.py download_pandoc"
- "poetry run pypandoc\\files\\pandoc --version"

test_script:
# Run the project tests
- "python --version"
- "python tests.py"
- "poetry run python --version"
- "poetry run python tests.py"

after_test:
# If tests are successful, create binary packages for the project.
Expand Down
54 changes: 54 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[tool.poetry]
name = "pypandoc"
version = "1.7.0"
description = "Thin wrapper for pandoc"
authors = ["NicklasTegner <NicklasMCHD@live.dk>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/NicklasTegner/pypandoc"

classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Text Processing',
'Topic :: Text Processing :: Filters',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
]

packages = [
{ include = "pypandoc" },
]

include = [
"examples/*",
"LICENSE",
"README.md",
"tests.py",
"filter_test.md",
]

[tool.poetry.dependencies]
python = "^3"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.urls]
"Issue Tracker" = "https://github.com/NicklasTegner/pypandoc/issues"

34 changes: 0 additions & 34 deletions tox.ini

This file was deleted.