Skip to content

Commit 0d8552a

Browse files
committed
PyPi configured
1 parent d547985 commit 0d8552a

File tree

6 files changed

+58
-1
lines changed

6 files changed

+58
-1
lines changed

.github/workflows/python-publish.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Upload The polyglots Package
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: '3.x'
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install setuptools wheel twine
18+
- name: Build and publish
19+
env:
20+
TWINE_USERNAME: donno2048
21+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
22+
run: |
23+
python setup.py sdist bdist_wheel
24+
twine upload dist/*

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2020 Elisha Hollander
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
To use it just do:
22
```py
3-
py __main.py__ InputFile1.ext1 InputFile2.ext2 outputfile
3+
py -m polyglots InputFile1.ext1 InputFile2.ext2 outputfile
44
```
5+
in the folder your input files are in
File renamed without changes.
File renamed without changes.

setup.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from setuptools import setup,find_packages
2+
setup(
3+
name='polyglots',
4+
version='1.0.0',
5+
description='Create polyglots for different file types',
6+
long_description=open('README.md').read(),
7+
long_description_content_type="text/markdown",
8+
url='https://github.com/donno2048/polyglots',
9+
packages=find_packages(),
10+
license='MIT',
11+
author='Elisha Hollander',
12+
classifiers=['Programming Language :: Python :: 3'],
13+
)

0 commit comments

Comments
 (0)