Skip to content

Commit 020109f

Browse files
author
jacook
committed
make as python module
1 parent 13d8e5a commit 020109f

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
MANIFEST
2+
dist
3+
build
4+
*.pyc

nginx/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from main import *
File renamed without changes.

setup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env python
2+
3+
from distutils.core import setup
4+
5+
setup(
6+
name='python-nginx',
7+
version='0.1',
8+
description='Create and modify nginx serverblock configs in Python',
9+
author='Jacob Cook',
10+
author_email='jacob@jcook.cc',
11+
url='https://jcook.cc',
12+
packages=['nginx']
13+
)

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import main as nginx
1+
import nginx.main as nginx
22

33
def test():
44
return nginx.Conf(nginx.Server(nginx.Comment('This is a test comment'), nginx.Key('server_name', 'localhost'),

0 commit comments

Comments
 (0)