Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
add pyensae, teaching_ensae_cs sets
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Oct 31, 2015
1 parent 1616c78 commit 7ac99fb
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 111 deletions.
38 changes: 0 additions & 38 deletions _unittests/ut_packaged/test_name_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,44 +71,6 @@ def test_documentation(self):
nb += 1
assert nb > 0

"""
to fix
mysql-connector-python
natsort
node-webkit
numpydoc
passlib
plac
pymysql
pyopengl-accelerate
pyopenssl
pyramid
pytables
pytest-cache
pytest-pep8
pywget
queuelib
rasterio
repoze.lru
runipy
semantic_version
snuggs
sockjs-tornado
sqlparse
stripe
translationstring
twisted
unidecode
unxutils
venusian
w3lib
webob
wtforms
xlwings
zlib
"""

if __name__ == "__main__":
unittest.main()
1 change: 1 addition & 0 deletions src/pymyinstall/packaged/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
from .automate_install import install_module, update_module
from .packaged_config import minimal_set, small_set, sphinx_theme_set, extended_set, ensae_set, teachings_set, scraping_set, ensae_fullset, all_set, pyquickhelper_set, ml_set, anaconda_set
from .packaged_config import get_package_set, name_sets_dataframe, classifiers2string
from .packaged_config import ensae_teaching_cs_set, pyensae_set
3 changes: 3 additions & 0 deletions src/pymyinstall/packaged/automate_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def find_module_install(name, must_exist=False):
@param must_exist if True, raise an exception if not found
@return @see cl ModuleInstall
"""
if isinstance(name, ModuleInstall):
return name

if name in {"pip", "python"}:
return None

Expand Down
33 changes: 19 additions & 14 deletions src/pymyinstall/packaged/packaged_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
"""
from .packaged_config_0_minimal import minimal_set
from .packaged_config_0_pyquickhelper import pyquickhelper_set
from .packaged_config_1_pyensae import pyensae_set
from .packaged_config_1_anaconda import anaconda_set, anaconda_ext_set
from .packaged_config_1_small import small_set
from .packaged_config_2_sphinx import sphinx_theme_set
from .packaged_config_3_extended import extended_set
from .packaged_config_3_ensae_teaching_cs import ensae_teaching_cs_set
from .packaged_config_4_ml import ml_set, ensae_set
from .packaged_config_A_teachings import teachings_set
from .packaged_config_B_iot import iot_set
from .packaged_config_C_webscraping import scraping_set
from .packaged_config_1_anaconda import anaconda_set, anaconda_ext_set


def ensae_fullset():
Expand Down Expand Up @@ -46,6 +48,22 @@ def all_set():
return base


_modules_set = [minimal_set,
small_set,
sphinx_theme_set,
extended_set,
ml_set, ensae_set,
teachings_set,
iot_set,
scraping_set,
all_set,
pyquickhelper_set,
pyensae_set,
anaconda_set,
ensae_teaching_cs_set,
]


