Skip to content

Commit ebffb4e

Browse files
committed
More adjustments to project metadata
1 parent 069487d commit ebffb4e

5 files changed

Lines changed: 7 additions & 19 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cd xbox-webapi-python
6363
python -m venv venv
6464
source venv/bin/activate
6565
pip install -e .[dev]
66-
python setup.py develop
66+
pre-commit install
6767
```
6868

6969
4. Create a branch for local development::

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ clean-test: ## remove test and coverage artifacts
4848
rm -f .coverage
4949
rm -fr htmlcov/
5050

51-
lint: ## check style with flake8
51+
lint: ## check style with ruff
5252
ruff check --fix xbox
5353
ruff check --fix tests
5454

@@ -76,8 +76,7 @@ release: clean ## package and upload a release
7676
twine upload dist/*
7777

7878
dist: clean ## builds source and wheel package
79-
python setup.py sdist
80-
python setup.py bdist_wheel
79+
python -m build
8180
ls -l dist
8281

8382
install: clean ## install the package to the active Python's site-packages

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ exclude = [
9191
"_build",
9292
"buck-out",
9393
"build",
94+
"docs",
9495
"dist",
9596
"node_modules",
9697
"venv",

setup.cfg

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ current_version = 2.0.11
33
commit = True
44
tag = True
55

6-
[bumpversion:file:setup.py]
7-
search = version="{current_version}"
8-
replace = version="{new_version}"
6+
[bumpversion:file:pyproject.toml]
7+
search = version = "{current_version}"
8+
replace = version = "{new_version}"
99

1010
[bumpversion:file:xbox/webapi/__init__.py]
1111
search = __version__ = "{current_version}"
@@ -18,16 +18,6 @@ replace = release = '{new_version}'
1818
[bdist_wheel]
1919
universal = 1
2020

21-
[flake8]
22-
exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build,docs
23-
max-line-length = 88
24-
ignore =
25-
E501,
26-
W503,
27-
E203,
28-
D202,
29-
W504
30-
3121
[isort]
3222
profile = black
3323
force_sort_within_sections = true

tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
from tests.common import get_response
2424

25-
collect_ignore = ["setup.py"]
26-
2725

2826
@pytest_asyncio.fixture(scope="function")
2927
async def auth_mgr(event_loop):

0 commit comments

Comments
 (0)