Skip to content

Commit 04263ce

Browse files
committed
init
0 parents  commit 04263ce

File tree

8 files changed

+72
-0
lines changed

8 files changed

+72
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.pyc
2+
*.bak
3+
build
4+
dist
5+
*.egg-info
6+
.idea
7+
_git

README.md

Whitespace-only changes.

doc/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory is used to store static files.

setup.py

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#coding=utf8
2+
__doc__ = """uliweb-apijson"""
3+
4+
import re
5+
import os
6+
7+
from setuptools import setup
8+
9+
def fpath(name):
10+
return os.path.join(os.path.dirname(__file__), name)
11+
12+
13+
def read(fname, default=''):
14+
filename = fpath(fname)
15+
if os.path.exists(filename):
16+
return open(fpath(fname)).read()
17+
else:
18+
return default
19+
20+
21+
def desc():
22+
info = read('README.md', __doc__)
23+
return info + '\n\n' + read('doc/CHANGELOG.md')
24+
25+
file_text = read(fpath('uliweb_apijson/__init__.py'))
26+
27+
28+
def grep(attrname):
29+
pattern = r"{0}\s*=\s*'([^']*)'".format(attrname)
30+
strval, = re.findall(pattern, file_text)
31+
return strval
32+
33+
setup(
34+
name='uliweb-apijson',
35+
version=grep('__version__'),
36+
url=grep('__url__'),
37+
license='BSD',
38+
author=grep('__author__'),
39+
author_email=grep('__email__'),
40+
description='uliweb-apijson',
41+
long_description=desc(),
42+
packages = ['uliweb_apijson'],
43+
include_package_data=True,
44+
zip_safe=False,
45+
platforms='any',
46+
install_requires=[
47+
'uliweb',
48+
],
49+
classifiers=[
50+
'Development Status :: 4 - Beta',
51+
'Environment :: Web Environment',
52+
'Intended Audience :: Developers',
53+
'License :: OSI Approved :: BSD License',
54+
'Operating System :: OS Independent',
55+
'Programming Language :: Python',
56+
'Topic :: Software Development :: Libraries :: Python Modules'
57+
],
58+
)

uliweb_apijson/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__version__ = '0.1'
2+
__url__ = ''
3+
__author__ = ''
4+
__email__ = ''

uliweb_apijson/settings.ini

Whitespace-only changes.

uliweb_apijson/static/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory is used to store static files.

uliweb_apijson/templates/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory is used to store static files.

0 commit comments

Comments
 (0)