Skip to content

Commit

Permalink
cleanup (#212)
Browse files Browse the repository at this point in the history
3.0rc
  • Loading branch information
Knio authored Dec 31, 2024
1 parent bdbdb8e commit b268b8b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 91 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,9 @@ jobs:
python-version: ${{ matrix.python }}
- name: "Install dependencies"
run: |
# python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install flake8
python -m pip install importlib_metadata
python -m pip install "setuptools>=62"
python -m pip install wheel
python -m pip install build
- name: "Lint with flake8"
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics
python -m pip install "setuptools>=75"
- name: "Build and test"
run: |
python -m build --no-isolation
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include README.md
include LICENSE.txt
include CONTRIBUTING.md
include pyproject.toml
include setup/setup.py
recursive-include tests *
global-exclude __pycache__
global-exclude *.pyc
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ test:
test-community:
python3 -m pytest .

publish_old: clean test
python3 setup/setup.py sdist
python3 setup/setup.py bdist_wheel
python3 -m twine upload dist/*

publish: clean test
python3 -m build --no-isolation
python3 -m twine upload dist/*
Expand Down
4 changes: 1 addition & 3 deletions dominate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
from ._version import __version__
version = __version__

from .version import __version__, version
from .document import document
1 change: 0 additions & 1 deletion dominate/_version.py

This file was deleted.

1 change: 1 addition & 0 deletions dominate/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = __version__ = '3.0.0'
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[build-system]
requires = ["setuptools>=62"]
build-backend = "setuptools.build_meta"

[project]
name = "dominate"
description = "Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API."
Expand All @@ -10,7 +6,7 @@ authors = [
{name = "Tom Flanagan", email = "[email protected]"},
{name = "Jake Wharton"},
]
requires-python = ">=3.7"
requires-python = ">=3.9"
keywords = ["framework", "templating", "template", "html", "xhtml", "python", "html5"]
license = {text = "LGPL-3.0-or-newer"}
classifiers = [
Expand All @@ -19,12 +15,11 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand All @@ -36,8 +31,13 @@ dynamic = ["version"]
Homepage = "https://github.com/Knio/dominate"
Source = "https://github.com/Knio/dominate"


[build-system]
requires = ["setuptools>=75"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["dominate"]

[tool.setuptools.dynamic]
version = {attr = "dominate._version.__version__"}
version = {attr = "dominate.version.version"}
63 changes: 0 additions & 63 deletions setup/setup.py

This file was deleted.

0 comments on commit b268b8b

Please sign in to comment.