mirror of
https://github.com/pelican-plugins/share-post.git
synced 2025-10-15 17:08:54 +02:00
Modernize code and add a test
This commit is contained in:
parent
32c4488fb7
commit
5b7dbc440c
14 changed files with 546 additions and 110 deletions
73
pyproject.toml
Normal file
73
pyproject.toml
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
[tool.poetry]
|
||||
name = "pelican-share-post"
|
||||
version = "0.0.0"
|
||||
description = "A Pelican plugin to create share URLs of article"
|
||||
authors = ["Talha Mansoor <talha131@gmail.com>"]
|
||||
license = "MIT"
|
||||
readme = "README.md"
|
||||
keywords = ["pelican", "plugin", "social"]
|
||||
repository = "https://github.com/pelican-plugins/share-post"
|
||||
documentation = "https://docs.getpelican.com"
|
||||
packages = [
|
||||
{ include = "pelican" },
|
||||
]
|
||||
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Environment :: Console",
|
||||
"Framework :: Pelican",
|
||||
"Framework :: Pelican :: Plugins",
|
||||
"Intended Audience :: End Users/Desktop",
|
||||
"Operating System :: OS Independent",
|
||||
"Topic :: Internet :: WWW/HTTP",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
]
|
||||
|
||||
[tool.poetry.urls]
|
||||
"Funding" = "https://donate.getpelican.com/"
|
||||
"Issue Tracker" = "https://github.com/pelican-plugins/share-post/issues"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.6"
|
||||
pelican = "^4.5"
|
||||
markdown = {version = "^3.2.2", optional = true}
|
||||
beautifulsoup4 = "^4.9.3"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
black = {version = "^19.10b0", allow-prereleases = true}
|
||||
flake8 = "^3.9"
|
||||
flake8-black = "^0.2.0"
|
||||
invoke = "^1.3"
|
||||
isort = "^5.4"
|
||||
livereload = "^2.6"
|
||||
markdown = "^3.2.2"
|
||||
pytest = "^6.0"
|
||||
pytest-cov = "^2.8"
|
||||
pytest-pythonpath = "^0.7.3"
|
||||
pytest-sugar = "^0.9.4"
|
||||
Werkzeug = "^1.0"
|
||||
|
||||
[tool.poetry.extras]
|
||||
markdown = ["markdown"]
|
||||
|
||||
[tool.autopub]
|
||||
project-name = "Share Post"
|
||||
git-username = "botpub"
|
||||
git-email = "botpub@autopub.rocks"
|
||||
append-github-contributor = true
|
||||
|
||||
[tool.isort]
|
||||
# Maintain compatibility with Black
|
||||
profile = "black"
|
||||
multi_line_output = 3
|
||||
|
||||
# Sort imports within their section independent of the import type
|
||||
force_sort_within_sections = true
|
||||
|
||||
# Designate "pelican" as separate import section
|
||||
known_pelican = "pelican"
|
||||
sections = "FUTURE,STDLIB,THIRDPARTY,PELICAN,FIRSTPARTY,LOCALFOLDER"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
Loading…
Add table
Add a link
Reference in a new issue