Skip to content

Commit

Permalink
switch to pep517 build
Browse files Browse the repository at this point in the history
  • Loading branch information
yagebu committed Jan 9, 2022
1 parent e26694f commit c71a7c7
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 58 deletions.
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
dist
build
.tox
*.egg-info
*.pyc
*.pyo
*.egg-info
.cache

.DS_Store

.cache
.coverage
.eggs
.tox
build
dist
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
test:
tox -e py
tox
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
33 changes: 28 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
[bdist_wheel]
universal=1
[metadata]
name = lektor-atom
author = A. Jesse Jiryu Davis
author_email = [email protected]
description = Lektor plugin that generates Atom feeds.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/lektor/lektor-atom
keywords = Lektor, plugin, static-site, blog, atom, rss
license = MIT
classifiers =
Environment :: Plugins
Environment :: Web Environment
Framework :: Lektor
Intended Audience :: Developers
License :: OSI Approved :: MIT License

[check-manifest]
ignore =
.coverage
[options]
install_requires=
MarkupSafe
feedgenerator
py_modules = lektor_atom
setup_requires =
setuptools >= 45
setuptools_scm >= 6

[options.entry_points]
lektor.plugins =
atom = lektor_atom:AtomPlugin
40 changes: 0 additions & 40 deletions setup.py

This file was deleted.

9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
minversion = 3
envlist = py,build-dist
isolated_build = True

[testenv]
commands = pytest {posargs:tests}
Expand All @@ -10,12 +11,10 @@ deps =
pytest

[testenv:build-dist]
skip_install = True
deps =
check-manifest
build
twine
wheel
setuptools
commands =
check-manifest
python setup.py sdist bdist_wheel
python -m build .
twine check dist/*

0 comments on commit c71a7c7

Please sign in to comment.