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

Replace 'cairocffi' by 'pycairo' #50

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ python:
- "3.6"
# command to install dependencies
before_install:
- sudo apt-get install libcairo2-dev python-dev libffi-dev
- sudo apt-get install libcairo2-dev pkg-config python3-dev
- pip install pytest coveralls pytest-cov pillow
- pip install -e .
# command to run tests
Expand Down
5 changes: 4 additions & 1 deletion examples/roses.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

import gizeh as gz
import numpy as np
from fractions import gcd
try:
from fractions import gcd
except ImportError:
from math import gcd

def rose(d, n):
""" Returns a polyline representing a rose of radius 1 """
Expand Down
2 changes: 1 addition & 1 deletion gizeh/gizeh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from copy import copy, deepcopy
from base64 import b64encode
import numpy as np
import cairocffi as cairo
import cairo
from .geometry import (rotation_matrix,
translation_matrix,
scaling_matrix,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
long_description=open('README.rst').read(),
license='see LICENSE.txt',
keywords="Cairo vector graphics",
install_requires=['cairocffi', 'numpy'],
install_requires=['pycairo', 'numpy'],
packages= find_packages(exclude='docs'))