Skip to content

Commit

Permalink
Updated development requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
wummel committed Jun 19, 2024
1 parent 4c43466 commit d5f2a54
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ force-sort-within-sections = false

[lint.pydocstyle]
convention = "google"

[format]
quote-style = "preserve"
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ HOMEPAGE:=$(HOME)/public_html/patool-webpage.git
WEBMETA:=doc/web/source/conf.py
CHANGELOG:=doc/changelog.txt
GIT_MAIN_BRANCH:=master
PIP_VERSION:=23.3.2
PIP_VERSION:=24.0
# Pytest options:
# -s: do not capture stdout/stderr (some tests fail otherwise)
# --full-trace: print full stacktrace on keyboard interrupts
Expand Down Expand Up @@ -87,17 +87,16 @@ upload: ## upload a new release to pypi
twine upload --config-file $(XDG_CONFIG_HOME)/pypirc \
dist/$(ARCHIVE_SOURCE) dist/$(ARCHIVE_WHEEL)

.PHONY: tag
tag: ## add and push a git version tag for a released version
git tag upstream/$(VERSION)
git push --tags origin upstream/$(VERSION)
.PHONY: hub
hub: ## add and push a github release
hub release create -a dist/$(ARCHIVE_SOURCE) -a dist/$(ARCHIVE_WHEEL) upstream/$(VERSION)

# Make a new release by calling all the distinct steps in the correct order.
# Each step is a separate target so that it's easy to do this manually if
# anything screwed up.
.PHONY: release
release: distclean releasecheck ## release a new version of patool
$(MAKE) dist upload homepage tag github-issues
$(MAKE) dist hub upload homepage github-issues

.PHONY: releasecheck
releasecheck: checkgit checkchangelog lint test ## check that repo is ready for release
Expand Down Expand Up @@ -153,11 +152,11 @@ checkchangelog: ## check changelog before release

.PHONY: lint
lint: ## lint python code
ruff setup.py patoolib tests doc/web/source
ruff check setup.py patoolib tests doc/web/source

.PHONY: reformat
reformat: ## fix linting errors automatically
ruff --fix setup.py patoolib tests doc/web/source
ruff check --fix setup.py patoolib tests doc/web/source

.PHONY: checkoutdated
checkoutdated: ## Check for outdated Python requirements
Expand Down
8 changes: 4 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# these modules are only needed for development

# for testing
pytest==8.0.0
pytest==8.1.1

# for python code linting
ruff==0.2.0
ruff==0.3.3

# for generating a Python .whl file
wheel==0.42.0
wheel==0.43.0

# for uploading releases
twine==4.0.2
twine==5.0.0

# for generating the web page
Sphinx==7.2.6
Expand Down

0 comments on commit d5f2a54

Please sign in to comment.