Skip to content

Commit

Permalink
More adjustments to project metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed Nov 25, 2023
1 parent 069487d commit ebffb4e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cd xbox-webapi-python
python -m venv venv
source venv/bin/activate
pip install -e .[dev]
python setup.py develop
pre-commit install
```

4. Create a branch for local development::
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ clean-test: ## remove test and coverage artifacts
rm -f .coverage
rm -fr htmlcov/

lint: ## check style with flake8
lint: ## check style with ruff
ruff check --fix xbox
ruff check --fix tests

Expand Down Expand Up @@ -76,8 +76,7 @@ release: clean ## package and upload a release
twine upload dist/*

dist: clean ## builds source and wheel package
python setup.py sdist
python setup.py bdist_wheel
python -m build
ls -l dist

install: clean ## install the package to the active Python's site-packages
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ exclude = [
"_build",
"buck-out",
"build",
"docs",
"dist",
"node_modules",
"venv",
Expand Down
16 changes: 3 additions & 13 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ current_version = 2.0.11
commit = True
tag = True

[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"
[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

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

[flake8]
exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build,docs
max-line-length = 88
ignore =
E501,
W503,
E203,
D202,
W504

[isort]
profile = black
force_sort_within_sections = true
Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

from tests.common import get_response

collect_ignore = ["setup.py"]


@pytest_asyncio.fixture(scope="function")
async def auth_mgr(event_loop):
Expand Down

0 comments on commit ebffb4e

Please sign in to comment.