summaryrefslogtreecommitdiff
path: root/src/hydrilla.egg-info
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-04-27 12:08:25 +0200
committerWojtek Kosior <koszko@koszko.org>2022-04-27 12:08:25 +0200
commitae96024993f111bcb1e48824f5f63be63ef38b1f (patch)
treecaa5f87385a97b1e94aab12318caa6fc0bf6d8a6 /src/hydrilla.egg-info
parent376425d547b12f0e09c7c9636ad891a3ede0e272 (diff)
downloadhaketilo-hydrilla-ae96024993f111bcb1e48824f5f63be63ef38b1f.tar.gz
haketilo-hydrilla-ae96024993f111bcb1e48824f5f63be63ef38b1f.zip
New upstream version 1.0upstream/1.0
Diffstat (limited to 'src/hydrilla.egg-info')
-rw-r--r--src/hydrilla.egg-info/PKG-INFO138
-rw-r--r--src/hydrilla.egg-info/SOURCES.txt46
-rw-r--r--src/hydrilla.egg-info/dependency_links.txt1
-rw-r--r--src/hydrilla.egg-info/entry_points.txt3
-rw-r--r--src/hydrilla.egg-info/not-zip-safe1
-rw-r--r--src/hydrilla.egg-info/requires.txt9
-rw-r--r--src/hydrilla.egg-info/top_level.txt1
7 files changed, 199 insertions, 0 deletions
diff --git a/src/hydrilla.egg-info/PKG-INFO b/src/hydrilla.egg-info/PKG-INFO
new file mode 100644
index 0000000..dc23bac
--- /dev/null
+++ b/src/hydrilla.egg-info/PKG-INFO
@@ -0,0 +1,138 @@
+Metadata-Version: 2.1
+Name: hydrilla
+Version: 1.0
+Summary: Hydrilla repository server
+Home-page: https://git.koszko.org/pydrilla
+Author: Wojtek Kosior
+Author-email: koszko@koszko.org
+License: AGPL-3.0-or-later
+Project-URL: Bug Tracker, https://hydrillabugs.koszko.org/projects/hydrilla
+Description: # Hydrilla (Python implementation)
+
+ This is the repository of Python incarnation of [Hydrilla](https://hydrillabugs.koszko.org/projects/hydrilla/wiki), a repository software to serve [Haketilo](https://hydrillabugs.koszko.org/projects/haketilo/wiki) packages.
+
+ The information below is meant to help hack on the codebase. If you're instead looking for some noob-friendly documentation, see the [user manual](https://hydrillabugs.koszko.org/projects/hydrilla/wiki/User_manual).
+
+ ## Dependencies
+
+ ### Runtime
+
+ * Python3 (>= 3.7)
+ * [hydrilla.builder](https://git.koszko.org/hydrilla-builder/)
+ * flask
+ * click
+ * jsonschema (>= 3.0)
+
+ ### Build
+
+ * setuptools
+ * wheel
+ * setuptools_scm
+ * babel
+
+ ### Test
+
+ * pytest
+ * reuse
+
+ ## Building
+
+ We're using setuptools. You can build a wheel under `dist/` with
+ ``` shell
+ python3 -m build
+ ```
+ Optionally, add a `--no-isolation` option to the second command to have it use system packages where possible instead of downloading all dependencies from PyPI.
+
+ The generated .whl file can then be used to install Hydrilla either globally or in the current Python virtualenv:
+ ```shell
+ python3 -m pip install dist/put_the_name_of_generated_file_here.whl
+ ```
+
+ ### PyPI considerations
+
+ Commands like `python3 -m build` and `python3 -m pip` but also `virtualenv` will by default download the dependencies from PyPI repository[^pypi]. Although this is what many people want, it carries along a freedom issue. PyPI is not committed to only hosting libre software packages[^pypi_freeware] and, like any platform allowing upload of code by the public, has lower package standards than repositories of many operating system distributions. For this reason you are encouraged to use the dependencies as provided by your distribution.
+
+ To perform the build and installation without PyPI, first install all dependencies system-wide. For example, in Debian-based distributions (including Trisquel):
+ ``` shell
+ sudo apt install python3-flask python3-flask python3-jsonschema \
+ python3-setuptools python3-setuptools-scm python3-babel python3-wheel
+ ```
+
+ Then, block programs you're about to spawn from accessing https://pypi.org. If running on a GNU/Linux system you can utilize Linux user namespaces:
+ ``` shell
+ unshare -Urn
+ ```
+
+ The above will put you in a network-isolated shell. If you're using a virtualenv, activate it **after** the `unshare` command.
+
+ Now, in unpacked source directories of **both** `hydrilla-builder` and `hydrilla`, run the build and installation commands:
+ ``` shell
+ python3 -m build --no-isolation
+ python3 -m pip install dist/hydrilla*.whl # or use the full file name
+ ```
+
+ [^pypi]: [https://pypi.org/](https://pypi.org/)
+ [^pypi_freeware]: [https://pypi.org/search/?c=License+%3A%3A+Freeware](https://pypi.org/search/?c=License+%3A%3A+Freeware)
+
+ ## Testing
+
+ For tests to pass you need compiled message catalogs to be present. If you've performed the build at least once, they're already there. Otherwise, you need to run `./setup.py compile_catalog`. Then you can run the actual tests:
+ ``` shell
+ python3 -m pytest
+ ```
+
+ ## Running
+
+ ### Hydrilla command
+
+ Hydrilla includes a `hydrilla` shell command that can be used to quickly and easily spawn a local instance, e.g.:
+ ```
+ hydrilla -m /path/to/where/package/files/to/serve/are/stored -p 10112
+ ```
+ This will cause the resources from provided path to be served at [http://127.0.0.1:10112/](http://127.0.0.1:10112/).
+
+ The actual packages to serve are made using [Hydrilla builder](https://git.koszko.org/hydrilla-builder/).
+
+ For more information about available options, pass the `--help` flag to `hydrilla` command:
+ ``` shell
+ hydrilla --help
+ ```
+
+ If you navigate your POSIX shell to Hydrilla sources directory, you can also consult the included manpage (`man` tool required):
+ ``` shell
+ man ./doc/man/man1/hydrilla.1
+ ```
+
+ Last but not least, you might find it useful to consult the default, internal configuration file of Hydrilla that resides under `src/hydrilla/server/config.json` in the sources repository.
+
+ ### WSGI
+
+ If you want to test a more production-suitable deployment option, consult sample Apache2 config files and a WSGI script supplied in `doc/examples` directory.
+
+ ## Copying
+
+ Hydrilla is Copyright (C) 2021-2022 Wojtek Kosior and contributors, entirely available under the GNU Affero General Public License version 3 or later. Some files might also give you broader permissions, see comments inside them.
+
+ *I, Wojtek Kosior, thereby promise not to sue for violation of this project's license. Although I request that you do not make use this code in a proprietary program, I am not going to enforce this in court.*
+
+ ## Contributing
+
+ Please visit our Redmine instance at https://hydrillabugs.koszko.org.
+
+ You can also write an email to koszko@koszko.org.
+
+Keywords: hydrilla,haketilo
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: Environment :: Web Environment
+Classifier: Environment :: Console
+Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
+Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
+Classifier: Natural Language :: English
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python :: 3 :: Only
+Requires-Python: >=3.7
+Description-Content-Type: text/markdown
+Provides-Extra: setup
+Provides-Extra: test
diff --git a/src/hydrilla.egg-info/SOURCES.txt b/src/hydrilla.egg-info/SOURCES.txt
new file mode 100644
index 0000000..461f1fc
--- /dev/null
+++ b/src/hydrilla.egg-info/SOURCES.txt
@@ -0,0 +1,46 @@
+COPYING
+MANIFEST.in
+README.md
+README.md.license
+babel.cfg
+pyproject.toml
+pytest.ini
+setup.cfg
+setup.py
+.reuse/dep5
+LICENSES/0BSD.txt
+LICENSES/AGPL-3.0-or-later.txt
+LICENSES/CC-BY-SA-4.0.txt
+LICENSES/CC0-1.0.txt
+doc/examples/hydrilla.example.com.conf
+doc/examples/hydrilla.example.com.tls.conf
+doc/examples/hydrilla.wsgi
+doc/man/man1/hydrilla.1
+src/hydrilla/__init__.py
+src/hydrilla.egg-info/PKG-INFO
+src/hydrilla.egg-info/SOURCES.txt
+src/hydrilla.egg-info/dependency_links.txt
+src/hydrilla.egg-info/entry_points.txt
+src/hydrilla.egg-info/not-zip-safe
+src/hydrilla.egg-info/requires.txt
+src/hydrilla.egg-info/top_level.txt
+src/hydrilla/server/__init__.py
+src/hydrilla/server/__main__.py
+src/hydrilla/server/_version.py
+src/hydrilla/server/config.json
+src/hydrilla/server/config.py
+src/hydrilla/server/serve.py
+src/hydrilla/server/locales/en_US/LC_MESSAGES/hydrilla-messages.po
+src/hydrilla/server/templates/base.html
+src/hydrilla/server/templates/index.html
+tests/__init__.py
+tests/config.json
+tests/test_server.py
+tests/source-package-example/README.txt
+tests/source-package-example/README.txt.license
+tests/source-package-example/bye.js
+tests/source-package-example/hello.js
+tests/source-package-example/index.json
+tests/source-package-example/message.js
+tests/source-package-example/.reuse/dep5
+tests/source-package-example/LICENSES/CC0-1.0.txt \ No newline at end of file
diff --git a/src/hydrilla.egg-info/dependency_links.txt b/src/hydrilla.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/src/hydrilla.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/src/hydrilla.egg-info/entry_points.txt b/src/hydrilla.egg-info/entry_points.txt
new file mode 100644
index 0000000..88610fe
--- /dev/null
+++ b/src/hydrilla.egg-info/entry_points.txt
@@ -0,0 +1,3 @@
+[console_scripts]
+hydrilla = hydrilla.server:start
+
diff --git a/src/hydrilla.egg-info/not-zip-safe b/src/hydrilla.egg-info/not-zip-safe
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/src/hydrilla.egg-info/not-zip-safe
@@ -0,0 +1 @@
+
diff --git a/src/hydrilla.egg-info/requires.txt b/src/hydrilla.egg-info/requires.txt
new file mode 100644
index 0000000..026f10d
--- /dev/null
+++ b/src/hydrilla.egg-info/requires.txt
@@ -0,0 +1,9 @@
+flask
+hydrilla.builder==1.0
+jsonschema>=3.0
+
+[setup]
+setuptools_scm
+
+[test]
+pytest
diff --git a/src/hydrilla.egg-info/top_level.txt b/src/hydrilla.egg-info/top_level.txt
new file mode 100644
index 0000000..85c40e2
--- /dev/null
+++ b/src/hydrilla.egg-info/top_level.txt
@@ -0,0 +1 @@
+hydrilla