| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,14 +30,14 @@ ci: test_coverage lint | |||
| 30 | 30 | lint: $(LINT_TARGETS) | |
| 31 | 31 | ||
| 32 | 32 | flake8: | |
| 33 | - flake8 --max-line-length=$(MAX_LINE_LENGTH) examples *.py | ||
| 33 | + flake8 --max-line-length=$(MAX_LINE_LENGTH) setup.py examples zeroconf | ||
| 34 | 34 | ||
| 35 | 35 | .PHONY: black_check | |
| 36 | 36 | black_check: | |
| 37 | - black --check *.py examples | ||
| 37 | + black --check setup.py examples zeroconf | ||
| 38 | 38 | ||
| 39 | 39 | mypy: | |
| 40 | - mypy examples/*.py test_zeroconf.py zeroconf.py | ||
| 40 | + mypy examples/*.py zeroconf/*.py | ||
| 41 | 41 | ||
| 42 | 42 | test: | |
| 43 | 43 | nosetests -v $(TEST_ARGS) | |
@@ -46,4 +46,4 @@ test_coverage: | |||
| 46 | 46 | nosetests -v --with-coverage --cover-package=zeroconf $(TEST_ARGS) | |
| 47 | 47 | ||
| 48 | 48 | autopep8: | |
| 49 | - autopep8 --max-line-length=$(MAX_LINE_LENGTH) -i examples *.py | ||
| 49 | + autopep8 --max-line-length=$(MAX_LINE_LENGTH) -i setup.py examples zeroconf | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | readme = f.read() | |
| 10 | 10 | ||
| 11 | 11 | version = ( | |
| 12 | - [l for l in open(join(PROJECT_ROOT, 'zeroconf.py')) if '__version__' in l][0] | ||
| 12 | + [l for l in open(join(PROJECT_ROOT, 'zeroconf', '__init__.py')) if '__version__' in l][0] | ||
| 13 | 13 | .split('=')[-1] | |
| 14 | 14 | .strip() | |
| 15 | 15 | .strip('\'"') | |
@@ -22,7 +22,8 @@ | |||
| 22 | 22 | long_description=readme, | |
| 23 | 23 | author='Paul Scott-Murphy, William McBrine, Jakub Stasiak', | |
| 24 | 24 | url='https://github.com/jstasiak/python-zeroconf', | |
| 25 | - py_modules=['zeroconf'], | ||
| 25 | + package_data={"zeroconf": ["py.typed"]}, | ||
| 26 | + packages=["zeroconf"], | ||
| 26 | 27 | platforms=['unix', 'linux', 'osx'], | |
| 27 | 28 | license='LGPL', | |
| 28 | 29 | zip_safe=False, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments