-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from al4/master
Support for Python3, fix for /versions, bump to 0.2 and more
- Loading branch information
Showing
41 changed files
with
729 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,3 +65,6 @@ orlo/_version.py | |
.vagrant | ||
*.swp | ||
*.deb | ||
|
||
# OSX | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,101 @@ | ||
orlo (0.2.0.pre5) UNRELEASED; urgency=medium | ||
|
||
[ Alex Forbes ] | ||
* Add dependant python virtualenv package to Vagrantfile | ||
* Add outline for Deploy process | ||
* Use release object instead of re-declaring, add live server test | ||
|
||
[ Ivan Coppa ] | ||
* Support for Release metadata attributes, Deploy endpoint | ||
* disabling debug | ||
|
||
[ Alex Forbes ] | ||
* Add integrated dummy deployer test | ||
* Use relative path for deployer.rb | ||
|
||
[ Marcel Kuiper ] | ||
* Added POC for Token based AUthentication | ||
|
||
[ Ivan Coppa ] | ||
* enable deploy api call | ||
|
||
[ Marcel Kuiper ] | ||
* processed flake8 recommendations on user_auth.py | ||
|
||
[ ivancoppa ] | ||
* create base data | ||
|
||
[ Alex Forbes ] | ||
* Add last minute changes to create script | ||
* Add last minute hacks to make everything work | ||
* Add orlo_release to deployer env | ||
* Create configuration for auth + | ||
* Make URL a parameter for auth tests | ||
* Only apply login_required when security is enabled | ||
* Rename test classes to start with "Test" | ||
* Move auth config into setup/teardown | ||
* Add root page, test fixes | ||
* Skip deploy test for now | ||
* Move route_api to route_releases, rename metadatas => metadata | ||
* Make token lifetime configurable, update orlo.ini with new options | ||
* Bump version of Flask-HTTPAuth | ||
* Add status code to OrloAuthError and add OrloConfigError | ||
* Remove login_handler in favour or separate TokenAuth module | ||
* Seperate token auth from http basic auth | ||
* Only require auth when configured | ||
* Implement deployer.py test deployer script | ||
* Bump orloclient version, use py.test for travis | ||
* Add pytz to requirements.txt | ||
* Add requirements_testing.txt | ||
* Move pytest to requirements_testing | ||
* Use /bin/true in deploy shell test | ||
|
||
[ Dustin Nguyen ] | ||
* Added ldap auth | ||
* Added ldap mock test | ||
|
||
[ Alex Forbes ] | ||
* Misc changes to deploy | ||
* Tidy up example deployer | ||
* Bump to pre-release 0.2 | ||
* Tidy comments in example deployer | ||
* Use absolute path for version file | ||
* Use orlo.cli as entry point instead of custom script | ||
* Update Vagrantfile | ||
* Fix silly bug, read config from file after set | ||
* Move debian packaging files in to debian dir | ||
* Explicitly set synced_folder to virtualbox provider | ||
* [lintian] fix description | ||
* Add /version url and test | ||
* Add --version option to command line | ||
* Handle getting an invalid release id gracefully | ||
* Reduce test verbosity by disabling debug and removing prints | ||
* [debian] Add prerm script to stop service | ||
* Separate post_releases_start and post_releases_deploy | ||
* Log output of deploy | ||
* Use json.dumps instead of str() for reliable conversion | ||
* Return output of deploy to client | ||
* Add .DS_Store to gitignore | ||
* Add payload of arguments to error | ||
* Add configuration to documentation | ||
* Break out ExecStart command into multiple lines for clarity | ||
* Add note to test_auth file | ||
* Make config file configurable by environment variable | ||
* Include logger name in logs | ||
* Update requirements for py3, use >= where possible | ||
* Remove indirect dependencies | ||
* Update Vagrantfile to Ubuntu Xenial | ||
* Remove indirect imports | ||
* [py3] fix import errors | ||
* Fix tests to run under python3 | ||
* Fix for python2 again | ||
* Add own fork of flask-testing | ||
* Fix /versions sometimes returning wrong version | ||
|
||
[ Ubuntu ] | ||
|
||
-- Alex Forbes <[email protected]> Thu, 14 Apr 2016 16:17:34 +0000 | ||
|
||
orlo (0.1.1) stable; urgency=medium | ||
|
||
* Cast package_rollback as a boolean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
bin/orlo usr/bin | ||
debian/bin/orlo usr/bin | ||
etc/orlo.ini /etc/orlo | ||
systemd/orlo.service /lib/systemd/system | ||
debian/systemd/orlo.service /lib/systemd/system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Obviously, many of these are legitimate packaging problems and should be resolved. | ||
# Most though, are by virtue of dh-virtualenv | ||
# | ||
orlo binary: wrong-path-for-interpreter | ||
# Python is packaged in: | ||
orlo binary: python-script-but-no-python-dep | ||
# Several pip packages cause this: | ||
orlo binary: executable-not-elf-or-script | ||
orlo binary: souce-is-missing docs/ | ||
# Werkzeug, sphinx: | ||
orlo binary: embedded-javascript-library | ||
orlo binary: package-installs-python-egg usr/share/python/orlo/lib/python2.7/site-packages/flask/testsuite/test_apps/lib/python2.5/site-packages/SiteEgg.egg | ||
|
||
# Binary files within the virtualenv: | ||
orlo binary: arch-dependent-file-in-usr-share usr/share/python/orlo/bin/python | ||
orlo binary: arch-dependent-file-in-usr-share usr/share/python/orlo/lib/python2.7/site-packages/_ldap.so | ||
|
||
# Can't be overridden, would be nice if dh-virtualenv handled this | ||
orlo binary: package-installs-python-bytecode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
systemctl stop orlo.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
orlo source: source-is-missing docs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Systemd unit file for orlo | ||
|
||
[Unit] | ||
Description=orlo | ||
After=network.target | ||
ConditionPathExists=/usr/share/python/orlo/bin/gunicorn | ||
|
||
[Service] | ||
Type=simple | ||
User=orlo | ||
Group=orlo | ||
ExecStart=/usr/share/python/orlo/bin/gunicorn \ | ||
-w 4 -b 127.0.0.1:8080 \ | ||
--access-logfile /var/log/orlo/gunicorn-access.log \ | ||
--log-level debug \ | ||
--error-logfile /var/log/orlo/gunicorn-error.log \ | ||
--log-file /var/log/orlo/gunicorn.log \ | ||
orlo:app | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Configuration | ||
============= | ||
|
||
[main] | ||
`````` | ||
|
||
:debug_mode: `true` or `false`. Default `false`. Enables Flask's debug mode. | ||
:propagate_exceptions: `true` or `false`. Default `true`. Sets | ||
'PROPAGATE_EXCEPTIONS` in Flask. See | ||
`Flask documentation <http://flask.pocoo.org/docs/0.10/config/#builtin-configuration-values>`_ | ||
for details. | ||
:time_format: A `strftime <https://docs.python.org/2/library/time.html#time.strftime>`_ | ||
string. Default `%Y-%m-%dT%H:%M:%SZ`. | ||
:time_zone: Local time zone, as understood by pytz. Internally, | ||
all timestamps are stored in UTC. The timestamp is interpreted by Arrow when | ||
timestamps are given by the user (e.g. on recording a release), this | ||
setting merely reflects what time zone is given back to GET requests. | ||
Default `UTC`. | ||
:strict_slashes: `true` or `false`. Default `false`. By default, Werkzeug | ||
(what Flask uses underneath), will automatically "handle" trailing slashes, | ||
with the result that /foo/ and /foo are the same url. This disables that | ||
behaviour. It is recommended that you leave this set to false. See the | ||
`Werkzeug documentation <http://werkzeug.pocoo.org/docs/0.11/routing/#maps-rules-and-adapters>`_ | ||
for more information. | ||
:base_url: The external url which points to your web app. Required for | ||
callbacks. Default `http://localhost:8080`. | ||
|
||
[security] | ||
`````````` | ||
|
||
:enabled: `true` or `false`. Enables security. | ||
:passwd_file: Path to a `htpasswd <https://httpd.apache.org/docs/2.2/programs/htpasswd.html>`_ | ||
file to use for authentication. | ||
:secret_key: A secret key to use for token encryption. Default `change_me`. | ||
If security is enabled and this is still set to `change_me`, Orlo will | ||
refuse to start. | ||
:token_ttl: The length of times that tokens should live for in seconds. | ||
Tokens automatically expire after this. Default `3600`. | ||
:ldap_server: Ldap server to use for ldap requests. Default `localhost | ||
.localdomain` | ||
:ldap_port: Ldap port to use for ldap requests. Default `389`. | ||
:user_base_dn: Ldap dn in which to search for users. Default `ou=people, | ||
ou=example,ou=test` | ||
|
||
|
||
[db] | ||
```` | ||
|
||
:uri: Database uri for SQLAlchemy. See `Flask-SQLAlchemy <http://flask-sqlalchemy.pocoo.org/2.1/config/?highlight=sqlalchemy_database_uri>`_ | ||
docs for details. Default `postgres://orlo:password@localhost:5432/orlo` | ||
:echo_queries: Whether or not to echo sql queries to log. Default `false`. | ||
|
||
[logging] | ||
````````` | ||
|
||
:level: Logging level, valid values `debug`, `info`, `warning`, `error`. | ||
Default `info`. | ||
:file: Log file to use. If not set, logging only goes to stdout. | ||
|
||
[deploy] | ||
```````` | ||
|
||
:timeout: How long to wait for the deploy script to complete in seconds. If it | ||
does not complete within this time, the deploy is considered failed and | ||
an exception is raised. Default `3600`. | ||
|
||
[deploy_shell] | ||
`````````````` | ||
|
||
:command_path: Path to the deployment script. Defaults to Orlo's test deployer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.