Skip to content

Commit e24e5ee

Browse files
authored
Merge pull request #42 from sethblack/bugfixes
Bugfixes
2 parents 15b129b + 524de03 commit e24e5ee

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
beautifulsoup4==4.6.0
22
requests==2.20.0
3-
Jinja2==2.10
3+
Jinja2==2.10.1
44
urllib3==1.24.2
55
certifi==2018.11.29

seoanalyzer/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,9 @@ def calc_total_time():
674674

675675
if args.output_format == 'html':
676676
from jinja2 import Environment
677-
from jinja2 import FileSystemLoader
677+
from jinja2 import PackageLoader
678678

679-
env = Environment(loader=FileSystemLoader('templates'))
679+
env = Environment(loader=PackageLoader('seoanalyzer'))
680680
template = env.get_template('index.html')
681681
output_from_parsed_template = template.render(result=output)
682682
print(output_from_parsed_template)

setup.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,25 @@
44
# from distutils.command.install import install as _install
55

66
setup(
7-
name = 'pyseoanalyzer',
8-
version = '3.1.1',
9-
description = 'An SEO tool that gives you general Search Engine Optimization directions.',
10-
author = 'Seth Black',
11-
author_email = 'sblack@sethserver.com',
12-
url = 'https://github.com/sethblack/python-seo-analyzer',
13-
packages = find_packages(),
14-
keywords = ['search engine optimization', 'seo', 'website parser', 'crawler', 'scraper',],
7+
name='pyseoanalyzer',
8+
version='3.1.2',
9+
description='An SEO tool that gives you general Search Engine Optimization directions.',
10+
author='Seth Black',
11+
author_email='sblack@sethserver.com',
12+
url='https://github.com/sethblack/python-seo-analyzer',
13+
packages=find_packages(),
14+
keywords=['search engine optimization', 'seo', 'website parser', 'crawler', 'scraper',],
1515
package_data={'seoanalyzer': ['templates/index.html',]},
16-
include_package_data = True,
17-
install_requires = [
16+
include_package_data=True,
17+
install_requires=[
1818
'BeautifulSoup4', 'requests', 'jinja2', 'urllib3',
1919
],
20-
# no idea why this needed fixing, the diff says it didn't change...
21-
entry_points = {
20+
entry_points={
2221
'console_scripts' : [
2322
'seoanalyze = seoanalyzer.__main__:main'
2423
]
2524
},
26-
classifiers = [
25+
classifiers=[
2726
"Programming Language :: Python",
2827
"Programming Language :: Python :: 3",
2928
"Programming Language :: Python :: 3 :: Only",
@@ -37,8 +36,8 @@
3736
"Topic :: Text Processing",
3837
"Topic :: Internet :: WWW/HTTP",
3938
],
40-
zipsafe=False,
41-
long_description = """\
39+
zip_safe=False,
40+
long_description="""\
4241
SEOAnalyzer
4342
-----------
4443

0 commit comments

Comments
 (0)