-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dev] Re-worked the directory structure and the organization of the code
- Loading branch information
Showing
9 changed files
with
912 additions
and
475 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 @@ | ||
# | ||
# Source: | ||
# | ||
|
||
from .OpenTrepWrapper import OpenTrepLib | ||
from .cli import main | ||
|
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,29 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Source: https://github.com/trep/wrapper/tree/master/OpenTrepWrapper/utilities.py | ||
# | ||
# Authors: Alex Prengere, Denis Arnaud | ||
# | ||
|
||
import json | ||
import os | ||
import errno | ||
|
||
# Default settings | ||
DEFAULT_POR = '/tmp/opentraveldata/optd_por_public_all.csv' | ||
DEFAULT_IDX = '/tmp/opentrep/xapian_traveldb' | ||
DEFAULT_FMT = 'S' | ||
DEFAULT_LOG = '/tmp/opentrep/opentrepwrapper.log' | ||
|
||
|
||
def _test(): | ||
''' | ||
Launching doctests. | ||
''' | ||
import doctest | ||
|
||
opt = doctest.ELLIPSIS | ||
|
||
doctest.testmod(optionflags=opt) | ||
|
||
|
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,36 +1,70 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Main installation script. | ||
''' | ||
|
||
import io | ||
import os | ||
from setuptools import setup | ||
import glob | ||
import setuptools | ||
|
||
def read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
def read(*names, **kwargs): | ||
with io.open( | ||
os.path.join(os.path.dirname(__file__), *names), | ||
encoding=kwargs.get('encoding', 'utf8') | ||
) as fh: | ||
return fh.read() | ||
|
||
setup( | ||
setuptools.setup( | ||
name = 'OpenTrepWrapper', | ||
version = '0.7.7.post1', | ||
author = 'Alex Prengere', | ||
author_email = '[email protected]', | ||
version = '0.7.7.post2', | ||
author = 'Denis Arnaud', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/trep/wrapper', | ||
description = 'A Python wrapper module for OpenTrep', | ||
long_description = read('README.md'), | ||
long_description_content_type = 'text/markdown', | ||
packages=setuptools.find_packages(), | ||
include_package_data=True, | ||
classifiers=[ | ||
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: Unix', | ||
'Operating System :: POSIX', | ||
'Operating System :: Microsoft :: Windows', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
# uncomment if you test on these interpreters: | ||
# 'Programming Language :: Python :: Implementation :: PyPy', | ||
# 'Programming Language :: Python :: Implementation :: IronPython', | ||
# 'Programming Language :: Python :: Implementation :: Jython', | ||
# 'Programming Language :: Python :: Implementation :: Stackless', | ||
'Topic :: Utilities', | ||
], | ||
project_urls={ | ||
'Documentation': 'https://opentrep.readthedocs.io/en/latest/', | ||
'Changelog': 'https://opentrep.readthedocs.io/en/latest/opentrep.html', | ||
'Issue Tracker': 'https://github.com/trep/wrapper/issues', | ||
}, | ||
keywords=[ | ||
'data', 'trep', 'request', 'parser', 'travel', 'transport', | ||
'search', 'wrapper', 'optd', 'opentraveldata', 'opentrep' | ||
], | ||
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', | ||
install_requires=[ | ||
# 'some--package', | ||
], | ||
extras_require={ | ||
# eg: | ||
# 'rst': ['docutils>=0.11'], | ||
# ':python_version=="2.6"': ['argparse'], | ||
}, | ||
entry_points = { | ||
'console_scripts' : [ | ||
'OpenTrep = OpenTrepWrapperMain:main', | ||
'OpenTrep = OpenTrepWrapper.cli:main', | ||
] | ||
}, | ||
py_modules = [ | ||
'OpenTrepWrapper', | ||
'OpenTrepWrapperMain' | ||
], | ||
install_requires = [ | ||
], | ||
#sanitize_lib = ['-lasan'] if cc == 'gcc' and not is_macos else [], | ||
) | ||
|
Oops, something went wrong.