old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import sys
  import shutil
  
  from setuptools import setup
  
  
  pkg_name = "mettoolbox"
  
  version = open("VERSION").readline().strip()
  
  if sys.argv[-1] == "publish":
      os.system("python setup.py sdist")
  
      # The following block of code is to set the timestamp on files to
      # 'now', otherwise ChromeOS/google drive sets to 1970-01-01 and then
      # no one can install it because zip doesn't support dates before
      # 1980.
      os.chdir("dist")
      os.system("tar xvzf {pkg_name}-{version}.tar.gz".format(**locals()))
      os.system("find {pkg_name}-{version}* -exec touch {{}} \\;".format(**locals()))
      os.system(
          "tar czf {pkg_name}-{version}.tar.gz {pkg_name}-{version}".format(**locals())
      )
      shutil.rmtree("{pkg_name}-{version}".format(**locals()))
      os.chdir("..")
  
      os.system("twine upload dist/{pkg_name}-{version}.tar.gz".format(**locals()))
      sys.exit()
  
  README = open("./README.rst").read()
  
  install_requires = [
      # http://packages.python.org/distribute/setuptools.html#declaring-dependencies
      "tstoolbox",
  ]
  
  setup_requires = []
  
  setup(
      name=pkg_name,
      version=version,
      description="mettoolbox is set of command line and Python tools for the analysis and reporting of meteorological data.",
      long_description=README,
      license="BSD",
      classifiers=[
          # Get strings from
          # http://pypi.python.org/pypi?%3Aaction=list_classifiers
          "Development Status :: 5 - Production/Stable",
          "Intended Audience :: Science/Research",
          "Intended Audience :: End Users/Desktop",
          "Intended Audience :: Developers",
          "Environment :: Console",
          "License :: OSI Approved :: BSD License",
          "Natural Language :: English",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 3",
          "Topic :: Scientific/Engineering :: Information Analysis",
          "Topic :: Scientific/Engineering",
          "Topic :: Software Development :: Libraries :: Python Modules",
      ],
      keywords="time_series",
      author="Tim Cera, P.E.",
      author_email="tim@cerazone.net",
      url="http://timcera.bitbucket.io/{pkg_name}/docsrc/index.html".format(**locals()),
      packages=[
          "{pkg_name}".format(**locals()),
          "{pkg_name}.melodist.melodist".format(**locals()),
          "{pkg_name}.melodist.melodist.util".format(**locals()),
      ],
      include_package_data=True,
      zip_safe=False,
      setup_requires=setup_requires,
      install_requires=install_requires,
      entry_points={
          "console_scripts": ["{pkg_name}={pkg_name}.{pkg_name}:main".format(**locals())]
      },
      test_suite="tests",
      python_requires=">=3.6",
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import sys
  
  from setuptools import setup
  
  
  pkg_name = "mettoolbox"
  
  version = open("VERSION").readline().strip()
  
  if sys.argv[-1] == "publish":
      os.system("python setup.py sdist")
      os.system("twine upload dist/{pkg_name}-{version}.tar.gz".format(**locals()))
      sys.exit()
  
  README = open("README.rst").read()
  
  install_requires = [
      # List your project dependencies here.
      # For more details, see:
      # http://packages.python.org/distribute/setuptools.html#declaring-dependencies
      "tstoolbox",
  ]
  
  setup(
      name=pkg_name,
      version=version,
      description="mettoolbox is set of command line and Python tools for the analysis and reporting of meteorological data.",
      long_description=README,
      classifiers=[
          # Get strings from
          # http://pypi.python.org/pypi?%3Aaction=list_classifiers
          "Development Status :: 5 - Production/Stable",
          "Intended Audience :: Science/Research",
          "Intended Audience :: End Users/Desktop",
          "Intended Audience :: Developers",
          "Environment :: Console",
          "License :: OSI Approved :: BSD License",
          "Natural Language :: English",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 3.6",
          "Programming Language :: Python :: 3.7",
          "Programming Language :: Python :: 3.8",
          "Topic :: Scientific/Engineering :: Information Analysis",
          "Topic :: Scientific/Engineering",
          "Topic :: Software Development :: Libraries :: Python Modules",
      ],
      keywords="time_series",
      author="Tim Cera, P.E.",
      author_email="tim@cerazone.net",
      url="http://timcera.bitbucket.io/{pkg_name}/docsrc/index.html".format(**locals()),
      license="BSD",
      packages=[
          "{pkg_name}".format(**locals()),
          "{pkg_name}.melodist.melodist".format(**locals()),
          "{pkg_name}.melodist.melodist.util".format(**locals()),
      ],
      include_package_data=True,
      zip_safe=False,
      install_requires=install_requires,
      entry_points={
          "console_scripts": ["{pkg_name}={pkg_name}.{pkg_name}:main".format(**locals())]
      },
      test_suite="tests",
      python_requires=">=3.6",
  )
  
subject: Normalize to tsttoolbox/setup.py.