|
|
Mads Kiilerich
|
c819a1e9103b
|
5 years ago
|
|
docs: clarify the idea of best practice of installing in srv This was introduced in 03bbd33bc084 as it seems like the best location based on Filesystem Hierarchy Standard.
|
|
|
Mads Kiilerich
|
6bab917402b4
|
5 years ago
|
|
docs: when using venv with a clone, recommend using 'venv' as location
Avoid having the odd inconsistent location ../kallithea-venv to care about.
For good or bad, this might change how it is feasible to grep. I usually make sure to only search tracked files: grep Foo `hg mani`
|
|
|
Mads Kiilerich
|
c354d1a7537f
|
5 years ago
|
|
docs: give "File system location" overview
Also make some other adjustments for consistency.
|
|
|
Mads Kiilerich
|
0765771dbe5a
|
5 years ago
|
|
|
|
|
Mads Kiilerich
|
4d742b172010
|
5 years ago
|
|
|
|
|
Mads Kiilerich
|
7a7273f08cfb
|
5 years ago
|
|
|
|
|
Mads Kiilerich
|
61bd04b90f58
|
5 years ago
|
|
docs: clean up readthedocs URLs
It will redirect to the canonical URL https://*.readthedocs.io/en/latest , and there is no point in linking to /en/latest .
|
|
|
Mads Kiilerich
|
a63ccbc632d1
|
5 years ago
|
|
|
|
|
Mads Kiilerich
|
87de82eb7cb0
|
5 years ago
|
|
|
|
|
Thomas De Schampheleire
|
a04d6926d694
|
5 years ago
|
|
|
|
|
Mads Kiilerich
|
0bca9e828db2
|
5 years ago
|
|
docs: mention the need for worker process restarts to avoid "memory leaks" (Issue #346)
It might not be ideal to mention such details in the overview, but that seems like the best place for generic advice.
(Kallithea should still aim for keeping memory growth under control.)
|
|
|
Mads Kiilerich
|
850f096505ac
|
5 years ago
|
|
|
|
|
Mads Kiilerich
|
75b1994e4959
|
5 years ago
|
|
|
|
|
Mads Kiilerich
|
3a02b678b5e7
|
6 years ago
|
|
|
|
|
Mads Kiilerich
|
d59cb6068e55
|
6 years ago
|
|
docs: clarify the installation steps and how things fit together
Hint that create-db user information is for creating the initial local user and that the database connection (which also might use some kind of user) is something else.
|
|
|
Mads Kiilerich
|
01aca0a4f876
|
6 years ago
|
|
py3: officially support Python 3
All tests pass and no known regressions.
|
|
|
Mads Kiilerich
|
89e9aef9b983
|
6 years ago
|
|
|
|
|
Mads Kiilerich
|
ab30729c735c
|
7 years ago
|
|
setup: drop support for Python 2.6
It would be a a stepping stone for the migration to Python 3 to only support Python 2.7. Even though we don't make any big changes now, it might allow us to remove some workarounds or use some new forward-compatible features.
Mercurial dropped support for Python 2.6 2 years ago.
|
|
|
Mads Kiilerich
|
9bae11163c31
|
7 years ago
|
|
|
|
|
Mads Kiilerich
|
39f81c536ad4
|
7 years ago
|
|
docs: Fix a couple of build warnings
Now down to the usual: build/docs/api/models.rst: WARNING: document isn't included in any toctree
|
|
|
Thomas De Schampheleire
|
b66725ba01ed
|
7 years ago
|
|
cli: add command 'kallithea-cli front-end-build'
Kallithea is under the GPL license, and we can thus only distribute any generated code if we also ship the corresponding source.
We are moving towards a web front-end that use npm to download and compile various open source components. The components might not be GPL, but if we distribute any parts of their code (compiled or converted to other representation), then we also must distribute the corresponding source under the GPL.
It doesn't seem feasible for us to distribute the source of everything that npm downloads and includes when we are building. It thus also doesn't seem feasible for us to build and ship the compiled (possibly minified) front-end code. Instead, we have to make it as smooth as possible for our users to get up and running.
It doesn't seem feasible for us to ship or install npm. We must assume it is available. That requirement must be documented clearly, and we must recommend how to install npm for the most common platforms.
We could perhaps just document what manual steps to run. Kallithea doesn't work out of the box anyway - it has to be configured and initialized. Extra steps might not be a big problem.
Another approach is to call out to npm while pip is installing Kallithea and download the requirements and build the files. It can be done by customizing setuptools commands in setup.py. But: Python packaging is fragile. Even though we only support pip, it really isn't built for things like this. Custom output is muted and buffered and only shown if running with -v or the command fails. And pip and setup.py can be used to build and install in so many ways that we probably can't make it work reliably with all ways of installing Kallithea.
The approach implemented by this commit is to add a custom cli command 'front-end-build' to run the required commands. This single user-facing command can internally run various steps as needed. The only current requirement is the presence of npm and an internet connection.
For now, this will just create/update style.css ... but currently probably without any actual changes. The files created by npm (and the node_modules directory) must *not* be a part of the release package made with 'setup.py sdist'.
(Commit message is mostly written by Mads Kiilerich)
|
|
|
domruf
|
6ef837acb0d2
|
8 years ago
|
|
less: don't distribute the generated style.css file - for now, it must be built with npm after installing Kallithea
Generated files should not be included in the repository. Especially not when using GPL with the requirement of distributing corresponding source.
Also add the two commands to generate the css file to the docs.
Modified by Mads Kiilerich.
|
|
|
Mads Kiilerich
|
2c3d30095d5e
|
9 years ago
|
|
gearbox: replace paster with something TurboGears2-ish that still works with the Pylons stack
This is a step towards moving away from the Pylons stack to TurboGears2, but still independent of it.
Some notes from the porting - it could perhaps be the missing(?) documentation for migrating from paster to gearbox:
Note: 'gearbox' without parameters will crash - specify '-h' to get started testing.
Replace paster summary = 'yada yada' with the first line of the docstring of the Command class ... or override get_description.
Note: All newlines in the docstring will be collapsed and mangle the long help text.
Grouping of commands is not possible. Standard commands (for development) can't be customized under the same name or hidden. (Like for paster, the conceptual model also assumes that the sub-command naming is namespaced so commands from other packages won't conflict.)
The usage help is fully automated from the declared options.
For all deprecated Commands, replace paster hidden = True with gearbox deprecated = True
Note: config_file, takes_config_file, min_args and max_args are not available / relevant.
The gearbox parser is customized by overriding get_parser - there is nothing like paster update_parser.
Gearbox is using argparse instead of optparse ... but argparse add_argument is mostly backwards compatible with optparse add_option.
Instead of overriding command or run as in paster, override take_action in gearbox. The parsed arguments are passed to take_action, not available on the command instance.
Paster BadCommand is not available and must be handled manually, terminating with sys.exit(1).
There is no standard make-config command in gearbox.
Paster appinstall has been replaced by the somewhat different setup_app module in gearbox. There is still no clean way to pass parameters to SetupAppCommand and it relies on websetup and other apparently unnecessary complexity. Instead, implement setup-db from scratch.
Minor change by Thomas De Schampheleire: add gearbox logging configuration. Because we use logging.config.fileConfig(.inifile) during gearbox command execution, the logging settings need to be correct and contain a block for gearbox logging itself. Otherwise, errors in command processing are not even visible and the command exits silently.
|
|
|
Thomas De Schampheleire
|
8845ece50d51
|
9 years ago
|
|
docs: remove some references to Pylons
These references are either not used, or do not provide value. The Windows installation and email pages still references documents from the Pylons website -- alternative pages from Turbogears2 need to be found.
|
|
|
Andrew Shadura
|
250f8150c4bb
|
10 years ago
|
|
|
|
|
Mads Kiilerich
|
60e04a21bf0f
|
10 years ago
|
|
|
|
|
Mads Kiilerich
|
fbbe80e3322b
|
10 years ago
|
|
docs: consistent spacing around headings
Start out with 2 empty lines before/after for top level, decrease for deeper levels.
|
|
|
Mads Kiilerich
|
439792d55052
|
10 years ago
|
|
docs: try to improve the web server overview page
Say more about the role of paster and reverse proxies and do not give any hints that the combination should be a magic silver bullet.
|
|
|
Mads Kiilerich
|
36a35394b3cb
|
10 years ago
|
|
|
|
|
Mads Kiilerich
|
22a3fa3c4254
|
10 years ago
|
|
docs: cleanup of casing, markup and spacing of headings
Mostly stuff found and fixed by Søren, extracted here to separate things.
Other uses of title casing might be debatable, but here it was just a few documentation headings that clearly were inconsistent with the majority.
|
|
|
Mads Kiilerich
|
154becd92f40
|
11 years ago
|
|
|