-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
42 lines (36 loc) · 1.23 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
# -*- coding:utf-8 -*-
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
def get_requirements(file_name):
"""
Takes requirements from requirements.txt and returns a list.
"""
with open(file_name) as fp:
reqs = list()
for lib in fp.read().split("\n"):
# Ignore pypi flags and comments
if not lib.startswith("-") or lib.startswith("#"):
reqs.append(lib.strip())
return reqs
install_requires = get_requirements("requirements.txt")
setuptools.setup(
name="notion-hugo",
version="0.2.4",
author="gclm",
author_email="[email protected]",
description="convert notion page content to markdown",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/gclm/notion-hugo",
install_requires=install_requires,
include_package_data=True,
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
)