-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (34 loc) · 1008 Bytes
/
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
"""Package setup."""
from setuptools import find_packages, setup
with open("README.md", "r") as fh:
long_description = fh.read()
def find_version() -> str:
with open("scrivo/__init__.py") as file:
for line in file:
if "__version__" in line:
return line.strip().split("=").pop().strip('" ')
raise ValueError("Could not find version number")
setup(
name="scrivo",
version=find_version(),
author="Tom Shafer",
author_email="[email protected]",
description="A static website generator.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://gitlab.com/tomshafer/scrivo",
packages=find_packages(),
python_requires=">=3.9",
install_requires=[
"bs4",
"jinja2",
"markdown",
"numpy",
"pygments",
"python-markdown-math",
"PyYAML",
"scikit-learn",
"snowballstemmer",
],
scripts=["bin/sitesync"],
)