mirror of
https://git.ikl.sh/132ikl/liteshort.git
synced 2023-08-10 21:13:04 +03:00
Downgrade setup.py to current, remove CONVENTIONS, update config
This commit is contained in:
parent
d2e9d918d5
commit
1b7ca2d517
33
CONVENTIONS
33
CONVENTIONS
@ -1,33 +0,0 @@
|
|||||||
TODO: Move to wiki
|
|
||||||
|
|
||||||
The following is a description of design philosphies and standards for liteshort. This document is mostly for developers, however if you are interested feel free to take a peek.
|
|
||||||
|
|
||||||
DESIGN PHILOSPHIES:
|
|
||||||
- Liteshort should be light on hardware resources. It doesn't need to be as minimal as possible, however it should never use excessive amounts of memory or CPU time.
|
|
||||||
- Liteshort should have readable code. Readability is more important than small performance gains.
|
|
||||||
- Liteshort should be easily configurable. If something could be an option, it should be.
|
|
||||||
- Liteshort should be simple to install and maintain. Installing should be a simple process, whether from a package manager or when installing from source.
|
|
||||||
- Liteshort should follow system design standards. This includes basic Unix design principles and the Filesystem Hierarchy Standard.
|
|
||||||
|
|
||||||
|
|
||||||
PROPOSAL FOR A DEBIAN PACKAGE
|
|
||||||
|
|
||||||
File Structure:
|
|
||||||
x Debug Executable file: liteshort in $PATH
|
|
||||||
x Hashpw executable file: lshash in $PATH
|
|
||||||
x Source directory: system Python module folder (eg. /usr/lib/python3/dist-packages/liteshort)
|
|
||||||
x Config directory: /etc/liteshort/ OR appdirs.site_config_dir OR appdirs.user_config_dir
|
|
||||||
- Socket file (if applicable): /run/liteshort.sock
|
|
||||||
|
|
||||||
Pypi Package:
|
|
||||||
The PyPi package should provide no more than the following:
|
|
||||||
x Install source to Python package directory
|
|
||||||
x Install template config files
|
|
||||||
x Install debug executables installed
|
|
||||||
x Install minimum requirements (no uwsgi)
|
|
||||||
|
|
||||||
Debian Pacakge:
|
|
||||||
The Debian package should provide no more than the following:
|
|
||||||
- Install uwsgi
|
|
||||||
- Install and enable systemd service
|
|
||||||
- Should be based upon pybuild, as to prevent redundant packaging
|
|
@ -5,13 +5,13 @@ admin_username: 'admin'
|
|||||||
# String: Plaintext password to make admin API requests
|
# String: Plaintext password to make admin API requests
|
||||||
# Safe to remove if admin_hashed_password is set
|
# Safe to remove if admin_hashed_password is set
|
||||||
# Default: unset
|
# Default: unset
|
||||||
#admin_password:
|
admin_password: CHANGE_ME
|
||||||
|
|
||||||
# String: Hashed password (bcrypt) to make admin API requests - Preferred over plaintext, use lshash to generate
|
# String: Hashed password (bcrypt) to make admin API requests - Preferred over plaintext, use lshash to generate
|
||||||
# Please note that authentication takes noticeably longer than using plaintext password
|
# Please note that authentication takes noticeably longer than using plaintext password
|
||||||
# Don't include the <username>: segment, just the hash
|
# Don't include the <username>: segment, just the hash
|
||||||
# Default: unset (required to start application)
|
# Default: unset (required to start application)
|
||||||
admin_hashed_password:
|
#admin_hashed_password:
|
||||||
|
|
||||||
# Boolean: Disables API. If set to true, admin_password/admin_hashed_password do not need to be set.
|
# Boolean: Disables API. If set to true, admin_password/admin_hashed_password do not need to be set.
|
||||||
# Default: false
|
# Default: false
|
||||||
@ -20,7 +20,7 @@ disable_api: false
|
|||||||
# String: Secret key used for cookies (used for storage of messages)
|
# String: Secret key used for cookies (used for storage of messages)
|
||||||
# This should be a 12-16 character randomized string with letters, numbers, and symbols
|
# This should be a 12-16 character randomized string with letters, numbers, and symbols
|
||||||
# Default: unset (required to start application)
|
# Default: unset (required to start application)
|
||||||
secret_key:
|
secret_key: CHANGE_ME
|
||||||
|
|
||||||
# String: Filename of the URL database without extension
|
# String: Filename of the URL database without extension
|
||||||
# Default: 'urls'
|
# Default: 'urls'
|
||||||
|
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="liteshort",
|
name="liteshort",
|
||||||
version="2.0.0",
|
version="1.1.0",
|
||||||
author="Steven Spangler",
|
author="Steven Spangler",
|
||||||
author_email="132@ikl.sh",
|
author_email="132@ikl.sh",
|
||||||
description="User-friendly, actually lightweight, and configurable URL shortener",
|
description="User-friendly, actually lightweight, and configurable URL shortener",
|
||||||
|
Loading…
Reference in New Issue
Block a user