-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
42 lines (38 loc) · 1.05 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
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
NAME = "mdserve"
VERSION = "1.4.6"
requirements = [
n.strip() for n in read('requirements.txt').split('\n') if n.strip()
]
setup(
name=NAME,
version=VERSION,
license='MIT',
description="Markdown server.",
author="kingreatwill",
author_email="[email protected]",
url="https://github.com/openjw/mdserve",
keywords=["markdown"],
packages=find_packages(),
package_data={'': ['*.css', '*.ico', '*.svg'],'mdserve': ['css/*.css','icons/*.svg']},
install_requires=requirements,
include_package_data=True,
long_description=read('README.md'),
long_description_content_type="text/markdown",
zip_safe=True,
#include_dirs =['css','icons'],
entry_points={
'console_scripts': [
'mdserve = mdserve.__main__:main'
]
},
)
"""
python setup.py check
python setup.py sdist bdist_wheel
# python setup.py install
twine upload dist/mdserve-1.4.6*
"""