From d6bfbea2af5a9996cccbb3754242f3150fa0bb78 Mon Sep 17 00:00:00 2001 From: Jonathan Sundqvist Date: Mon, 5 Jul 2021 09:46:56 +0200 Subject: [PATCH] pip et al don't handle metadata for pyproject.toml yet --- .gitignore | 1 + pyproject.toml | 27 --------------------------- setup.cfg | 35 +++++++++++++++++++++++++++++++++++ _setup.py => setup.py | 1 - 4 files changed, 36 insertions(+), 28 deletions(-) create mode 100644 setup.cfg rename _setup.py => setup.py (79%) diff --git a/.gitignore b/.gitignore index 1734bc3..3df7ae9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ **.egg-info/* __pycache__ +dist/** diff --git a/pyproject.toml b/pyproject.toml index 3ecefff..46382e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,30 +1,3 @@ -[project] -name = "pelican-obsidian" -version = "0.1.0" -description = "Makes pelican markdown files more compatible with Obsidian" -authors = [ - "Jonathan Sundqvist " -] -license = "MIT" -readme = "README.md" -python = "^3.6" -homepage = "https://github.com/jonathan-s/pelican-obsidian" -repository = "https://github.com/jonathan-s/pelican-obsidian" -documentation = "https://github.com/jonathan-s/pelican-obsidian" - -keywords = ["pelican", "obsidian", "plugin"] - -classifiers = [ - "Topic :: Software Development" -] - -# Requirements -[dependencies] -pelican = "^4.5" - -[dev-dependencies] -black = { version = "^18.3-alpha.0", python = "^3.6" } - [build-system] requires = [ "setuptools>=45", diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..172fefe --- /dev/null +++ b/setup.cfg @@ -0,0 +1,35 @@ +[metadata] +name = pelican-obsidian +description = Makes pelican markdown files more compatible with Obsidian +long_description = file: README.md +long_description_content_type = text/markdown; charset=UTF-8 +url = https://github.com/jonathan-s/pelican-obsidian +author = Jonathan Sundqvist +author_email = jonathan@argpar.se, +license = MIT +license_file = LICENSE +classifiers = + Topic :: Software Development +keywords = + pelican + obsidian + plugin +project_urls = + Documentation = https://github.com/jonathan-s/pelican-obsidian + Source = https://github.com/jonathan-s/pelican-obsidian + Tracker = https://github.com/jonathan-s/pelican-obsidian/issues + Funding = https://github.com/sponsors/jonathan-s + +[options] +zip_safe = True +packages = find: +platforms = any +include_package_data = True +install_requires = + pelican +python_requires = >=3.7 +setup_requires = + setuptools_scm + +[bdist_wheel] +universal = 1 diff --git a/_setup.py b/setup.py similarity index 79% rename from _setup.py rename to setup.py index c3d9a7c..b567b3a 100644 --- a/_setup.py +++ b/setup.py @@ -1,7 +1,6 @@ # setup.py from setuptools import setup setup( - name="pelican-obsidian", use_scm_version=True, setup_requires=['setuptools_scm'], )