Skip to content

Commit

Permalink
move to proper setuptools / pep 517 structure
Browse files Browse the repository at this point in the history
  • Loading branch information
csett86 committed Jan 12, 2022
1 parent f8bece0 commit 196533d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Packages for Ubuntu Server 20.04

Copy conferencemapper.service and conferencemapper.socket to /etc/systemd/system

Adapt /etc/systemd/system/conferencemapper.service to match path to conferencemapper.py
Adapt /etc/systemd/system/conferencemapper.service to match WorkingDirectory to conferencemapper module directory.

Add reverse proxy in front of gunicorn (nginx)

Expand Down
4 changes: 2 additions & 2 deletions conferencemapper.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Requires=conferencemapper.socket
ConditionFileIsExecutable=/usr/bin/gunicorn

[Service]
WorkingDirectory=/root/conferencemapper
ExecStart=/usr/bin/gunicorn conferencemapper:app
WorkingDirectory=/root/conferencemapper/conferencemapper
ExecStart=/usr/bin/gunicorn app:app
Restart=on-failure
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
Expand Down
Empty file added conferencemapper/__init__.py
Empty file.
File renamed without changes.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
22 changes: 22 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[metadata]
name = conferencemapper
version = 1.0.0
author = Christoph Settgast
author_email = [email protected]
description = Jigasi ConferenceMapper with Redis, Flask and Gunicorn
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/luki-ev/conferencemapper
project_urls =
Bug Tracker = https://github.com/luki-ev/conferencemapper/issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent

[options]
packages = conferencemapper
install_requires =
redis
flask
python_requires = >=3.6

0 comments on commit 196533d

Please sign in to comment.