Skip to content

Commit

Permalink
c1
Browse files Browse the repository at this point in the history
  • Loading branch information
milser committed Apr 6, 2024
1 parent dae2282 commit 5d50d62
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ tag = True

[bumpversion:file:setup.py]

[bumpversion:file:src/libname/version.py]
[bumpversion:file:src/edas_tatmil/version.py]
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[run]
branch = True
source = src/libname
source = src/edas_tatmil

[report]
exclude_lines =
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- Here libname should be replaced with your library's name on PyPI -->
[![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/)
<!-- Here edas_tatmil should be replaced with your library's name on PyPI -->
[![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

Expand All @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -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'
16 changes: 8 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
39 changes: 20 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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",
],
)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions tests/test_import.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import libname
import edas_tatmil


def test_import():
assert libname
assert edas_tatmil

0 comments on commit 5d50d62

Please sign in to comment.