fix for pkg
This commit is contained in:
parent
897723e74c
commit
2e0d474d90
4 changed files with 32 additions and 6 deletions
22
pyproject.toml
Normal file
22
pyproject.toml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=67.7.2","docutils>=0.20.0","Sphinx>=7.2.6","wheel>=0.42.0"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "sphinxcontrib-d2lang"
|
||||||
|
version = "0.0.1"
|
||||||
|
authors = [
|
||||||
|
{ name="Milka64", email="michael.ricart@0w.tf" },
|
||||||
|
]
|
||||||
|
description = "an extension for sphinx to render d2lang diagrams in sphinx documents"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
classifiers = [
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://git.0w.tf/Milka64/sphinx-d2lang/"
|
||||||
|
Issues = "https://git.0w.tf/Milka64/sphinx-d2lang/issues"
|
4
setup.py
4
setup.py
|
@ -4,7 +4,7 @@ this is the setup of this package.
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
from sphinxcontrib.d2lang import __version__
|
#from .sphinxcontrib.d2lang import __version__
|
||||||
|
|
||||||
with open('sphinxcontrib/requirements.txt', 'r', encoding='utf8') as file:
|
with open('sphinxcontrib/requirements.txt', 'r', encoding='utf8') as file:
|
||||||
install_requires = list(map(lambda x: x.strip(), file.readlines()))
|
install_requires = list(map(lambda x: x.strip(), file.readlines()))
|
||||||
|
@ -14,7 +14,7 @@ with open('README.md', 'r', encoding='utf8') as file:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='sphinxcontrib-d2lang',
|
name='sphinxcontrib-d2lang',
|
||||||
version='.'.join(map(str, __version__)),
|
version='0.0.1',
|
||||||
author='Milka64',
|
author='Milka64',
|
||||||
author_email='michael.ricart@0w.tf',
|
author_email='michael.ricart@0w.tf',
|
||||||
url='https://git.0w.tf/Milka64/sphinx-d2lang/',
|
url='https://git.0w.tf/Milka64/sphinx-d2lang/',
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
from sphinx.application import Sphinx
|
try:
|
||||||
|
from sphinx.application import Sphinx
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
from .d2lang import D2langDirective
|
from .d2lang import D2langDirective
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
Sphinx
|
docutils==0.20.1
|
||||||
docutils
|
setuptools==67.7.2
|
||||||
wheel
|
Sphinx==7.2.6
|
||||||
|
wheel==0.42.0
|
||||||
|
|
Loading…
Reference in a new issue