-
Notifications
You must be signed in to change notification settings - Fork 0
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 #30 from BBVA/towards/release_3_2_5
Towards/release 3 2 5
- Loading branch information
Showing
16 changed files
with
639 additions
and
296 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,5 +1 @@ | ||
.vscode | ||
.coverage | ||
**/__pycache__/ | ||
**/checkpoint/ | ||
**/tmp_checkpoint/ |
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 was deleted.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
include mercury/graph/ | ||
|
||
graft mercury/graph/ | ||
|
||
recursive-include tutorials * |
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 +1,8 @@ | ||
__version__ = '3.2.4' | ||
__version__ = '3.2.5' | ||
|
||
from .create_tutorials import create_tutorials | ||
|
||
from . import core | ||
from . import embeddings | ||
from . import ml | ||
from . import viz |
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,36 @@ | ||
import os, pkg_resources, shutil | ||
|
||
|
||
def create_tutorials(destination, silent = False): | ||
""" | ||
Copies mercury.graph tutorial notebooks to `destination`. A folder will be created inside | ||
output_dir, named 'graph_tutorials'. The folder `destination` must exist. | ||
Args: | ||
destination (str): The destination directory | ||
silent (bool): If True, suppresses output on success. | ||
Raises: | ||
ValueError: If `output_dir` is equal to source path. | ||
Examples: | ||
>>> # copy tutorials to /tmp/graph_tutorials | ||
>>> from mercury.graph import create_tutorials | ||
>>> create_tutorials('/tmp') | ||
""" | ||
src = pkg_resources.resource_filename(__package__, 'tutorials') | ||
dst = os.path.abspath(destination) | ||
|
||
assert src != dst, 'Destination (%s) cannot be the same as source.' % src | ||
|
||
assert os.path.isdir(dst), 'Destination (%s) must be a directory.' % dst | ||
|
||
dst = os.path.join(dst, 'graph_tutorials') | ||
|
||
assert not os.path.exists(dst), 'Destination (%s) already exists' % dst | ||
|
||
shutil.copytree(src, dst) | ||
|
||
if not silent: | ||
print('Tutorials copied to: %s' % dst) |
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,3 +1,3 @@ | ||
# The source version file is <proj>/mercury/version.py, anything else is auto generated. | ||
__version__ = '3.2.4' | ||
__version__ = '3.2.5' | ||
|
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 |
---|---|---|
|
@@ -4,19 +4,22 @@ build-backend = 'setuptools.build_meta' | |
|
||
[project] | ||
name = 'mercury-graph' | ||
version = '3.2.4' | ||
version = '3.2.5' | ||
description = '.' | ||
license = {file = "LICENSE"} | ||
requires-python = '>=3.8' | ||
classifiers = ['Programming Language :: Python :: 3', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: OS Independent'] | ||
keywords = ['graph', 'embedding', 'graph embedding', 'graph exploration', 'graph metrics'] | ||
keywords = ['graph', 'embedding', 'graph embedding', 'graph exploration', 'graph metrics', 'graph visualization'] | ||
authors = [{name = 'Mercury Team', email = '[email protected]'}] | ||
readme = 'README.md' | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
include = ['mercury*'] | ||
include = ['mercury*', 'tutorials*'] | ||
exclude = ['docker', 'unit_tests'] | ||
|
||
[tool.pytest.ini_options] | ||
|
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ scipy | |
networkx | ||
scikit-learn | ||
anywidget | ||
traitlets |
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,9 +1,20 @@ | ||
import os, shutil | ||
|
||
|
||
# Move tutorials inside mercury.graph before packaging | ||
if os.path.exists('tutorials'): | ||
shutil.move('tutorials', 'mercury/graph/tutorials') | ||
|
||
|
||
from setuptools import setup, find_packages | ||
|
||
|
||
setup_args = dict( | ||
packages = find_packages(include='mercury*', exclude=['docker', 'unit_tests']), | ||
scripts = ['test.sh'] | ||
name = 'mercury-graph', | ||
packages = find_packages(include = ['mercury*', 'tutorials*'], exclude = ['docker', 'unit_tests']), | ||
scripts = ['test.sh'], | ||
include_package_data = True, | ||
package_data = {'mypackage': ['tutorials/*', 'tutorials/data/*']} | ||
) | ||
|
||
setup(**setup_args) |
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,61 @@ | ||
src dst weight | ||
La Boutique de Luz Pepe, Dalila & Co 115 | ||
Artesanía y Alma EcoVida 87 | ||
Juegos y Aventuras Café Serenidad 142 | ||
Juegos y Aventuras Yoga y Equilibrio 12 | ||
Greenland Madridities 98 | ||
Pan y Tradición Greenland 173 | ||
Diversión sin Límites Tierra Pura 38 | ||
Flores de Chamberí Artesanía y Alma 170 | ||
Flores y Colores Galería Inspiración 15 | ||
Flores y Colores Artesanía y Alma 151 | ||
EcoVida Flores de Chamberí 33 | ||
Arte en Vivo Pepe, Dalila & Co 23 | ||
Madridities Pan y Tradición 135 | ||
Arte en Vivo Moda Urbana 147 | ||
Juegos y Aventuras Pepe, Dalila & Co 109 | ||
Flores de Chamberí Equilibrio Natural 58 | ||
Gambón Hub Madridities 152 | ||
Pan y Tradición Moda Urbana 133 | ||
Flores y Colores Tierra Pura 186 | ||
Rincón del Sabor Equilibrio Natural 64 | ||
Rincón del Sabor Creaciones Únicas 81 | ||
Horno del Barrio Greenland 162 | ||
Moda Urbana Pan y Tradición 182 | ||
Edges Café Serenidad 85 | ||
Helados del Sol Diversión sin Límites 109 | ||
Madridities Gambón Hub 164 | ||
Helados del Sol Equilibrio Natural 64 | ||
Flores y Colores Artesanía y Alma 150 | ||
Gambón Hub Pan y Tradición 74 | ||
EcoVida Greenland 200 | ||
Horno del Barrio Pan y Tradición 109 | ||
Gambón Hub Juegos y Aventuras 80 | ||
Dulces Recuerdos Greenland 142 | ||
Pan y Tradición Greenland 122 | ||
Tierra Pura Equilibrio Natural 152 | ||
Equilibrio Natural Rincón del Sabor 33 | ||
Madridities Diversión sin Límites 80 | ||
Pepe, Dalila & Co Café Serenidad 143 | ||
Juegos y Aventuras Diversión sin Límites 163 | ||
Rincón del Sabor Dulces Recuerdos 63 | ||
EcoVida Café Serenidad 175 | ||
Flores de Chamberí La Boutique de Luz 47 | ||
Diversión sin Límites EcoVida 143 | ||
Juegos y Aventuras Artesanía y Alma 52 | ||
Diversión sin Límites Moda Urbana 160 | ||
Arte en Vivo Café Serenidad 17 | ||
La Boutique de Luz Greenland 179 | ||
Helados del Sol Equilibrio Natural 66 | ||
Edges Arte en Vivo 194 | ||
Creaciones Únicas Yoga y Equilibrio 33 | ||
Rincón del Sabor La Boutique de Luz 104 | ||
Pepe, Dalila & Co Creaciones Únicas 152 | ||
Artesanía y Alma Diversión sin Límites 145 | ||
Café Serenidad Artesanía y Alma 98 | ||
La Boutique de Luz Artesanía y Alma 193 | ||
Yoga y Equilibrio Pan y Tradición 101 | ||
Gambón Hub Galería Inspiración 186 | ||
Rincón del Sabor Madridities 69 | ||
Horno del Barrio Gambón Hub 96 | ||
Horno del Barrio Helados del Sol 37 |
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,26 @@ | ||
id actividad facturación precio_medio | ||
Café Serenidad cafetería 106788 12 | ||
La Boutique de Luz boutique 98400 60 | ||
EcoVida tienda_ecológica 44300 25 | ||
Horno del Barrio panadería 74700 5 | ||
Flores de Chamberí floristería 102090 30 | ||
Artesanía y Alma mercado_artesanal 54320 40 | ||
Galería Inspiración galería_arte 141000 150 | ||
Yoga y Equilibrio estudio_yoga 28120 20 | ||
Juegos y Aventuras tienda_juegos 102750 50 | ||
Helados del Sol heladería 27080 10 | ||
Rincón del Sabor cafetería 44688 12 | ||
Moda Urbana boutique 164040 60 | ||
Tierra Pura tienda_ecológica 80725 25 | ||
Pan y Tradición panadería 51960 5 | ||
Flores y Colores floristería 90990 30 | ||
Creaciones Únicas mercado_artesanal 38400 40 | ||
Arte en Vivo galería_arte 74400 150 | ||
Equilibrio Natural estudio_yoga 16300 20 | ||
Diversión sin Límites tienda_juegos 88650 50 | ||
Dulces Recuerdos heladería 34570 10 | ||
Edges galería_arte 67800 150 | ||
Gambón Hub mercado_artesanal 28360 40 | ||
Greenland tienda_ecológica 74525 25 | ||
Pepe, Dalila & Co boutique 99480 60 | ||
Madridities tienda_juegos 44300 50 |
Oops, something went wrong.