pax_global_header00006660000000000000000000000064147467030270014524gustar00rootroot0000000000000052 comment=75695202c2908e3d4613a1f3adb6c34735c3db1a offpunk-v2.5/000077500000000000000000000000001474670302700132305ustar00rootroot00000000000000offpunk-v2.5/.build.yml000066400000000000000000000007741474670302700151400ustar00rootroot00000000000000image: alpine/3.19 oauth: pages.sr.ht/PAGES:RW packages: - hut environment: site1: offpunk.net tasks: - package-gemini: | cd offpunk/tutorial tar -cvzh . > ../../capsule.tar.gz - deploy-gemini: | hut pages publish capsule.tar.gz -p GEMINI -d $site1 - package-html: | mkdir public_html cd offpunk/tutorial python make_website.py cd ../../public_html ln -s ../offpunk/screenshots . tar -cvzh . > ../site.tar.gz - deploy-html: | hut pages publish site.tar.gz -d $site1 offpunk-v2.5/.gitignore000066400000000000000000000024511474670302700152220ustar00rootroot00000000000000# ---> Python # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # 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/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover .hypothesis/ .pytest_cache/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv .python-version # celery beat schedule file celerybeat-schedule # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ offpunk-v2.5/CHANGELOG000066400000000000000000000523521474670302700144510ustar00rootroot00000000000000# Offpunk History ## 2.5 - January 30th 2025 - "abbrevs" has been replaced by "alias" - "alias" now allows custom command to be aliased - PEP8-ification by Vincent Jousse - changing "datetime.UTC" to "datetime.timezone.utc" for retrocompatibility with python < 3.11 - checking if "grep" supports "--color=auto" to supports OpenBSD (reported by Dylan D’Silva) ## 2.4 - November 21st 2024 NEW WEBSITE: Official homepage is now https://offpunk.net (or gemini://offpunk.net). Sources are in the /tutorial/ folder and contributions are welcome. NEW FEATURE: This release includes work by Bert Livens to add gemini client-side certificates (see "help certs"). This means you can browse gemini capsule while being identified (such as astrobotany) - Deprecation warning if using Chafa < 1.10 - introducing the "tutorial" command (which is only a link to offpunk.net for now) - netcache: use client-certificate when going to a url like gemini://username@site.net (by Bert Livens) - offpunk/netcache: added the "cert" command to list and create client certificates (Bert Livens) - "open" now accept integer as parameters to open links (suggested by Matthieu Rakotojaona) - fix cache not being properly accessed when server redirect to same host with standard port (gemini.ucant.org) - fix crash when expired certificate due to not_valid_after deprecation - fix crash in netcache when a port cannot be parsed in the URL - fix parameter "interactive=False" not being sent to gemini redirections - fix problem with non-integer version of less (Patch by Peter Cock) - Gopher: hide lines starting with TAB (drkhsh.at), reported by Dylan D’Silva ## 2.3 - June 29th 2024 - Wayland clipboard support through wl-clipboard (new suggested dependency) - Xclip clipboard support (in case xsel is missing) - offpunk/netcache: fix IPv6 as an URL (bug #40) - ansicat: display empty files (instead of opening them with xdg-open) - fix escape sequence warning in python 3.12 (by Étienne Mollier) (Debian #1064209) - ansicat : fix crash when feedparser is crashing on bad RSS - netcache: fix spartan protocol error - opnk: fix a crash when caching returns None - ansicat: remove the treshold argument when launching chafa (strange artifacts with new version) - netcache: moved the certificate cache to the filesystem instead of a database (by Bert Livens) ## 2.2 - February 13th 2024 - cache folder is now configurable through $OFFPUNK_CACHE_PATH environment variable (by prx) - offpunk: adding an URL to a list now update the view mode if url already present - netcache: solve an infinite gemini loop with code 6X (see also bug #31) - ansicat: added support for