-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
126 lines (96 loc) · 3.03 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import codecs
import os
import sys
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
return codecs.open(os.path.join(here, *parts), 'r').read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
#long_description = read('DESCRIPTION.rst')
long_description = """
Quick Started
==============
At first, you should crate a **yourname.github.com.git** on **GitHub**::
$ git clone git@github.com:yourname/yourname.github.com.git
$ cd yourname.github.com
$ orgnote init
Thus, update **_config.yml** configure file.
Usage
======
The usage of **orgnote**::
$ orgnote help
Usage: orgnote <command>
Commands:
init Create a new OrgNote folder
new Create a new .org/.md post
list List this blog notes
status Status of those notes
publish Auto Publish a note
recall Cancel publish a note
generate Generate static files
server Start the server
deploy Deploy your website
help Get help on a command
version Display version information
For more help, you can check the docs: http://orgnote.readthedocs.org/zh_CN/latest/
"""
setup(
name = "orgnote",
version = find_version("orgnote", "__init__.py"),
keywords = ['org-mode', 'emacs','orgnote','blog'],
description = ' A simple blog based on org-mode',
long_description=long_description,
license = 'GPL',
author = 'Leslie Zhu',
author_email = 'pythonisland@gmail.com',
url = 'https://github.com/LeslieZhu/OrgNote',
packages = find_packages(),
package_dir = {'orgnote':'orgnote',
},
package_data = {
'': ['*.py'],
'':['_config.yml'],
'':['DESCRIPTION.rst']
},
include_package_data = True,
platforms = 'linux',
zip_safe=False,
#tests_require=['pytest'],
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.7",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
],
entry_points={
"console_scripts": [
"orgnote=orgnote:main",
"orgnote%s=orgnote:main" % sys.version[:1],
"orgnote%s=orgnote:main" % sys.version[:3],
],
},
install_requires = [
'pyyaml>=4.2b1',
"Pygments>=2.7.4",
"beautifulsoup4>=4.4.1",
"bs4>=0.0.1",
"mistune>=0.8.4",
"Markdown>=3.1.1",
"watchdog>=0.9.0",
]
#extras_require={
# 'testing': ['pytest'],
#}
)