Skip to content

Commit

Permalink
version(v1.1.0): release
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodleBears committed Jun 30, 2024
1 parent 86e6535 commit fffaad6
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 22 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Python Package

on:
push:
tags:
- "v*" # 仅在推送标签时触发

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9" # 选择 Python 版本

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish package to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

- name: Clean up dist folder
run: rm -rf dist
44 changes: 22 additions & 22 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
from distutils.core import setup


with open('README.md') as f:
with open("README.md") as f:
readme = f.read()
with open('LICENSE') as f:
with open("LICENSE") as f:
license = f.read()


setup(
name='langdetect',
version='1.0.5',
description='Language detection library ported from Google\'s language-detection.',
name="langdetect-py",
version="1.1.0",
description="Language detection library ported from Google's language-detection.",
long_description=readme,
author='Michal Mimino Danilak',
author_email='michal.danilak@gmail.com',
url='https://github.com/Mimino666/langdetect',
keywords='language detection library',
packages=['langdetect', 'langdetect.utils', 'langdetect.tests'],
author="DoodleBear",
author_email="yangmufeng233@gmail.com",
url="https://github.com/DoodleBears/langdetect",
keywords="language detection library",
packages=["langdetect", "langdetect.utils", "langdetect.tests"],
include_package_data=True,
install_requires=['six'],
install_requires=["six"],
license=license,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
]
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
],
)

0 comments on commit fffaad6

Please sign in to comment.