Skip to content

Commit

Permalink
Merge pull request #61 from jpyams/master
Browse files Browse the repository at this point in the history
Add Windows support
  • Loading branch information
vilcans authored Aug 26, 2020
2 parents 9d972bf + d40956b commit bc719b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 0 additions & 6 deletions bin/screenplain

This file was deleted.

2 changes: 2 additions & 0 deletions bin/test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nosetests --nocapture --with-doctest --doctest-tests
pycodestyle --ignore=E402,W504 screenplain tests
5 changes: 5 additions & 0 deletions screenplain/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,10 @@ def main(args):
output.close()


def cli():
"""setup.py entry point for console scripts."""
main(sys.argv[1:])


if __name__ == '__main__':
main(sys.argv[1:])
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
package_data={
'screenplain.export': ['default.css']
},
scripts=[
'bin/screenplain'
],
entry_points={
'console_scripts': [
'screenplain = screenplain.main:cli'
]
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
Expand Down

0 comments on commit bc719b6

Please sign in to comment.