def _function_set_name(f):
"""
return the name of a function (not the module)
Expand Down Expand Up @@ -75,19 +93,6 @@ def _build_set_correspondance(module_set):
return res


_modules_set = [minimal_set,
small_set,
sphinx_theme_set,
extended_set,
ml_set, ensae_set,
teachings_set,
iot_set,
scraping_set,
all_set,
pyquickhelper_set,
anaconda_set,
]

_module_set_name = _build_set_correspondance(_modules_set)


Expand Down
118 changes: 59 additions & 59 deletions src/pymyinstall/packaged/packaged_config_0_pyquickhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,85 +11,85 @@ def pyquickhelper_set():
list of modules needed to run unit test of module *pyquickhelper*
"""
names = [
"futures",
"virtualenv",
"six",
"lxml",
"jinja2",
"pygments",
"pyparsing",
"python-dateutil",
"coverage",
"nose",
"pytz",
"husl",
"decorator",
"pipdeptree",
"openpyxl",
"pywin32" if sys.platform.startswith("win") else None,
"winshell" if sys.platform.startswith("win") else None,
"certifi",
"tornado",
"pyzmq",
"pycparser",
"Cython",
"numpy",
"cycler",
"matplotlib",
"jsonschema",
"mistune",
"wheel",
"alabaster",
"autopep8",
"babel",
"certifi",
"colorama",
"coverage",
"Cython",
"cycler",
"decorator",
"docutils",
"sphinx",
'sphinxcontrib-images',
'pypiserver',
"pep8",
"autopep8",
"mccabe",
"pyflakes",
"flake8",
'markupsafe',
"pandas",
"futures",
"husl",
"ipython",
"ipykernel",
"ipystata" if sys.version_info[0] == 2 else None,
"ipython_genutils",
"ipywidgets",
"jinja2",
"jsonschema",
"jupyter-console",
"jupyter",
"jupyter_core",
"jupyter_client",
"nbformat",
"nbconvert",
"notedown",
"ipython_genutils",
"pexpect" if not sys.platform.startswith("win") else None,
"ipykernel",
"ipywidgets",
"qtconsole",
"traitlets",
"pickleshare",
"path.py",
"simplegeneric",
"jupyter-pip",
"lxml",
"matplotlib",
"metakernel",
"micropython-libc" if not sys.platform.startswith("win") else None,
"micropython-ffilib" if not sys.platform.startswith(
"win") else None,
"micropython-fcntl" if not sys.platform.startswith(
"win") else None,
"ptyprocess" if not sys.platform.startswith("win") else None,
"terminado" if not sys.platform.startswith("win") else None,
'markupsafe',
"mccabe",
"mistune",
"multi_key_dict",
"nbformat",
"nbconvert",
"nose",
"notebook",
"jupyter-console",
"metakernel",
"ipystata" if sys.version_info[0] == 2 else None,
"jupyter-pip",
"requests",
"notedown",
"numpy",
"openpyxl",
"path.py",
"pbr",
"pandas",
"pep8",
"pexpect" if not sys.platform.startswith("win") else None,
"pickleshare",
"pipdeptree",
"psutil",
"ptyprocess" if not sys.platform.startswith("win") else None,
"pycparser",
"pyflakes",
"pygments",
"pyparsing",
'pypiserver',
"python-dateutil",
"python-jenkins",
"pytz",
"pywin32" if sys.platform.startswith("win") else None,
"pyzmq",
"qtconsole",
"requests",
"simplegeneric",
"six",
"sphinx",
'sphinxcontrib-images',
'snowballstemmer',
'sphinx-rtd-theme',
"sphinxjp.themes.revealjs",
"pbr",
"python-jenkins",
"terminado" if not sys.platform.startswith("win") else None,
"tornado",
"traitlets",
"virtualenv",
"wheel",
"wild_sphinx_theme",
"multi_key_dict",
"winshell" if sys.platform.startswith("win") else None,
]

from . import find_module_install
Expand Down
35 changes: 35 additions & 0 deletions src/pymyinstall/packaged/packaged_config_1_pyensae.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#-*- coding: utf-8 -*-
"""
@file
@brief Defines different a set of usual modules for Python.
"""
import sys


def pyensae_set():
"""
list of modules needed to run unit test of module *pyensae*
"""
from .packaged_config_0_pyquickhelper import pyquickhelper_set
names = pyquickhelper_set()
names += [
"ansi2html", # ssh
"ansiconv", # ssh
"antlr4-python3-runtime",
"azure", # azure
"colormap",
"dbfread",
"easydev",
"ecdsa", # paramiko
"folium", # maps
"linkedin",
"paramiko", # ssh
"pycrypto", # paramiko
"pyquickhelper",
"qgrid", # magic command
"scipy",
"scikit-learn",
]

from . import find_module_install
return [find_module_install(_) for _ in names if _ is not None]
43 changes: 43 additions & 0 deletions src/pymyinstall/packaged/packaged_config_3_ensae_teaching_cs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#-*- coding: utf-8 -*-
"""
@file
@brief Defines different a set of usual modules for Python.
"""
import sys


def ensae_teaching_cs_set():
"""
list of modules needed to for *ensae_teaching_cs* (teaching at ENSAE)
"""
from .packaged_config_1_pyensae import pyensae_set
names = pyensae_set()
names += [
"basemap",
"bokeh",
"cartopy",
"cvxopt",
"cython",
"cytoolz",
"dask",
"django",
"ggplot",
"graphviz",
"ipyparallel",
"keyring",
"mpld3",
"networkx",
"pillow",
"pygal",
"pygame",
"pyximport",
"rpy2",
"seaborn",
"shapefile",
"smopy",
"toolz",
"ujson",
]

from . import find_module_install
return [find_module_install(_) for _ in names if _ is not None]

0 comments on commit 7ac99fb

Please sign in to comment.