diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 31e9aee..84323d9 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -4,6 +4,8 @@ on: push: branches: - main + tags: + - "v*" jobs: publish: diff --git a/requirements.txt b/requirements.txt index 35b6a32..7562ce1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,6 +14,7 @@ markdown-it-py==3.0.0 mdurl==0.1.2 more-itertools==10.3.0 nh3==0.2.18 +packaging==24.1 pkginfo==1.10.0 pycparser==2.22 Pygments==2.18.0 @@ -24,6 +25,7 @@ rfc3986==2.0.0 rich==13.7.1 SecretStorage==3.3.3 setuptools==72.1.0 +setuptools-scm==8.1.0 twine==5.1.1 urllib3==2.2.2 wheel==0.44.0 diff --git a/setup.py b/setup.py index e466e20..7f6045c 100644 --- a/setup.py +++ b/setup.py @@ -5,14 +5,15 @@ setup( name='linq-tool', - version='0.1.4', + use_scm_version=True, + setup_requires=['setuptools-scm'], description='A LINQ-like library for Python', - long_description=long_description, + long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Zozimo Fernandez', author_email='zozi.fer96@gmail.com', + url='https://github.com/tu_usuario/linq-tool', packages=find_packages(), - url='https://github.com/Zozi96/linq_tool', classifiers=[ 'Programming Language :: Python :: 3', 'License :: OSI Approved :: MIT License',