diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 76a5760..67d9ecb 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -5,4 +5,4 @@ tag = True [bumpversion:file:setup.py] -[bumpversion:file:src/libname/version.py] +[bumpversion:file:src/edas_tatmil/version.py] diff --git a/.coveragerc b/.coveragerc index a09158b..b6342d8 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,6 @@ [run] branch = True -source = src/libname +source = src/edas_tatmil [report] exclude_lines = diff --git a/README.md b/README.md index 673d405..5565cc0 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ A template repository for a modern Python library [![Docs](https://img.shields.io/badge/docs-master-blue.svg)](https://matthewfeickert.github.io/python-library-template) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/matthewfeickert/python-library-template/master) - -[![PyPI version](https://badge.fury.io/py/libname.svg)](https://badge.fury.io/py/libname) -[![Supported Python versions](https://img.shields.io/pypi/pyversions/libname.svg)](https://pypi.org/project/libname/) + +[![PyPI version](https://badge.fury.io/py/edas_tatmil.svg)](https://badge.fury.io/py/edas_tatmil) +[![Supported Python versions](https://img.shields.io/pypi/pyversions/edas_tatmil.svg)](https://pypi.org/project/edas_tatmil/) -The template library is [`libname`](https://github.com/matthewfeickert/Python-library-template/search?q=libname&unscoped_q=libname) to make it clear what is needed for replacement +The template library is [`edas_tatmil`](https://github.com/matthewfeickert/Python-library-template/search?q=edas_tatmil&unscoped_q=edas_tatmil) to make it clear what is needed for replacement ## Setting up the template for your library @@ -25,7 +25,7 @@ The template library is [`libname`](https://github.com/matthewfeickert/Python-li - Change `matthewfeickert` to your username or org name on GitHub - Change `python-library-template` to your project name on GitHub (probably the same as the library name) 3. Replace the rest of the `README` contents with your information -4. Run `git grep "libname"` to make sure that you have changed all instances of `libame` (it is easy to miss the dotfiles) +4. Run `git grep "edas_tatmil"` to make sure that you have changed all instances of `libame` (it is easy to miss the dotfiles) 5. Setup accounts with [Codecov](https://codecov.io/), [LGTM](https://lgtm.com/), and [CodeFactor](https://www.codefactor.io/) - Also add the [Codecov](https://github.com/marketplace/codecov) and [LGTM](https://github.com/marketplace/lgtm) GitHub marketplace apps 6. Generate a Codecov token and add it to your [GitHub repo's secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#contexts) with name `CODECOV_TOKEN` diff --git a/pytest.ini b/pytest.ini index 1080bad..d11c51b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,2 @@ [pytest] -addopts = --ignore=setup.py --ignore=binder/ --cov=libname --cov-report=term-missing --cov-config=.coveragerc --cov-report xml --doctest-modules --doctest-glob='*.rst' +addopts = --ignore=setup.py --ignore=binder/ --cov=edas_tatmil --cov-report=term-missing --cov-config=.coveragerc --cov-report xml --doctest-modules --doctest-glob='*.rst' diff --git a/setup.cfg b/setup.cfg index 18a3bd5..8c9a7ee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,19 +1,19 @@ [metadata] -name = libname -version = 0.0.1 +name = edas_tatmil +version = 0.0.5 description = A template repository for a modern Python library long_description = file: README.md long_description_content_type = text/markdown -url = https://github.com/matthewfeickert/libname +url = https://github.com/milser/edas_tatianamilser author = Author Name author_email = author.name@email.com license = Apache license_file = LICENSE keywords = python template project_urls = - Documentation = https://matthewfeickert.github.io/libname/ - Source = https://github.com/matthewfeickert/libname - Tracker = https://github.com/matthewfeickert/libname/issues + Documentation = https://github.com/milser/edas_tatianamilser + Source = https://github.com/milser/edas_tatianamilser + Tracker = https://github.com/milser/edas_tatianamilser classifiers = Development Status :: 4 - Beta License :: OSI Approved :: Apache Software License @@ -45,10 +45,10 @@ where = src [options.entry_points] console_scripts = - libname = libname.commandline:libname + edas_tatmil = edas_tatmil.commandline:edas_tatmil [build_sphinx] -project = libname +project = edas_tatmil source-dir = docs build-dir = docs/_build all-files = 1 diff --git a/setup.py b/setup.py index c519d43..b7a3f68 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,22 @@ -from setuptools import setup - -extras_require = { - "develop": [ - "check-manifest", - "pytest~=5.2", - "pytest-cov~=2.8", - "pytest-console-scripts~=0.2", - "bumpversion~=0.5", - "pyflakes", - "pre-commit", - "black", - "twine", - ], -} -extras_require["complete"] = sorted(set(sum(extras_require.values(), []))) +from setuptools import setup, find_packages setup( - extras_require=extras_require, - entry_points={"console_scripts": ["libname=libname.commandline:libname"]}, -) + name='edas_tatmil', + version='0.2', + packages=find_packages(), + # Metadatos adicionales del proyecto + author='Tatiana Cazorla y Rubén Serrano', + description='Tu EDA mas sencillo', + url='https://github.com/milser/edas_tatianamilser', + classifiers=[ + 'Programming Language :: Python :: 3', + # Lista de clasificaciones de compatibilidad con Python, SO, etc. + ], + install_requires=[ + "pandas", + "matplotlib", + "seaborn", + "importlib", + "tabulate", + ], +) \ No newline at end of file diff --git a/src/libname/__init__.py b/src/edas_tatmil/__init__.py similarity index 100% rename from src/libname/__init__.py rename to src/edas_tatmil/__init__.py diff --git a/src/libname/commandline.py b/src/edas_tatmil/commandline.py similarity index 92% rename from src/libname/commandline.py rename to src/edas_tatmil/commandline.py index ad18978..1bd2101 100644 --- a/src/libname/commandline.py +++ b/src/edas_tatmil/commandline.py @@ -9,5 +9,5 @@ @click.group(context_settings=dict(help_option_names=["-h", "--help"])) @click.version_option(version=__version__) -def libname(): +def edas_tatmil(): pass diff --git a/src/libname/version.py b/src/edas_tatmil/version.py similarity index 100% rename from src/libname/version.py rename to src/edas_tatmil/version.py diff --git a/tests/test_cli.py b/tests/test_cli.py index 6280d89..2709381 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,16 +1,16 @@ import shlex -import libname +import edas_tatmil import time def test_version(script_runner): - command = "libname --version" + command = "edas_tatmil --version" start = time.time() ret = script_runner.run(*shlex.split(command)) end = time.time() elapsed = end - start assert ret.success - assert libname.__version__ in ret.stdout + assert edas_tatmil.__version__ in ret.stdout assert ret.stderr == "" # make sure it took less than a second assert elapsed < 1.0 diff --git a/tests/test_import.py b/tests/test_import.py index 3381822..6c91ca9 100644 --- a/tests/test_import.py +++ b/tests/test_import.py @@ -1,5 +1,5 @@ -import libname +import edas_tatmil def test_import(): - assert libname + assert edas_tatmil