Skip to content

Commit def8f0f

Browse files
committed
Pytomata v.1.6.0
Simulates Automatons Acceptors DFA, NFA, PDA and Turing Machines
1 parent 74d91ff commit def8f0f

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/publish.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Package to PyPI
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.9
20+
21+
- name: Build and publish package
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install --upgrade twine
25+
pip install wheel
26+
python setup.py sdist bdist_wheel
27+
python -m twine upload --repository pypi dist/*
28+
env:
29+
TWINE_USERNAME: __token__
30+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

setup.py

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
from setuptools import setup, find_packages
2+
import os
3+
4+
here = os.path.abspath(os.path.dirname(__file__))
5+
6+
with open("README.md", "r", encoding="utf-8") as readme:
7+
long_description = readme.read()
8+
9+
setup(
10+
name="Pytomata",
11+
version="1.6.0",
12+
author="arhcoder",
13+
author_email="arhcoder@gmail.com",
14+
description="Simulates Automatons Acceptors DFA, NFA, PDA and Turing Machines",
15+
long_description=long_description,
16+
long_description_content_type="text/markdown",
17+
url="https://github.com/arhcoder/Pytomata",
18+
license="MIT License",
19+
packages=find_packages(),
20+
include_package_data=True,
21+
project_urls={
22+
"Bug Tracker": "https://github.com/arhcoder/Pytomata/issues",
23+
"Contribution": "https://github.com/arhcoder/Pytomata/pulls"
24+
},
25+
classifiers=[
26+
"Programming Language :: Python :: 3",
27+
"License :: OSI Approved :: MIT License",
28+
"Operating System :: OS Independent"
29+
],
30+
package_dir={"": "src"},
31+
python_requires=">=3.6"
32+
)

0 commit comments

Comments
 (0)