Skip to content

Commit

Permalink
Modernize release procedures (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimizukawa authored Apr 20, 2024
1 parent 85329e3 commit cdeccfa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
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

0 comments on commit cdeccfa

Please sign in to comment.