Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize release procedures #102

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Documentation = "https://sphinx-intl.readthedocs.io"
sphinx-intl = "sphinx_intl.commands:main"

[tool.setuptools]
zip-safe = false
include-package-data = true

[tool.setuptools.dynamic]
Expand All @@ -57,3 +56,7 @@ version = {attr = "sphinx_intl.__version__"}
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.mypy]
ignore_missing_imports = true
strict_optional = false
24 changes: 9 additions & 15 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# to bulid release:
# 1. COMMENT OUT `[egg_info]` section
# 2. $ pip install build
# 3. $ python -m build
# 1. initialize
# $ pip install -U build twine

# to test upload:
# 2. TEST build & release:
# $ rm -Rf build/
# $ python -m build
# $ twine upload --repository-url https://test.pypi.org/legacy/ dist/*

# to production upload:
# 3. PRODUCTION build & release:
# $ rm -Rf build/
# $ rm setup.cfg
# $ python -m build
# $ twine upload dist/*

[egg_info]
tag_build = dev
tag_date = true

[flake8]
;show-pep8=true
;show-source=true
max-line-length=95

[mypy]
ignore_missing_imports = True
strict_optional = False
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ deps=
docutils
wheel
commands={envpython} setup.py -q check -r -s sdist bdist_wheel

[flake8]
# show-pep8=true
# show-source=true
max-line-length=95