GeezerVison is showing github.com — [QUESTION] Check validity of `setup.py` in build · Issue #2446 · googleapis/google-cloud-python
[QUESTION] Check validity of setup.py in build #2446
Description
H/T to http://inre.dundeemt.com/2014-05-17/pypi-setup-py-keeping-a-dry-long_description/ (I was Googling around for DRY in setup.py)
python setup.py check --restructuredtext --strict
For example, running it on the post #2442 version gives:
$ python setup.py check --restructuredtext --strict
running check
warning: check: Duplicate implicit target name: "contributing".
warning: check: Duplicate implicit target name: "license".
error: Please correct your package.
because we have sections named license and contributing as well as links with those names. This could be fixed via
diff --git a/README.rst b/README.rst
index 715368b..bbf0f72 100644
--- a/README.rst
+++ b/README.rst
@@ -96,16 +96,16 @@ Contributing
Contributions to this library are always welcome and highly encouraged.
-See `CONTRIBUTING`_ for more information on how to get started.
+`See CONTRIBUTING`_ for more information on how to get started.
-.. _CONTRIBUTING: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/CONTRIBUTING.rst
+.. _See CONTRIBUTING: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/CONTRIBUTING.rst
License
-------
-Apache 2.0 - See `LICENSE`_ for more information.
+Apache 2.0 - `See LICENSE`_ for more information.
-.. _LICENSE: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/LICENSE
+.. _See LICENSE: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/LICENSE
.. |build| image:: https://travis-ci.org/GoogleCloudPlatform/google-cloud-python.svg?branch=master
:target: https://travis-ci.org/GoogleCloudPlatform/google-cloud-pythonActivity
theacodes commented on Apr 19, 2017
We should do this. Google-auth does it.
dhermes commented on Apr 19, 2017
ContributorAuthor
More actions
@jonparrott Jinx! I'm going to send a PR for adding this to nox -e lint for the subpackages. Should I add a nox -e lint for the top-level package?
lukesneeringer commented on Apr 19, 2017
I would prefer it be a separate nox session if possible.
added a commit that references this issue
on Apr 20, 2017This issue will close once commit b66f17e is merged into the 'master' branch.b66f17e added a commit that references this issue
on Apr 20, 2017This issue will close once commit 8a950b4 is merged into the 'main' branch.8a950b4 added a commit that references this issue
on May 6, 2017This issue will close once commit 4c17230 is merged into the 'master' branch.4c17230 added a commit that references this issue
on Apr 3, 2023This issue will close once commit 38c2192 is merged into the 'main' branch.38c2192 added a commit that references this issue
on Jul 6, 2023This issue will close once commit b50089c is merged into the 'main' branch.b50089c added 4 commits that reference this issue
on Oct 21, 2023This issue will close once commit 8a712f6 is merged into the 'main' branch.8a712f6 This issue will close once commit ee1cc86 is merged into the 'main' branch.ee1cc86 This issue will close once commit 311a4e3 is merged into the 'main' branch.311a4e3 This issue will close once commit 3a008e3 is merged into the 'main' branch.3a008e3 added 6 commits that reference this issue
on Nov 22, 2025This issue will close once commit e6282c9 is merged into the 'main' branch.e6282c9 This issue will close once commit 065ec4e is merged into the 'main' branch.065ec4e This issue will close once commit 20eec54 is merged into the 'main' branch.20eec54 This issue will close once commit b18224e is merged into the 'main' branch.b18224e This issue will close once commit c980023 is merged into the 'main' branch.c980023 This issue will close once commit fe0063e is merged into the 'main' branch.fe0063e added a commit that references this issue
on Mar 2, 2026This issue will close once commit 4da4b4b is merged into the 'main' branch.4da4b4b added 2 commits that reference this issue
on Mar 9, 2026This issue will close once commit 77a74cb is merged into the 'main' branch.77a74cb This issue will close once commit 6a5a538 is merged into the 'main' branch.6a5a538
Metadata
Metadata
Development
No branches or pull requestsIssue actions