diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..4b971db --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,24 @@ +name: Upload The polyglots Package +on: + release: + types: [created] +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: donno2048 + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..caccca7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020 Elisha Hollander + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 7871d13..17eddb2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ To use it just do: ```py -py __main.py__ InputFile1.ext1 InputFile2.ext2 outputfile +py -m polyglots InputFile1.ext1 InputFile2.ext2 outputfile ``` +in the folder your input files are in \ No newline at end of file diff --git a/__init__.py b/polyglots/__init__.py similarity index 100% rename from __init__.py rename to polyglots/__init__.py diff --git a/__main__.py b/polyglots/__main__.py similarity index 100% rename from __main__.py rename to polyglots/__main__.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0ad7899 --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +from setuptools import setup,find_packages +setup( + name='polyglots', + version='1.0.0', + description='Create polyglots for different file types', + long_description=open('README.md').read(), + long_description_content_type="text/markdown", + url='https://github.com/donno2048/polyglots', + packages=find_packages(), + license='MIT', + author='Elisha Hollander', + classifiers=['Programming Language :: Python :: 3'], +) \ No newline at end of file