aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Tétar2015-11-13 08:06:43 +0100
committerAdrien Tétar2015-11-13 08:06:43 +0100
commit1c43c3f610a112b2953e95295891f9427ebb7494 (patch)
treee31553f08aa6b08617c0c4d262c0a9d654193586
parent19aa1dc37277b290f73ddd732985823e0c333512 (diff)
parent692e7029d9a461ffa5316aa56d3d28083f8687fe (diff)
downloadtrufont-1c43c3f610a112b2953e95295891f9427ebb7494.tar.bz2
Merge pull request #140 from teddywing/add-requirements.txt
Add requirements.txt
-rw-r--r--.travis.yml11
-rw-r--r--INSTALL.md84
-rw-r--r--requirements.txt5
3 files changed, 25 insertions, 75 deletions
diff --git a/.travis.yml b/.travis.yml
index ec7f327..bf3c5bc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,16 +4,9 @@ dist: trusty
language: python
before_install:
- sudo apt-get update -qq
- - sudo apt-get install -qq -y python3-pyqt5 python3-flake8
- - git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/robofab
- - git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/defcon
- - git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/ufo2fdk
- - git clone --depth=1 https://github.com/behdad/fonttools.git
+ - sudo apt-get install -qq -y python3-pyqt5 python3-pip python3-flake8
+ - sudo pip3 install -r requirements.txt
- export PYTHONCMD=/usr/bin/python3
- - cd fonttools; $PYTHONCMD setup.py install --user; cd ..
- - cd defcon; $PYTHONCMD setup.py install --user; cd ..
- - cd robofab; $PYTHONCMD setup.py install --user; cd ..
- - cd ufo2fdk; $PYTHONCMD setup.py install --user; cd ..
install:
- $PYTHONCMD setup.py install --user
before_script:
diff --git a/INSTALL.md b/INSTALL.md
index 492c4de..b9e9cd3 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -20,52 +20,9 @@ Install with homebrew,
brew install pyqt5 ;
-### fontTools
+### Python dependencies
-Learn more: https://github.com/behdad/fonttools
-
- git clone --depth=1 https://github.com/behdad/fonttools ;
- cd fonttools/ ;
- sudo python3 setup.py install --record installed-files.txt ;
-
-### RoboFab
-
-Learn more: http://www.robofab.com
-
-In particular, https://github.com/trufont/robofab/tree/python3-ufo3
-
- cd .. ;
- git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/robofab ;
- cd robofab ;
- sudo python3 setup.py install --record installed-files.txt ;
-
-### defcon
-
-Homepage: https://readthedocs.org/projects/ts-defcon
-
-In particular, https://github.com/trufont/defcon/tree/python3-ufo3
-
- cd .. ;
- git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/defcon ;
- cd robofab ;
- sudo python3 setup.py install --record installed-files.txt ;
-
-### ufo2fdk
-
-Learn more: https://github.com/typesupply/ufo2fdk
-
-In particular, https://github.com/trufont/ufo2fdk/tree/python3-ufo3
-
- cd .. ;
- git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/ufo2fdk ;
- cd ufo2fdk ;
- sudo python3 setup.py install --record installed-files.txt ;
-
-### PyInstaller
-
-Homepage: http://www.pyinstaller.org
-
- sudo pip install PyInstaller ;
+ sudo pip install -r requirements.txt
## Trufont
@@ -97,9 +54,10 @@ To build an installation package for Mac OS X 10.9, you must build the package o
Files are installed into `/usr/local/lib/python3.5/site-packages/`
sudo easy_install pip ;
- sudo pip uninstall robofab defcon defconQt ;
+ sudo pip uninstall -r requirements.txt
-To get rid of all remaining files (be careful with rm!) for each package installed above,
+If you installed TruFont with `setup.py`, it can be uninstalled with this command
+(be careful with rm!):
cat installed-files.txt | xargs sudo rm --verbose -vr
@@ -110,22 +68,7 @@ To get rid of all remaining files (be careful with rm!) for each package install
## Dependencies
sudo apt-get install -qq -y python3-pyqt5 python3-pyqt5.qtsvg python3-flake8 ;
- git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/defcon ;
- git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/robofab ;
- git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/ufo2fdk ;
- git clone --depth=1 https://github.com/behdad/fonttools.git ;
-
- cd defcon ;
- sudo python3.4 setup.py install --record installed-files.txt ;
-
- cd ../robofab ;
- sudo python3.4 setup.py install --record installed-files.txt ;
-
- cd ../ufo2fdk ;
- sudo python3.4 setup.py install --record installed-files.txt ;
-
- cd ../fonttools ;
- sudo python3.4 setup.py install --record installed-files.txt ;
+ sudo pip3 install -r requirements.txt
## Trufont
@@ -146,11 +89,20 @@ Or to then run from source,
Files are installed into `/usr/local/lib/python3.4/dist-packages/`
-These can be partially removed with pip,
+These can be removed with pip:
sudo apt-get install python3-pip ;
- sudo pip3 uninstall robofab defcon ufo2fdk ufoLib defconQt ;
+ sudo pip3 uninstall -r requirements.txt
-To get rid of all remaining files (be careful with rm!) for each package installed above,
+If you installed TruFont with `setup.py`, it can be uninstalled with this command
+(be careful with rm!):
cat installed-files.txt | xargs sudo rm --verbose -vr
+
+# Virtualenv
+
+[Virtualenv](https://virtualenv.pypa.io) is optional. If you plan to use it and you've installed
+PyQt5 with Homebrew or Apt, then add the `--system-site-packages` flag when creating the Virtualenv
+to make PyQt5 available:
+
+ virtualenv --system-site-packages virutalenv-name
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..2fc059c
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,5 @@
+fonttools==3.0
+git+https://github.com/trufont/defcon.git@python3-ufo3#egg=defcon
+git+https://github.com/trufont/robofab.git@python3-ufo3#egg=robofab
+git+https://github.com/trufont/ufo2fdk.git@python3-ufo3#egg=ufo2fdk
+PyInstaller==3.0