xstatic-moment-timezone/setup.py
Sean McGinnis 0da13ca23a
Fix README to be proper RST syntax
The README file was in RST, but had a formatting issue with the title.
The usage of the README is setup was incorrectly setting the content
type to markdown, rather than RST. This seems to have caused our twine
check to validate the package as fine, but PyPi apparently checks
package metadata a different way and rejected the package upload due to
issues with the README file.

This corrects the RST syntax, renames the file from txt to rst to
accurately reflect its content type, and updates the settings up
setup.py to correctly report the content as RST.

Change-Id: I5135a709410372aa938446563e8eca70b5eea985
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-07-27 10:06:23 -05:00

27 lines
795 B
Python

from setuptools import setup, find_packages
from xstatic.pkg import moment_timezone as xs
# The README.txt file should be written in reST so that PyPI can use
# it to generate your project's PyPI page.
long_description = open('README.rst').read()
setup(
name=xs.PACKAGE_NAME,
version=xs.PACKAGE_VERSION,
description=xs.DESCRIPTION,
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=xs.CLASSIFIERS,
keywords=xs.KEYWORDS,
maintainer=xs.MAINTAINER,
maintainer_email=xs.MAINTAINER_EMAIL,
license=xs.LICENSE,
url=xs.HOMEPAGE,
platforms=xs.PLATFORMS,
packages=find_packages(),
namespace_packages=['xstatic', 'xstatic.pkg'],
include_package_data=True,
zip_safe=False,
install_requires=[],
)