Skip to content

Commit bedb6e1

Browse files
update setup.py
1 parent ffbf4b7 commit bedb6e1

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

index_generator/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
APP_VERSION = '0.1'
33
APP_URL = 'https://github.com/BruceZhang1993/index-generator'
44
PACKAGE_NAME = 'index-generator'
5+
LICENSE = 'MIT'
6+
AUTHOR = 'Bruce Zhang, Edward P'
7+
EMAIL = ''
8+
DESCRIPTION = 'Yet another index generator.'

setup.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
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
33

44
with open("README.md", "r") as fh:
55
LONG_DESC = fh.read()
66

77
with open('requirements.txt') as f:
88
REQUIREMENTS = [l for l in f.read().splitlines() if l]
99

10+
with open('test_requirements.txt') as f:
11+
TEST_REQUIREMENTS = [l for l in f.read().splitlines() if l]
12+
1013
setup(
1114
name=PACKAGE_NAME,
1215
version=APP_VERSION,
@@ -19,15 +22,16 @@
1922
},
2023
include_package_data=True,
2124
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,
2629
long_description=LONG_DESC,
2730
long_description_content_type="text/markdown",
2831
keywords=['index', 'listing', 'directory'],
32+
python_requires='>=3.5',
2933
install_requires=REQUIREMENTS,
30-
tests_require=['pytest'],
34+
tests_require=TEST_REQUIREMENTS,
3135
entry_points={
3236
'console_scripts': [
3337
'index-generator=index_generator.__main__:main'

test_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest

0 commit comments

Comments
 (0)