|
1 | 1 | from setuptools import setup
|
2 |
| -from index_generator import APP_URL, APP_VERSION, PACKAGE_NAME |
| 2 | +from index_generator import APP_URL, APP_VERSION, PACKAGE_NAME, LICENSE, AUTHOR, EMAIL, DESCRIPTION |
3 | 3 |
|
4 | 4 | with open("README.md", "r") as fh:
|
5 | 5 | LONG_DESC = fh.read()
|
6 | 6 |
|
7 | 7 | with open('requirements.txt') as f:
|
8 | 8 | REQUIREMENTS = [l for l in f.read().splitlines() if l]
|
9 | 9 |
|
| 10 | +with open('test_requirements.txt') as f: |
| 11 | + TEST_REQUIREMENTS = [l for l in f.read().splitlines() if l] |
| 12 | + |
10 | 13 | setup(
|
11 | 14 | name=PACKAGE_NAME,
|
12 | 15 | version=APP_VERSION,
|
|
19 | 22 | },
|
20 | 23 | include_package_data=True,
|
21 | 24 | url=APP_URL,
|
22 |
| - license='MIT', |
23 |
| - author='Bruce Zhang, Edward P', |
24 |
| - author_email='', |
25 |
| - description='Yet another index generator.', |
| 25 | + license=LICENSE, |
| 26 | + author=AUTHOR, |
| 27 | + author_email=EMAIL, |
| 28 | + description=DESCRIPTION, |
26 | 29 | long_description=LONG_DESC,
|
27 | 30 | long_description_content_type="text/markdown",
|
28 | 31 | keywords=['index', 'listing', 'directory'],
|
| 32 | + python_requires='>=3.5', |
29 | 33 | install_requires=REQUIREMENTS,
|
30 |
| - tests_require=['pytest'], |
| 34 | + tests_require=TEST_REQUIREMENTS, |
31 | 35 | entry_points={
|
32 | 36 | 'console_scripts': [
|
33 | 37 | 'index-generator=index_generator.__main__:main'
|
|
0 commit comments