Skip to content

Commit

Permalink
Merge pull request #75 from scottwernervt/73/feature/twine-check
Browse files Browse the repository at this point in the history
Use twine check instead of setup.py check.
  • Loading branch information
scottwernervt authored Jan 21, 2021
2 parents 1626ebc + 4531e60 commit fd7651b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ commands = pytest {posargs}
extras =
check
commands =
python setup.py check --strict --metadata --restructuredtext
python setup.py sdist
twine check dist/*.tar.gz
check-manifest -v
[testenv:lint]
Expand Down
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,25 @@
"microsoft": ["azure==4.0.0"],
"minio": ["minio==4.0.0"],
"rackspace": ["openstacksdk<=0.17.2", "rackspacesdk==0.7.5", "requests>=2.19.1"],
"tests": ["flake8==3.8.4", "pytest==6.2.1", "prettyconf", "requests>=2.19.1"],
"tests": ["flake8==3.8.4", "prettyconf", "pytest==6.2.1", "requests>=2.19.1"],
"lint": [
"black==20.8b1",
"flake8==3.8.4",
"flake8-bugbear==20.11.1",
"flake8==3.8.4",
"pre-commit==2.9.3",
],
"check": [
"docutils==0.16",
"check-manifest==0.46",
"readme-renderer==28.0",
"docutils==0.16",
"pygments==2.7.4",
"readme-renderer==28.0",
"twine==3.3.0",
],
"docs": [
"pygments==2.7.4",
"sphinx==3.4.3",
"sphinx_rtd_theme==0.5.1",
"sphinx_autodoc_typehints==1.11.1",
"pygments==2.7.4",
"sphinx_rtd_theme==0.5.1",
],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]
Expand Down Expand Up @@ -81,6 +82,7 @@ def find_version(fname):
),
re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
),
long_description_content_type="text/x-rst",
author="Scott Werner",
author_email="scott.werner.vt@gmail.com",
url="https://github.com/scottwernervt/cloudstorage/",
Expand Down

0 comments on commit fd7651b

Please sign in to comment.