From 7986e2b05012ac2fea16197a29b19c56a533b7f8 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 8 Nov 2023 12:10:53 -0800 Subject: [PATCH] move things around for release process --- .gitignore | 1 + RELEASE.md | 22 ++++++++++++++++++++++ pyproject.toml | 13 ++++++++++--- {example => ztchooks}/__init__.py | 0 hook.py => ztchooks/hook.py | 0 5 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 RELEASE.md rename {example => ztchooks}/__init__.py (100%) rename hook.py => ztchooks/hook.py (100%) diff --git a/.gitignore b/.gitignore index 21d0b89..7d2bf08 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .venv/ +dist/ diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..f3490f7 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,22 @@ +# Releasing Updates + +## Things you'll need + +* PyPI Publishing Token +* Build tools: `python3 -m pip install --upgrade build` +* Twine: `python3 -m pip install --upgrade twine` + +## Releasing + +Make changes & update version number + +```bash +python3 -m build +python3 -m twine upload dist/* +``` +When it asks for username password: + +```bash +username: __token__ +password: $PYPI_PUBLISHING_TOKEN +``` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 69289e7..7e8edc9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,21 @@ [project] name = "ztchooks" -version = "0.0.1" +version = "0.1.0" +authors = [{ name = "ZeroTier, Inc", email = "admin@zerotier.com" }] description = "ZeroTier Hook Verification for Python 3" +readme = "README.md" +requires-python = ">=3.8" license = { file = "LICENSE" } classifiers = [ - "Programing Language :: Python :: 3", - "License :: OSI Approved :: Mozilla Public License v2.0", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: OS Independent", ] [project.urls] "Homepage" = "https://github.com/zerotier/ztchooks-py" "Bug Tracker" = "https://github.com/zerotier/ztchooks-py/issues" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" diff --git a/example/__init__.py b/ztchooks/__init__.py similarity index 100% rename from example/__init__.py rename to ztchooks/__init__.py diff --git a/hook.py b/ztchooks/hook.py similarity index 100% rename from hook.py rename to ztchooks/hook.py