Skip to content

Commit

Permalink
Merge pull request #42 from sethblack/bugfixes
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
sethblack authored Oct 10, 2019
2 parents 15b129b + 524de03 commit e24e5ee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
beautifulsoup4==4.6.0
requests==2.20.0
Jinja2==2.10
Jinja2==2.10.1
urllib3==1.24.2
certifi==2018.11.29
4 changes: 2 additions & 2 deletions seoanalyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,9 @@ def calc_total_time():

if args.output_format == 'html':
from jinja2 import Environment
from jinja2 import FileSystemLoader
from jinja2 import PackageLoader

env = Environment(loader=FileSystemLoader('templates'))
env = Environment(loader=PackageLoader('seoanalyzer'))
template = env.get_template('index.html')
output_from_parsed_template = template.render(result=output)
print(output_from_parsed_template)
Expand Down
29 changes: 14 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,25 @@
# from distutils.command.install import install as _install

setup(
name = 'pyseoanalyzer',
version = '3.1.1',
description = 'An SEO tool that gives you general Search Engine Optimization directions.',
author = 'Seth Black',
author_email = 'sblack@sethserver.com',
url = 'https://github.com/sethblack/python-seo-analyzer',
packages = find_packages(),
keywords = ['search engine optimization', 'seo', 'website parser', 'crawler', 'scraper',],
name='pyseoanalyzer',
version='3.1.2',
description='An SEO tool that gives you general Search Engine Optimization directions.',
author='Seth Black',
author_email='sblack@sethserver.com',
url='https://github.com/sethblack/python-seo-analyzer',
packages=find_packages(),
keywords=['search engine optimization', 'seo', 'website parser', 'crawler', 'scraper',],
package_data={'seoanalyzer': ['templates/index.html',]},
include_package_data = True,
install_requires = [
include_package_data=True,
install_requires=[
'BeautifulSoup4', 'requests', 'jinja2', 'urllib3',
],
# no idea why this needed fixing, the diff says it didn't change...
entry_points = {
entry_points={
'console_scripts' : [
'seoanalyze = seoanalyzer.__main__:main'
]
},
classifiers = [
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
Expand All @@ -37,8 +36,8 @@
"Topic :: Text Processing",
"Topic :: Internet :: WWW/HTTP",
],
zipsafe=False,
long_description = """\
zip_safe=False,
long_description="""\
SEOAnalyzer
-----------
Expand Down

0 comments on commit e24e5ee

Please sign in to comment.