Skip to content

Commit

Permalink
Rename project to gmail-yaml-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
mesozoic committed Oct 29, 2015
1 parent ee7092c commit 6fa9b15
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Empty file added gmail_yaml_filters/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion filtergen.py → gmail_yaml_filters/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def ruleset_to_xml(ruleset):
return etree.tostring(dom, pretty_print=True, encoding='utf8').decode('utf8')


if __name__ == '__main__':
def main():
with open(sys.argv[1]) as inputf:
data = yaml.safe_load(inputf.read())

Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@


setup(
name='filtergen',
name='gmail-yaml-filters',
entry_points={
'console_scripts': [
'gmail-yaml-filters = gmail_yaml_filters.main:main',
],
},
)
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
project = filtergen
project = gmail-yaml-filters
envlist = py27

[testenv]
Expand All @@ -8,8 +8,8 @@ deps =
flake8
pytest
commands =
py.test --verbose --doctest-modules filtergen.py
flake8 filtergen.py
py.test --verbose --doctest-modules gmail_yaml_filters
flake8 gmail_yaml_filters

[flake8]
max-line-length = 131

0 comments on commit 6fa9b15

Please sign in to comment.