-
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.
Changes to support "pip install nexinfosys"
* Reduced number of packages. Specially, avoid use of Flask ("app" variable should not be used outside of "restful_service" package) * "frontend" not included * "setup.py" updated
- Loading branch information
Showing
13 changed files
with
103 additions
and
33 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
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
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,47 @@ | ||
scikit-build>=0.10.0 | ||
appdirs==1.4.3 | ||
toposort>=1.5 | ||
google-api-python-client==1.7.11 | ||
google-auth==1.6.3 | ||
google-auth-httplib2==0.0.3 | ||
google-auth-oauthlib>=0.4.0 | ||
brightway2==2.3 | ||
matplotlib>=3.0.3 | ||
#psycopg2==2.7.3.2 | ||
webdavclient==1.0.8 | ||
owlready2==0.23 | ||
celery>=4.3.0 | ||
pykml==0.1.3 | ||
geopandas==0.4.1 | ||
geojson>=2.4.1 | ||
nbformat>=4.4.0 | ||
typing>=3.6.2 | ||
attrs>=18.1.0 | ||
requests==2.21.0 # >= | ||
requests_cache==0.4.13 | ||
SQLAlchemy>=1.3.3 | ||
pyparsing>=2.2.0 | ||
numpy>=1.16.0 | ||
pandas==1.0.3 | ||
pandas_datareader>=0.8.1 | ||
pyarrow==1.0.0 | ||
pandaSDMX==0.9 | ||
sdmx>=0.2.10 | ||
regex>=2017.11.9 | ||
chardet>=3.0.4 | ||
aadict>=0.2.3 | ||
anytree>=2.2.2 | ||
networkx==2.2 | ||
multidict>=3.3.2 | ||
xmltodict>=0.11.0 | ||
cubes==1.1 | ||
Pint>=0.8.1 | ||
uncertainties>=3.1.2 | ||
xlrd==1.1.0 | ||
openpyxl==2.4.8 | ||
xlsxwriter==1.0.4 | ||
lxml==4.3.3 | ||
jsonpickle==1.2 | ||
python_magic>=0.4.13 # To be removed, it is used only by the Magic Box file type detection | ||
dotted>=0.1.8 # <- Dotted notation: !!Fantastic!! | ||
sympy>=1.1.1 |
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 |
---|---|---|
|
@@ -23,18 +23,20 @@ | |
# PyPI : pip install --upgrade nexinfosys | ||
# No PyPI : pip install -e <local path where "setup.py" (this file) is located> | ||
# | ||
# EXECUTE (example. "gunicorn" must be installed: "pip install gunicorn") | ||
# (IT WORKS WITH ONLY 1 WORKER!!!) | ||
# EXECUTION EXAMPLE ("gunicorn" must be installed: "pip install gunicorn") | ||
# | ||
# gunicorn --workers=1 --log-level=debug --timeout=2000 --bind 0.0.0.0:8081 nexinfosys.restful_service.service_main:app | ||
# | ||
from os import path | ||
|
||
from setuptools import setup | ||
from pkg_resources import yield_lines | ||
# from distutils.extension import Extension | ||
from Cython.Build import cythonize | ||
# from Cython.Distutils import build_ext | ||
|
||
package_name = 'nexinfosys' | ||
version = '0.36' | ||
version = '0.40' | ||
|
||
|
||
def parse_requirements(strs): | ||
|
@@ -62,7 +64,7 @@ def parse_requirements(strs): | |
return ret | ||
|
||
|
||
with open('requirements.txt') as f: | ||
with open('requirements-as-package.txt') as f: | ||
required = f.read().splitlines() | ||
|
||
install_reqs = parse_requirements(required) | ||
|
@@ -73,14 +75,18 @@ def parse_requirements(strs): | |
# Extension("parser_spreadsheet_utils_accel", ["nexinfosys/command_generators/parser_spreadsheet_utils_accel.pyx"]) | ||
# ] | ||
|
||
this_directory = path.abspath(path.dirname(__file__)) | ||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
|
||
setup( | ||
name=package_name, | ||
version=version, | ||
install_requires=install_reqs, | ||
packages=['nexinfosys', 'nexinfosys.common', 'nexinfosys.models', 'nexinfosys.models.experiments', 'nexinfosys.solving', | ||
'nexinfosys.solving.graph', 'nexinfosys.ie_exports', 'nexinfosys.ie_imports', 'nexinfosys.ie_imports.data_sources', | ||
'nexinfosys.ie_imports.experimental', 'nexinfosys.authentication', 'nexinfosys.model_services', | ||
'nexinfosys.restful_service', 'nexinfosys.restful_service.gunicorn', 'nexinfosys.restful_service.mod_wsgi', | ||
'nexinfosys.command_executors', 'nexinfosys.command_executors.misc', 'nexinfosys.command_executors.solving', | ||
'nexinfosys.command_executors.analysis', 'nexinfosys.command_executors.version2', | ||
'nexinfosys.command_executors.read_query', 'nexinfosys.command_executors.external_data', | ||
|
@@ -89,13 +95,18 @@ def parse_requirements(strs): | |
'nexinfosys.command_generators.spreadsheet_command_parsers.analysis', | ||
'nexinfosys.command_generators.spreadsheet_command_parsers.external_data', | ||
'nexinfosys.command_generators.spreadsheet_command_parsers.specification', | ||
'nexinfosys.command_generators.spreadsheet_command_parsers_v2', 'nexinfosys.magic_specific_integrations'], | ||
# 'nexinfosys.magic_specific_integrations', | ||
'nexinfosys.command_generators.spreadsheet_command_parsers_v2', | ||
], | ||
# See files to pack in "MANIFEST.in" file ("frontend" currently disabled) | ||
include_package_data=True, | ||
# cmdclass={'build_ext': build_ext}, | ||
ext_modules=cythonize(["nexinfosys/common/helper_accel.pyx", "nexinfosys/command_generators/parser_spreadsheet_utils_accel.pyx"], language_level="3"), | ||
# ext_modules=cythonize(["nexinfosys/common/helper_accel.pyx", "nexinfosys/command_generators/parser_spreadsheet_utils_accel.pyx"], language_level="3"), | ||
url='https://github.com/MAGIC-nexus/nis-backend', | ||
license='BSD-3', | ||
author='rnebot', | ||
author=['Rafael Nebot', 'Marco Galluzzi'], | ||
author_email='[email protected]', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
description='Formal and executable MuSIASEM multi-system Nexus models for Sustainable Development Analysis' | ||
) |