Skip to content

Commit cdeccfa

Browse files
authored
Modernize release procedures (#102)
1 parent 85329e3 commit cdeccfa

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Documentation = "https://sphinx-intl.readthedocs.io"
4848
sphinx-intl = "sphinx_intl.commands:main"
4949

5050
[tool.setuptools]
51-
zip-safe = false
5251
include-package-data = true
5352

5453
[tool.setuptools.dynamic]
@@ -57,3 +56,7 @@ version = {attr = "sphinx_intl.__version__"}
5756
[build-system]
5857
requires = ["setuptools", "wheel"]
5958
build-backend = "setuptools.build_meta"
59+
60+
[tool.mypy]
61+
ignore_missing_imports = true
62+
strict_optional = false

setup.cfg

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
# to bulid release:
2-
# 1. COMMENT OUT `[egg_info]` section
3-
# 2. $ pip install build
4-
# 3. $ python -m build
1+
# 1. initialize
2+
# $ pip install -U build twine
53

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

9-
# to production upload:
9+
# 3. PRODUCTION build & release:
10+
# $ rm -Rf build/
11+
# $ rm setup.cfg
12+
# $ python -m build
1013
# $ twine upload dist/*
1114

1215
[egg_info]
1316
tag_build = dev
1417
tag_date = true
15-
16-
[flake8]
17-
;show-pep8=true
18-
;show-source=true
19-
max-line-length=95
20-
21-
[mypy]
22-
ignore_missing_imports = True
23-
strict_optional = False

tox.ini

+5
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ deps=
3838
docutils
3939
wheel
4040
commands={envpython} setup.py -q check -r -s sdist bdist_wheel
41+
42+
[flake8]
43+
# show-pep8=true
44+
# show-source=true
45+
max-line-length=95

0 commit comments

Comments
 (0)