import sys
import setuptools

with open("twarc/version.py") as f:
    exec(f.read())

with open("docs/README.md") as f:
    long_description = f.read()

with open("requirements.txt") as f:
    dependencies = f.read().split()

if __name__ == "__main__":
    setuptools.setup(
        name="twarc",
        version=version,
        url="https://github.com/docnow/twarc",
        author="Ed Summers",
        author_email="ehs@pobox.com",
        packages=["twarc"],
        description="Archive tweets from the command line",
        long_description=long_description,
        long_description_content_type="text/markdown",
        python_requires=">=3.3",
        install_requires=dependencies,
        setup_requires=["pytest-runner"],
        tests_require=[
            "pytest",
            "pytest-black",
            "python-dotenv",
            "pytz",
            "tomli",
        ],
        entry_points={
            "console_scripts": [
                "twarc = twarc.command:main",
                "twarc2 = twarc.command2:twarc2",
            ]
        },
    )

import sys
import setuptools

with open("twarc/version.py") as f:
    exec(f.read())

with open("docs/README.md") as f:
    long_description = f.read()

with open("requirements.txt") as f:
    dependencies = f.read().split()

if __name__ == "__main__":
    setuptools.setup(
        name="twarc",
        version=version,
        url="https://github.com/docnow/twarc",
        author="Ed Summers",
        author_email="ehs@pobox.com",
        packages=["twarc"],
        description="Archive tweets from the command line",
        long_description=long_description,
        long_description_content_type="text/markdown",
        python_requires=">=3.3",
        install_requires=dependencies,
        setup_requires=["pytest-runner"],
        tests_require=[
            "pytest",
            "pytest-black",
            "python-dotenv",
            "pytz",
            "tomli<2.0.0,>=0.2.6",
        ],
        entry_points={
            "console_scripts": [
                "twarc = twarc.command:main",
                "twarc2 = twarc.command2:twarc2",
            ]
        },
    )

--- 
+++ 
@@ -29,7 +29,7 @@
             "pytest-black",
             "python-dotenv",
             "pytz",
-            "tomli<2.0.0,>=0.2.6",
+            "tomli",
         ],
         entry_points={
             "console_scripts": [
Stop pinning tomli version for tests-require

This was to work around a temporary issue with black. Pinning
prevented using the latest black version, which is the first
stable version.
