-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #472 from HXLStandard/dev
Release 2.0.1
- Loading branch information
Showing
12 changed files
with
99 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
*.pyc | ||
/.eggs | ||
/venv | ||
/venv-test | ||
build | ||
dist | ||
hxl-proxy.wsgi | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
DEBUG=True | ||
DB_FILE='/tmp/hxl-proxy.db' | ||
|
||
HID_CLIENT_ID = '<client id>' | ||
|
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,11 +1,12 @@ | ||
urllib3>=1.21.1<1.27 # version required by requests | ||
#git+https://github.com/HXLStandard/libhxl-python.git@dev#egg=libhxl # for development | ||
libhxl==5.0 # for release | ||
urllib3<1.27,>1.21.1 # avoid caching bug | ||
requests_cache | ||
ckanapi>=3.5 | ||
flask-caching | ||
flask>=2.1.2 | ||
flask>=2.2.5<2.3 # 2.3 messes up pip dependencies | ||
mysql-connector-python>=8.0.29 | ||
# git+https://github.com/HXLStandard/libhxl-python.git@dev#egg=libhxl # for development | ||
libhxl==5.0.1 # for release | ||
flask-caching | ||
redis | ||
requests>=2.27 | ||
requests_cache | ||
requests | ||
structlog | ||
typing_extensions |
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,39 @@ | ||
[metadata] | ||
name = hxl_proxy | ||
version = attr: hxl_proxy.__version__ | ||
author = David Megginson | ||
author_email = megginson@un.org | ||
description = Flask-based web data proxy for the Humanitarian Exchange Language (HXL) | ||
long_description = file: README.md | ||
keywords = data, hxl | ||
license = Public Domain | ||
classifiers = | ||
Framework :: Flask | ||
Programming Language :: Python :: 3 | ||
project_urls = | ||
Documentation = https://github.com/HXLStandard/hxl-proxy/wiki | ||
GitHub = https://github.com/HXLStandard/hxl-proxy/ | ||
Changelog = https://github.com/HXLStandard/hxl-proxy/blob/prod/CHANGELOG | ||
|
||
[options] | ||
include_package_data = True | ||
zip_safe = True | ||
packages = hxl_proxy | ||
python_requires = >=3.7 | ||
install_requires = | ||
urllib3<1.27,>1.21.1 # avoid caching bug | ||
requests_cache | ||
ckanapi>=3.5 | ||
flask>=2.2.5<2.3 # 2.3 messes up pip dependencies | ||
mysql-connector-python>=8.0.29 | ||
# libhxl @ git+https://github.com/HXLStandard/libhxl-python.git@dev # for development | ||
libhxl==5.0.1 # for release | ||
flask-caching | ||
redis | ||
structlog | ||
typing_extensions # shouldn't be needed, but setuptools fails to pick it up | ||
dependency_links = | ||
git+https://github.com/HXLStandard/libhxl-python@dev#egg=libhxl | ||
test_suite = tests | ||
tests_require = | ||
mock |
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,46 +1,4 @@ | ||
#!/usr/bin/python | ||
"""Install, build, or test the HXL Proxy. | ||
For details, try | ||
python setup.py -h | ||
""" | ||
from setuptools import setup | ||
|
||
import sys, setuptools | ||
|
||
if sys.version_info.major != 3: | ||
raise SystemExit("The HXL Proxy requires Python 3.x") | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name = 'hxl-proxy', | ||
packages = ['hxl_proxy'], | ||
package_data={'hxl_proxy': ['*.sql']}, | ||
version = "2.0", | ||
description = 'Flask-based web proxy for HXL', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author='David Megginson', | ||
author_email='contact@megginson.com', | ||
url='https://github.com/HXLStandard/hxl-proxy', | ||
include_package_data = True, | ||
zip_safe = False, | ||
install_requires=[ | ||
'urllib3>=1.21.1,<1.27', # version required by requests | ||
#'libhxl @ git+https://github.com/HXLStandard/libhxl-python.git@dev', # for development | ||
'libhxl==5.0', # for release | ||
'ckanapi>=3.5', | ||
'flask-caching', | ||
'flask>=2.1.2', | ||
'mysql-connector-python>=8.0.29', | ||
'redis', | ||
'requests>=2.27', | ||
'requests_cache', | ||
'structlog', | ||
], | ||
dependency_links=[ | ||
"git+https://github.com/HXLStandard/libhxl-python@dev#egg=libhxl", | ||
], | ||
test_suite = "tests", | ||
tests_require = ['mock'] | ||
) | ||
if __name__ == "__main__": | ||
setup() |
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