import requests
import requests_cache
+from version import paperdoorknob_version
-_headers = {
- 'User-Agent': 'paperdoorknob/0.0.1 (https://git.scottworley.com/paperdoorknob/)'}
+
+_headers = {'User-Agent': f'paperdoorknob/{paperdoorknob_version} ' +
+ '(https://git.scottworley.com/paperdoorknob/)'}
class Fetcher(ABC):
from setuptools import setup
+from version import paperdoorknob_version
+
setup(
name='paperdoorknob',
- version='0.0.1',
+ version=paperdoorknob_version,
description="Print glowfic",
author="Scott Worley",
author_email="scottworley@scottworley.com",
'paperdoorknob',
'spec',
'texify',
+ 'version',
],
license="GPL-3.0",
entry_points={'console_scripts': ['paperdoorknob = paperdoorknob:main']},