Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Knio committed Nov 5, 2023
1 parent 30d7ce5 commit 79bdae4
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python-version: ${{ matrix.python }}
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
# python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install mock
python -m pip install flake8
Expand All @@ -44,7 +44,7 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics
- name: "Build and test"
run: |
python -m build -s
python -m build --no-isolation
pip install dist/dominate*.tar.gz
pytest
- name: Coveralls
Expand Down
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include README.md
include LICENSE.txt
include pyproject.toml
include setup/setup.py
recursive-include tests *
global-exclude __pycache__
global-exclude *.pyc
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
test:
python2 -m pytest .
-python2 -m pytest .
python3 -m pytest .

publish: clean test
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/*

clean:
-rm dist/ -r
-rm build/ -r
-rm *.egg-info/ -r
2 changes: 1 addition & 1 deletion dominate/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.8.0'
__version__ = '2.9.0'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools>=62"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[metadata]
license_file = LICENSE.txt
license_files = ["LICENSE.txt"]

[bdist_wheel]
universal=1

14 changes: 1 addition & 13 deletions tests/test_dominate.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
import pytest

import dominate
from dominate import tags
from dominate import util

def test_version():
import dominate
version = '2.8.0'
version = '2.9.0'
assert dominate.version == version
assert dominate.__version__ == version


def test_context():
id1 = dominate.dom_tag._get_thread_context()
id2 = dominate.dom_tag._get_thread_context()
assert id1 == id2

9 changes: 6 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import pytest

import dominate
from dominate.tags import *
from dominate import util


def test_context():
id1 = dominate.dom_tag._get_thread_context()
id2 = dominate.dom_tag._get_thread_context()
assert id1 == id2

def test_include():
import os
try:
Expand Down Expand Up @@ -53,4 +57,3 @@ def test_container():
'''<div>
<h1>a</h1>
</div>'''

0 comments on commit 79bdae4

Please sign in to comment.