Skip to content

Commit

Permalink
Improve: Setup.py and path arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Diego committed Mar 28, 2018
1 parent 2c19711 commit ce044ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions impysonator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .npl import found_impersonal
from .reader import read

origin = sys.argv[1]
origin = sys.argv[1] if len(sys.argv) > 1 else ""
files = read(origin)
imps = []

Expand All @@ -13,7 +13,7 @@ def main():
imps = found_impersonal(f.get_body())

if len(imps) == 0:
break
continue

print('\n\033[91m\033[1m> Arquivo:\033[0m \033[1m{}\033[0m'.format(f.path))

Expand Down
1 change: 1 addition & 0 deletions impysonator/reader/recursive.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

def recursive_read(topdir):
results = []
topdir = os.path.join(os.getcwd(), *topdir.split("/"))

for dirpath, dirnames, files in os.walk(topdir):
for name in files:
Expand Down
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

from setuptools import setup
from setuptools import setup, find_packages

setup(
name='impysonator',
version='0.1',
version='0.1.2',
description='Seja Impessoal!',
url='http://github.com/guidiego/impysonator',
author='Guiherme Diego',
author_email='guilherme.albino.francisco@gmail.com',
license='MIT',
packages=['impysonator'],
packages=find_packages(exclude=["*.tests"]),
zip_safe=False,
keywords='python impessoal paper artigo revisão review',
python_requires='>=3.6',
Expand All @@ -24,5 +24,9 @@
'console_scripts': [
'impysonator=impysonator:main',
],
},
project_urls={
'Bug Reports': 'https://github.com/guidiego/impysonator/issues',
'Source': 'https://github.com/guidiego/impysonator/'
}
)

0 comments on commit ce044ac

Please sign in to comment.