Added setup.py and moved files
This commit is contained in:
parent
4c2d12b1cf
commit
a3254cebee
5
padpo/__init__.py
Normal file
5
padpo/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__author__ = """Vincent Poulailleau"""
|
||||
__email__ = "vpoulailleau@gmail.com"
|
||||
__version__ = "0.0.1"
|
3
padpo/__main__.py
Normal file
3
padpo/__main__.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__import__("padpo.padpo").padpo.main()
|
|
@ -432,7 +432,7 @@ def pull_request_files(pull_request):
|
|||
return temp_dir, pr
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Linter for *.po files.")
|
||||
parser.add_argument("-v", "--verbose", action="count", default=0)
|
||||
files = parser.add_mutually_exclusive_group()
|
39
setup.py
Normal file
39
setup.py
Normal file
|
@ -0,0 +1,39 @@
|
|||
import setuptools
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
|
||||
name='padpo',
|
||||
|
||||
version='0.1',
|
||||
|
||||
author="Vincent Poulailleau",
|
||||
|
||||
author_email="vpoulailleau@gmail.com",
|
||||
|
||||
description="Linter for gettext files",
|
||||
|
||||
long_description=long_description,
|
||||
|
||||
long_description_content_type="text/markdown",
|
||||
|
||||
url="https://github.com/vpoulailleau/padpo",
|
||||
|
||||
packages=["padpo"],
|
||||
package_dir={"padpo": "padpo"},
|
||||
entry_points={"console_scripts": ["padpo=padpo.padpo:main"]},
|
||||
|
||||
install_requires=[
|
||||
'simplelogging', 'wheel', 'requests'
|
||||
],
|
||||
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
# TODO: Add more
|
||||
],
|
||||
|
||||
)
|
Loading…
Reference in New Issue
Block a user