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
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
sudo: true
language: python
python:
- 2.7
- 3.2
- 3.2
- 3.3
before_script: "./travis/before-script.sh"
script: python setup.py test
Expand Down
8 changes: 8 additions & 0 deletions conda-recipe/python-pdfkit/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"%PYTHON%" setup.py install
if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
9 changes: 9 additions & 0 deletions conda-recipe/python-pdfkit/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

$PYTHON setup.py install

# Add more build steps here, if they are necessary.

# See
# http://docs.continuum.io/conda/build.html
# for a list of environment variables that are set during the build process.
42 changes: 42 additions & 0 deletions conda-recipe/python-pdfkit/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package:
name: pdfkit
version: 0.5.1

source:
git_url: https://github.com/Geosyntec/python-pdfkit.git
git_tag: 0.5.1geo
# patches:
# List any patch files here
# - fix.patch

build:
noarch_python: False
number: 1

requirements:
build:
- python
- setuptools

run:
- python
- setuptools

test:
imports:
- pdfkit

# commands:
# - py.test

requires:
- pytest

about:
home: https://github.com/Geosyntec/python-pdfkit.git
license: MIT License
summary: 'Wkhtmltopdf python wrapper to convert html to pdf using the webkit rendering engine and qt'

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml/configure
7 changes: 3 additions & 4 deletions pdfkit/configuration.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# -*- coding: utf-8 -*-
import os
import subprocess
import sys
from pkg_resources import resource_filename

executable = resource_filename('pdfkit', 'wkhtmltopdf.exe')

class Configuration(object):
def __init__(self, wkhtmltopdf=executable, meta_tag_prefix='pdfkit-'):
def __init__(self, wkhtmltopdf=None, meta_tag_prefix='pdfkit-'):
self.meta_tag_prefix = meta_tag_prefix

if wkhtmltopdf is None:
wkhtmltopdf = resource_filename('pdfkit', 'wkhtmltopdf.exe')
self.wkhtmltopdf = wkhtmltopdf

if not self.wkhtmltopdf:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def long_description():
version=pdfkit.__version__,
description=pdfkit.__doc__.strip(),
long_description=long_description(),
download_url='https://github.com/Geosyntec/python-pdfkit',
download_url='https://github.com/JazzCore/python-pdfkit',
license=pdfkit.__license__,
tests_require=['pytest'],
cmdclass = {'test': PyTest},
Expand Down