Skip to content

Commit

Permalink
Merge pull request #2 from frostming/switch-to-setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored May 7, 2022
2 parents 88ae549 + b92fcf2 commit 132e1a3
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 93 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/dist/
__pycache__/
.pdm.toml
*.egg-info/
8 changes: 8 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
graft tests

prune tests/example/_build
prune tests/example/packages

global-exclude *.pyc
global-exclude .DS_Store
global-exclude .gitignore
2 changes: 0 additions & 2 deletions __pypackages__/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions lektor_tailwind.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from lektor.pluginsystem import Plugin
from pytailwindcss import install, get_bin_path

__version__ = "0.1.0"
GRACEFUL_TIMEOUT = 5


Expand Down
15 changes: 0 additions & 15 deletions pdm.lock

This file was deleted.

37 changes: 0 additions & 37 deletions pyproject.toml

This file was deleted.

28 changes: 28 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[metadata]
name = lektor-tailwind
version = attr: lektor_tailwind.__version__
description = A Lektor plugin that adds Tailwind CSS to your project seamlessly.
license = MIT
author = Frost Ming
author_email = mianghong@gmail.com
url = https://github.com/frostming/lektor-tailwind
long_description = file: README.md
long_description_content_type = text/markdown
classifiers =
Development Status :: 4 - Beta
Framework :: Lektor
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9

[options]
install_requires = pytailwindcss>=0.1.4
python_requires = >=3.8
py_modules = lektor_tailwind
include_package_data = true

[options.entry_points]
lektor.plugins =
tailwind = lektor_tailwind:TailwindPlugin
39 changes: 1 addition & 38 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,3 @@
# -*- coding: utf-8 -*-
from setuptools import setup

long_description = None
INSTALL_REQUIRES = [
"pytailwindcss>=0.1.4",
]
ENTRY_POINTS = {
"lektor.plugins": [
"tailwind = lektor_tailwind:TailwindPlugin",
],
}

setup_kwargs = {
"name": "lektor-tailwind",
"version": "0.1",
"description": "",
"long_description": long_description,
"license": "MIT",
"author": "",
"author_email": "Frost Ming <mianghong@gmail.com>",
"maintainer": None,
"maintainer_email": None,
"url": "",
"package_data": {"": ["*"]},
"classifiers": [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
"install_requires": INSTALL_REQUIRES,
"python_requires": ">=3.8",
"entry_points": ENTRY_POINTS,
}


setup(**setup_kwargs)
setup()
2 changes: 1 addition & 1 deletion tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if ! which realpath > /dev/null; then
fi

project_root=$(dirname "$(dirname "$(realpath "$0")")")
copy_files=("setup.py" "lektor_tailwind.py" "README.md" "LICENSE")
copy_files=("setup.py" "setup.cfg" "lektor_tailwind.py" "README.md" "LICENSE")
cd "$(pwd)/example"

rm -fr packages
Expand Down

0 comments on commit 132e1a3

Please sign in to comment.