|
2 | 2 |
|
3 | 3 | version = "1.3.0"
|
4 | 4 |
|
| 5 | +def classification_dependencies(): |
| 6 | + with open("requirements.txt") as f: |
| 7 | + external=[] |
| 8 | + internal=[] |
| 9 | + for package in f.read().splitlines(): |
| 10 | + if package.startswith("git+"): |
| 11 | + external.append(package.replace('git+', '')) |
| 12 | + else: |
| 13 | + internal.append(package) |
| 14 | + return external, internal |
| 15 | + |
| 16 | + |
5 | 17 | with open("README.md", "r", encoding="utf-8") as fh:
|
6 | 18 | long_description = fh.read()
|
7 |
| -with open("requirements.txt") as f: |
8 |
| - required = f.read().splitlines() |
| 19 | + |
| 20 | +external, internal = classification_dependencies() |
| 21 | + |
9 | 22 | setup(
|
10 | 23 | name="mkdocs_embed_file_plugins",
|
11 | 24 | python_requires=">=3.7",
|
|
14 | 27 | author="Mara-Li",
|
15 | 28 | author_email="mara-li@icloud.com",
|
16 | 29 | packages=find_packages(),
|
17 |
| - install_requires=required, |
| 30 | + install_requires=internal, |
| 31 | + dependency_links=external, |
18 | 32 | license="AGPL",
|
19 | 33 | keywords="obsidian, obsidian.md, mkdocs, file, embed, cite, quote",
|
20 | 34 | classifiers=[
|
|
33 | 47 | long_description_content_type="text/markdown",
|
34 | 48 | url="https://github.com/Mara-Li/mkdocs_embed_file_plugins",
|
35 | 49 | entry_points={
|
36 |
| - "mkdocs.plugins": ["embed_file =mkdocs_embed_file_plugins.plugin:EmbedFile"] |
| 50 | + "mkdocs.plugins": ["embed_file=mkdocs_embed_file_plugins.plugin:EmbedFile"] |
37 | 51 | },
|
38 | 52 | )
|
0 commit comments