-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (44 loc) · 1.42 KB
/
setup.py
File metadata and controls
50 lines (44 loc) · 1.42 KB
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
from setuptools import setup, find_packages
import tomllib
from pathlib import Path
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# Read metadata from pyproject.toml
def get_version():
with open("pyproject.toml", "rb") as f:
pyproject_data = tomllib.load(f)
return pyproject_data["project"]["version"]
# Static metadata
PROJECT_NAME = "wikigen"
AUTHOR_NAME = "Mithun Ramesh"
DESCRIPTION = "Wiki's for nerds, by nerds"
MIN_PYTHON_VERSION = "3.12"
setup(
name=PROJECT_NAME,
version=get_version(),
author=AUTHOR_NAME,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Documentation",
"Topic :: Text Processing :: Markup",
],
python_requires=f">={MIN_PYTHON_VERSION}",
entry_points={
"console_scripts": [
"wikigen=wikigen.cli:main",
],
},
include_package_data=True,
zip_safe=False,
)