Skip to content

Commit

Permalink
Merge pull request from ArtyomVancyan/master (GH-5)
Browse files Browse the repository at this point in the history
Pre-release changes
  • Loading branch information
ArtyomVancyan authored Dec 1, 2022
2 parents bea1522 + af1b9e5 commit 24a8f40
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to PyPI

on:
release:
types: [ published ]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
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: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fuzzywuzzy>=0.3.0
python-Levenshtein>=0.12.1
46 changes: 46 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright (C) 2022 Artyom Vancyan
# See full copyright notice at __init__.py
import subprocess

import setuptools

version = (
subprocess.run(["git", "describe", "--tags"], stdout=subprocess.PIPE)
.stdout.decode("utf-8")
.strip()
)

assert "-" not in version
assert "." in version

# with open("README.md", "r", encoding="utf-8") as fp:
# long_description = fp.read()

setuptools.setup(
name="fuzzymap",
version=version,
author="Artyom Vancyan",
author_email="[email protected]",
description="",
# long_description=long_description,
# long_description_content_type="text/markdown",
url="https://github.com/pysnippet/fuzzymap",
packages=setuptools.find_packages(),
classifiers=[
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
],
python_requires=">=3.6",
install_requires=[
"fuzzywuzzy>=0.3.0",
"python-Levenshtein>=0.12.1",
],
)

0 comments on commit 24a8f40

Please sign in to comment.