Merge branch 'master' into windows_support
This commit is contained in:
commit
5f19e625de
4 changed files with 20 additions and 1 deletions
|
@ -6,6 +6,10 @@ machine:
|
|||
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- sudo apt install pandoc pandoc-citeproc
|
||||
- bash scripts/before_script.sh
|
||||
|
||||
post:
|
||||
- pip install -r dev-requirements.txt
|
||||
|
||||
|
@ -15,3 +19,4 @@ test:
|
|||
- flake8 md_pdf/ --ignore=E128,E501
|
||||
- safety check
|
||||
- bandit -r md_pdf/
|
||||
- mdp --help
|
||||
|
|
0
md_pdf/config/__init__.py
Normal file
0
md_pdf/config/__init__.py
Normal file
12
scripts/before_script.sh
Normal file
12
scripts/before_script.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# 'stolen' from https://github.com/JazzCore/python-pdfkit/blob/master/travis/before-script.sh
|
||||
|
||||
set -e
|
||||
|
||||
sudo apt-get install -y openssl build-essential xorg libssl-dev
|
||||
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
|
||||
tar -xJf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
|
||||
cd wkhtmltox
|
||||
sudo chown root:root bin/wkhtmltopdf
|
||||
sudo cp -r * /usr/
|
4
setup.py
4
setup.py
|
@ -1,4 +1,4 @@
|
|||
from setuptools import setup
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
||||
setup(
|
||||
|
@ -13,6 +13,8 @@ setup(
|
|||
"pyscss==1.3.5",
|
||||
"PyYAML==3.12"
|
||||
],
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
entry_points="""
|
||||
[console_scripts]
|
||||
mdp=md_pdf.cli:cli
|
||||
|
|
Reference in a new issue