Skip to content

Commit

Permalink
chore: update dependencies and build files
Browse files Browse the repository at this point in the history
  • Loading branch information
r4mmer committed Sep 27, 2024
1 parent 54c89f1 commit 45248c3
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
data/

# Translations
*.mo
Expand Down
29 changes: 16 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@ env: env/bin/activate
env/bin/activate:
python3 -m venv env

.PHONY: full
full: develop config trans
@echo
@echo All Good!!

.PHONY: develop
develop: setup.py
pip install -e .[dev]

.PHONY: setup
install: env setup.py
.PHONY: install
install: env
pip install -e .

.PHONY: build
build:
python3 -m build

.PHONY: clean
clean:
rm -rf *.egg-info build dist
find unifi_api tests -name __pycache__ -type d -exec rm -rf '{}' \;
rm -rf src/*.egg-info dist
find src tests -name __pycache__ -type d -exec rm -rf '{}' \;

.PHONY: distclean
distclean: clean
rm -rf env

.PHONY: test-upload
test-upload:
python3 -m twine upload --repository testpypi dist/*

.PHONY: upload
upload:
python3 -m twine upload dist/*

.PHONY: secret
secret:
@openssl rand -base64 48
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[project]
name = "unifi-python-api"
version = "0.2.3"
authors = [
{ name="André Carneiro", email="[email protected]" },
]
dependencies = ['requests<3,>=2.32.0', 'trafaret<3,>=2.1.1']
description = "A small example package"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"Intended Audience :: Information Technology",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]

[project.urls]
Homepage = "https://github.com/r4mmer/unifi_python_api"
Issues = "https://github.com/r4mmer/unifi_python_api/issues"
24 changes: 0 additions & 24 deletions setup.py

This file was deleted.

0 comments on commit 45248c3

Please sign in to comment.