Skip to content

Commit 24a8f40

Browse files
Merge pull request from ArtyomVancyan/master (GH-5)
Pre-release changes
2 parents bea1522 + af1b9e5 commit 24a8f40

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

.github/workflows/publish.yml

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

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fuzzywuzzy>=0.3.0
2+
python-Levenshtein>=0.12.1

setup.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright (C) 2022 Artyom Vancyan
2+
# See full copyright notice at __init__.py
3+
import subprocess
4+
5+
import setuptools
6+
7+
version = (
8+
subprocess.run(["git", "describe", "--tags"], stdout=subprocess.PIPE)
9+
.stdout.decode("utf-8")
10+
.strip()
11+
)
12+
13+
assert "-" not in version
14+
assert "." in version
15+
16+
# with open("README.md", "r", encoding="utf-8") as fp:
17+
# long_description = fp.read()
18+
19+
setuptools.setup(
20+
name="fuzzymap",
21+
version=version,
22+
author="Artyom Vancyan",
23+
author_email="[email protected]",
24+
description="",
25+
# long_description=long_description,
26+
# long_description_content_type="text/markdown",
27+
url="https://github.com/pysnippet/fuzzymap",
28+
packages=setuptools.find_packages(),
29+
classifiers=[
30+
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
31+
"Operating System :: OS Independent",
32+
'Programming Language :: Python :: 3.6',
33+
'Programming Language :: Python :: 3.7',
34+
'Programming Language :: Python :: 3.8',
35+
'Programming Language :: Python :: 3.9',
36+
'Programming Language :: Python :: 3.10',
37+
'Programming Language :: Python :: 3.11',
38+
'Programming Language :: Python :: 3.12',
39+
'Topic :: Software Development :: Libraries :: Python Modules',
40+
],
41+
python_requires=">=3.6",
42+
install_requires=[
43+
"fuzzywuzzy>=0.3.0",
44+
"python-Levenshtein>=0.12.1",
45+
],
46+
)

0 commit comments

Comments
 (0)