From 3f1a0fe7c5775a72141163ccdd593272e512898c Mon Sep 17 00:00:00 2001 From: "Val Neekman (AvidCoder)" Date: Wed, 27 Apr 2022 12:08:35 -0400 Subject: Add cmdLine option --- CHANGELOG.md | 4 ++++ dev.requirements.txt | 2 +- setup.py | 3 ++- slugify/__version__.py | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12d0ff1..2ba0bb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.1.2 + +- Reintroduce the cli options + ## 6.1.1 - Remove type hinting (temporarily) diff --git a/dev.requirements.txt b/dev.requirements.txt index 2b4e781..5f94d7b 100644 --- a/dev.requirements.txt +++ b/dev.requirements.txt @@ -1,3 +1,3 @@ -pycodestyle==2.7.0 +pycodestyle==2.8.0 twine==3.4.1 flake8==4.0.1 \ No newline at end of file diff --git a/setup.py b/setup.py index 8fdb214..c3c4b3b 100755 --- a/setup.py +++ b/setup.py @@ -80,5 +80,6 @@ setup( 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', - ] + ], + entry_points={'console_scripts': ['slugify=slugify.__main__:main']}, ) diff --git a/slugify/__version__.py b/slugify/__version__.py index f971770..55abc97 100644 --- a/slugify/__version__.py +++ b/slugify/__version__.py @@ -5,4 +5,4 @@ __description__ = 'A Python slugify application that also handles Unicode' __url__ = 'https://github.com/un33k/python-slugify' __license__ = 'MIT' __copyright__ = 'Copyright 2022 Val Neekman @ Neekware Inc.' -__version__ = '6.1.1' +__version__ = '6.1.2' -- cgit v1.2.1 From dbe74897764eb8338151e09cfc611e90cef12280 Mon Sep 17 00:00:00 2001 From: eNV25 Date: Tue, 27 Sep 2022 17:28:23 +0530 Subject: Update __init__.py to have __verstion__ variables. (#116) This allows you to use `from slugify import __version__ as slugifyVersion`, while `from slugify.__version__ import __version__ as slugifyVersion` continues to work. --- slugify/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/slugify/__init__.py b/slugify/__init__.py index ac21492..6d3279f 100644 --- a/slugify/__init__.py +++ b/slugify/__init__.py @@ -1,2 +1,10 @@ from .special import * from .slugify import * +from .__version__ import __title__ +from .__version__ import __author__ +from .__version__ import __author_email__ +from .__version__ import __description__ +from .__version__ import __url__ +from .__version__ import __license__ +from .__version__ import __copyright__ +from .__version__ import __version__ -- cgit v1.2.1 From a229e483b6f82f36600e73e7a2fb62dc2f5e7ed3 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 18 Nov 2022 20:36:21 +0200 Subject: Add support for Python 3.11 (#121) * Add support for Python 3.11 * Drop support for EOL Python 3.6 --- .github/workflows/ci.yml | 6 +++--- .github/workflows/dev.yml | 6 +++--- .github/workflows/main.yml | 6 +++--- setup.cfg | 2 -- setup.py | 4 ++-- 5 files changed, 11 insertions(+), 13 deletions(-) delete mode 100644 setup.cfg diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4148354..56e4097 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3] + python: [3.7, 3.8, 3.9, "3.10", 3.11, pypy3.8] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: Install dependencies diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index d0cb401..73f2f07 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3] + python: [3.7, 3.8, 3.9, "3.10", 3.11, pypy3.8] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: Install dependencies diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1e75b7..a4ae9ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,12 +13,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3] + python: [3.7, 3.8, 3.9, "3.10", 3.11, pypy3.8] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: Install dependencies diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3c6e79c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/setup.py b/setup.py index c3c4b3b..65c72f4 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ from setuptools import setup package = 'slugify' -python_requires = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +python_requires = ">=3.7" here = os.path.abspath(os.path.dirname(__file__)) install_requires = ['text-unidecode>=1.3'] @@ -75,11 +75,11 @@ setup( 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - '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', ], entry_points={'console_scripts': ['slugify=slugify.__main__:main']}, ) -- cgit v1.2.1