-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f71513
commit 23ec6b5
Showing
9 changed files
with
165 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
VERSION = (0, 4, 0) | ||
PHASE = 'alpha' # alpha, beta or rc | ||
PHASE_VERSION = '1' | ||
PRERELEASE = None # alpha, beta or rc | ||
REVISION = None | ||
|
||
|
||
def generate_version(version, prerelease=None, revision=None): | ||
version_parts = ['.'.join(map(str, version))] | ||
if prerelease is not None: | ||
version_parts.append('-{}'.format(prerelease)) | ||
if revision is not None: | ||
version_parts.append('.{}'.format(revision)) | ||
return ''.join(version_parts) | ||
|
||
|
||
__title__ = 'camelot-py' | ||
__description__ = 'PDF Table Extraction for Humans.' | ||
__url__ = 'http://camelot-py.readthedocs.io/' | ||
if PHASE: | ||
__version__ = '{}-{}'.format('.'.join(map(str, VERSION)), PHASE) | ||
if PHASE_VERSION: | ||
__version__ = '{}.{}'.format(__version__, PHASE_VERSION) | ||
else: | ||
__version__ = '.'.join(map(str, VERSION)) | ||
__version__ = generate_version(VERSION, prerelease=PRERELEASE, revision=REVISION) | ||
__author__ = 'Vinayak Mehta' | ||
__author_email__ = 'vmehta94@gmail.com' | ||
__license__ = 'MIT License' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
.. _install_deps: | ||
|
||
Installation of dependencies | ||
============================ | ||
|
||
The dependencies `Tkinter`_ and `ghostscript`_ can be installed using your system's package manager. You can run one of the following, based on your OS. | ||
|
||
.. _Tkinter: https://wiki.python.org/moin/TkInter | ||
.. _ghostscript: https://www.ghostscript.com | ||
|
||
OS-specific instructions | ||
------------------------ | ||
|
||
For Ubuntu | ||
^^^^^^^^^^ | ||
:: | ||
|
||
$ apt install python-tk ghostscript | ||
|
||
Or for Python 3:: | ||
|
||
$ apt install python3-tk ghostscript | ||
|
||
For macOS | ||
^^^^^^^^^ | ||
:: | ||
|
||
$ brew install tcl-tk ghostscript | ||
|
||
For Windows | ||
^^^^^^^^^^^ | ||
|
||
For Tkinter, you can download the `ActiveTcl Community Edition`_ from ActiveState. For ghostscript, you can get the installer at the `ghostscript downloads page`_. | ||
|
||
After installing ghostscript, you'll need to reboot your system to make sure that the ghostscript executable's path is in the windows PATH environment variable. In case you don't want to reboot, you can manually add the ghostscript executable's path to the PATH variable, `as shown here`_. | ||
|
||
.. _ActiveTcl Community Edition: https://www.activestate.com/activetcl/downloads | ||
.. _ghostscript downloads page: https://www.ghostscript.com/download/gsdnld.html | ||
.. _as shown here: https://java.com/en/download/help/path.xml | ||
|
||
Checks to see if dependencies were installed correctly | ||
------------------------------------------------------ | ||
|
||
You can do the following checks to see if the dependencies were installed correctly. | ||
|
||
For Tkinter | ||
^^^^^^^^^^^ | ||
|
||
Launch Python, and then at the prompt, type:: | ||
|
||
>>> import Tkinter | ||
|
||
Or in Python 3:: | ||
|
||
>>> import tkinter | ||
|
||
If you have Tkinter, Python will not print an error message, and if not, you will see an ``ImportError``. | ||
|
||
For ghostscript | ||
^^^^^^^^^^^^^^^ | ||
|
||
Run the following to check the ghostscript version. | ||
|
||
For Ubuntu/macOS:: | ||
|
||
$ gs -version | ||
|
||
For Windows:: | ||
|
||
C:\> gswin64c.exe -version | ||
|
||
Or for Windows 32-bit:: | ||
|
||
C:\> gswin32c.exe -version | ||
|
||
If you have ghostscript, you should see the ghostscript version and copyright information. |
Oops, something went wrong.