Skip to content

Commit

Permalink
Merge pull request #648 from pganssle/setup_readme
Browse files Browse the repository at this point in the history
Add README.rst as long_description
  • Loading branch information
pganssle committed Mar 24, 2018
2 parents 261e9d5 + 52d2f7c commit 5bdea8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog.d/648.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added README contents to the setup.py metadata. (gh pr #648)
16 changes: 10 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
if isfile("MANIFEST"):
os.unlink("MANIFEST")

PACKAGES = find_packages(where='.', exclude=['dateutil.test'])

if LooseVersion(setuptools.__version__) <= LooseVersion("24.3"):
warnings.warn("python_requires requires setuptools version > 24.3",
UserWarning)
Expand All @@ -24,6 +22,14 @@ def run(self):
print("Running 'test' with setup.py is not supported. "
"Use 'pytest' or 'tox' to run the tests.")

###
# Load metadata
PACKAGES = find_packages(where='.', exclude=['dateutil.test'])

def README():
with open('README.rst') as f:
return f.read()
README = README()

setup(name="python-dateutil",
use_scm_version={
Expand All @@ -36,10 +42,8 @@ def run(self):
maintainer_email="dateutil@python.org",
url="https://dateutil.readthedocs.io",
license="Dual License",
long_description="""
The dateutil module provides powerful extensions to the
datetime module available in the Python standard library.
""",
long_description=README,
long_description_content_type='text/x-rst',
packages=PACKAGES,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]},
Expand Down

0 comments on commit 5bdea8d

Please sign in to comment.