-
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 #466 from HXLStandard/HXL-73
Hxl 73
- Loading branch information
Showing
6 changed files
with
78 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
urllib3==2.0.2 | ||
requests_cache==1.0.1 | ||
urllib3<1.27,>1.21.1 # avoid caching bug | ||
requests_cache | ||
ckanapi>=3.5 | ||
flask==2.3.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.01 # for release | ||
flask-caching==2.0.2 | ||
#libhxl==5.01 # for release | ||
flask-caching | ||
redis | ||
requests==2.31.0 | ||
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
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.01 # 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,51 +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.1", | ||
description = 'Flask-based web proxy for HXL', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
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', | ||
}, | ||
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==2.0.2', # avoid caching bug | ||
'requests_cache==1.0.1', # avoid caching bug | ||
'ckanapi>=3.5', | ||
'flask==2.3.2', | ||
'mysql-connector-python>=8.0.29', | ||
'libhxl @ git+https://github.com/HXLStandard/libhxl-python.git@dev', # for development | ||
#'libhxl==5.01', # for release | ||
'flask-caching==2.0.2', | ||
'redis', | ||
'requests==2.31.0', | ||
'structlog', | ||
], | ||
dependency_links=[ | ||
"git+https://github.com/HXLStandard/libhxl-python@dev#egg=libhxl", | ||
], | ||
test_suite = "tests", | ||
tests_require = ['mock'] | ||
) | ||
if __name__ == "__main__": | ||
setup() |