Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Move project to uv. Re-organize code. #5

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ruff_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Ruff check

on: [push, pull_request]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
args: "format --check"

60 changes: 8 additions & 52 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,57 +1,13 @@
# Byte-compiled / optimized / DLL files
# Python-generated files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
*.py[oc]
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover

# Translations
*.mo
*.pot

# Django stuff:
*.log
wheels/
*.egg-info

# Sphinx documentation
docs/_build/
# Virtual environments
.venv

# PyBuilder
target/
# .env files
.env
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
32 changes: 12 additions & 20 deletions README.rst → README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
pyfttt
======
# pyfttt

Python tools for interacting with IFTTT Webhooks Channel.

Installation
------------

::
## Installation

```py
pip install pyfttt
```

Command Line Tool
## Command Line Tool
-----------------

``pyfttt`` is an included command line tool for sending Webhooks Channel
events. To see a list of available arguments, run ``pyfttt --help``,
`pyfttt` is an included command line tool for sending Webhooks Channel
events. To see a list of available arguments, run `pyfttt --help`,
which produces:

::

```
usage: pyfttt [-h] [--version] [-k K] -e E [value1] [value2] [value3]

Send Webhooks Channel events to IFTTT
Expand All @@ -35,18 +32,13 @@ which produces:
value3 Extra data sent with the event (optional)

Visit https://ifttt.com/channels/maker_webhooks for more information
```

The ``--key`` argument can be omittrd if the IFTTT secret key is defined
in the environment as ``IFTTT_API_KEY``.

Requirements
------------
The `--key` argument can be omittrd if the IFTTT secret key is defined
in the environment as `IFTTT_API_KEY`.

- Python 2.7 or greater
- `requests <https://pypi.python.org/pypi/requests>`__

License
-------
## License

pyfttt is released under the BSD 2-clause license. See
`LICENSE <https://raw.githubusercontent.com/briandconnelly/pyfttt/master/LICENSE>`__
Expand Down
7 changes: 0 additions & 7 deletions pyfttt/__init__.py

This file was deleted.

80 changes: 0 additions & 80 deletions pyfttt/cmd_script.py

This file was deleted.

32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[project]
name = "pyfttt"
version = "0.4.0"
description = "Python tools for interacting with IFTTT Webhooks Channel"
readme = "README.md"
authors = [
{ name = "Brian Connelly", email = "bdc@bconnelly.net" }
]
requires-python = ">=3.8"
dependencies = [
"requests>=2.32.3",
]
license = {file = "LICENSE"}
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
]
keywords = ["ifttt", "automation"]

[project.urls]
Repository = "https://github.com/briandconnelly/pyfttt.git"
Issues = "https://github.com/briandconnelly/pyfttt/issues"

[project.scripts]
pyfttt = "pyfttt.cmd_script:main"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

76 changes: 0 additions & 76 deletions setup.py

This file was deleted.

6 changes: 6 additions & 0 deletions src/pyfttt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from importlib.metadata import version

__version__ = version("pyfttt")
__license__ = "BSD"

from .sending import *
Loading
Loading