Skip to content

Commit

Permalink
feat(pypub): improvements to GitHub and PyPI upload process
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Mar 25, 2019
1 parent 106fa43 commit e4e2528
Show file tree
Hide file tree
Showing 9 changed files with 583 additions and 330 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ Python CLI tools and scripts to help in everyday life.

## Installation

Simply install from GitHub on any virtualenv you like, or globally:
First, [install `pipx`](https://github.com/pipxproject/pipx#install-pipx).

pip install -e git+https://github.com/andreoliwa/python-clit.git#egg=clit
Then install `clit` in an isolated environment:

pipx install --spec git+https://github.com/andreoliwa/python-clit clit

## Development

You can clone the repo locally and then install it:

cd ~/Code
git clone https://github.com/andreoliwa/python-clit.git
pyenv activate my_tools
pip install -e ~/Code/python-clit/
pyenv deactivate
pipx install -e --spec ~/Code/python-clit/ clit

This project is not on PyPI because:

Expand Down
5 changes: 5 additions & 0 deletions clit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
from configparser import ConfigParser

import click
from colorlog import ColoredFormatter

__author__ = "W. Augusto Andreoli"
Expand Down Expand Up @@ -41,6 +42,10 @@

TIME_FORMAT = "%H:%M:%S"

DRY_RUN_OPTION = click.option(
"--dry-run", "-n", default=False, is_flag=True, help="Only show what would be done, without actually doing it"
)


def read_config(section_name, key_name, default=None):
"""Read a value from the config file.
Expand Down
286 changes: 0 additions & 286 deletions clit/dev.py

This file was deleted.

Loading

0 comments on commit e4e2528

Please sign in to comment.