Skip to content

Commit

Permalink
chore: fix Pipfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Dec 26, 2023
1 parent 0f029d4 commit 84cd36f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ python_version = "3.12"

[scripts]
black = "black ."
build = "python setup.py sdist bdist_wheel"
build = "python -m build --sdist --wheel --outdir dist --no-isolation"
upload = "twine upload dist/*"
version="semantic-release version"
publish = "semantic-release publish"
Expand Down
26 changes: 16 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
from setuptools import setup, find_packages
import shutil
from pathlib import Path
from typing import Any

from setuptools import find_packages, setup

version = "2.0.9"

requirements = Path("requirements.txt")
readme = Path("README.md")


def classification_dependencies():
with open("requirements.txt") as f:
def classification_dependencies() -> tuple[list[Any], list[Any]]:
with requirements.open("r", encoding="UTF-8") as f:
external = []
internal = []
for package in f.read().splitlines():
Expand All @@ -15,11 +22,15 @@ def classification_dependencies():
return external, internal


with open("README.md", "r", encoding="utf-8") as fh:
with readme.open("r", encoding="utf-8") as fh:
long_description = fh.read()

external, internal = classification_dependencies()

# remove old dist version

shutil.rmtree("dist", ignore_errors=True)

setup(
name="mkdocs_embed_file_plugins",
python_requires=">=3.7",
Expand All @@ -38,15 +49,10 @@ def classification_dependencies():
"Topic :: Text Processing :: Markup :: Markdown",
"License :: OSI Approved :: GNU Affero General Public License v3 or later"
" (AGPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Mara-Li/mkdocs_embed_file_plugins",
url="https://github.com/ObsidianPublisher/mkdocs-embed_file-plugin",
entry_points={
"mkdocs.plugins": ["embed_file=mkdocs_embed_file_plugins.plugin:EmbedFile"]
},
Expand Down

0 comments on commit 84cd36f

Please sign in to comment.