Skip to content

Commit e4e2528

Browse files
committed
feat(pypub): improvements to GitHub and PyPI upload process
1 parent 106fa43 commit e4e2528

9 files changed

Lines changed: 583 additions & 330 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ Python CLI tools and scripts to help in everyday life.
44

55
## Installation
66

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

9-
pip install -e git+https://github.com/andreoliwa/python-clit.git#egg=clit
9+
Then install `clit` in an isolated environment:
10+
11+
pipx install --spec git+https://github.com/andreoliwa/python-clit clit
12+
13+
## Development
1014

1115
You can clone the repo locally and then install it:
1216

1317
cd ~/Code
1418
git clone https://github.com/andreoliwa/python-clit.git
15-
pyenv activate my_tools
16-
pip install -e ~/Code/python-clit/
17-
pyenv deactivate
19+
pipx install -e --spec ~/Code/python-clit/ clit
1820

1921
This project is not on PyPI because:
2022

clit/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
from configparser import ConfigParser
66

7+
import click
78
from colorlog import ColoredFormatter
89

910
__author__ = "W. Augusto Andreoli"
@@ -41,6 +42,10 @@
4142

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

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

4550
def read_config(section_name, key_name, default=None):
4651
"""Read a value from the config file.

clit/dev.py

Lines changed: 0 additions & 286 deletions
This file was deleted.

0 commit comments

Comments
 (0)