mirror of
https://github.com/IRBorisov/cctext.git
synced 2025-06-25 21:20:36 +03:00
Add deploy script
This commit is contained in:
parent
1e8166c9ac
commit
61815e7628
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -7,7 +7,8 @@ __pycache__
|
|||
build/
|
||||
whl/
|
||||
venv/
|
||||
output/
|
||||
dist/
|
||||
secrets/
|
||||
|
||||
*egg-info
|
||||
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2024 Ivan
|
||||
Copyright (c) 2024 CIHT CONCEPT, IRBorisov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1 +1,8 @@
|
|||
Long description goes here
|
||||
# cctext
|
||||
|
||||
[](https://badge.fury.io/py/cctext)
|
||||
|
||||
Python library for russian natural language. Allows inflecting complex terms and resolving special syntax references to other entities.
|
||||
Based on [pymorphy3](https://github.com/no-plagiarism/pymorphy3)
|
||||
|
||||
This library lacks user documentation. Example use cases can be found in tests folder.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
Set-Location $PSScriptRoot\..
|
||||
|
||||
$packageName = 'cctext'
|
||||
$output = 'output'
|
||||
$output = 'dist'
|
||||
$python = '.\venv\Scripts\python.exe'
|
||||
if (-not (Test-Path -Path $python -PathType Leaf)) {
|
||||
& 'python' -m venv .\venv
|
||||
& $python -m pip install -r requirements.txt
|
||||
& $python -m pip install -r requirements-build.txt
|
||||
}
|
||||
|
||||
|
@ -13,14 +12,14 @@ if (Test-Path -Path $output\$packageName) {
|
|||
Remove-Item $output\$packageName -Recurse -Force
|
||||
}
|
||||
|
||||
& $python -m build --outdir=$output\$packageName
|
||||
$wheel = Get-Childitem -Path $output\$packageName\*.whl -Name
|
||||
& $python -m build --outdir=$output\
|
||||
$wheel = Get-Childitem -Path $output\*.whl -Name
|
||||
if (-not $wheel) {
|
||||
Write-Error "No wheel generated for $packageName"
|
||||
Exit 1
|
||||
}
|
||||
|
||||
& $python -m pip install -I $output\$packageName\$wheel
|
||||
& $python -m pip install -I $output\$wheel
|
||||
& $python -m unittest
|
||||
$exitcode = $LASTEXITCODE
|
||||
& $python -m pip uninstall -y $packageName
|
||||
|
|
6
scripts/Deploy.ps1
Normal file
6
scripts/Deploy.ps1
Normal file
|
@ -0,0 +1,6 @@
|
|||
Set-Location $PSScriptRoot\..
|
||||
|
||||
$token = Get-Content -Path .\secrets\API_TOKEN.txt
|
||||
$python = 'python'
|
||||
& ${python} -m pip install twine
|
||||
& ${python} -m twine upload dist/* -u __token__ -p ${token}
|
|
@ -1,7 +1,7 @@
|
|||
# Run lint
|
||||
function RunLinters() {
|
||||
$pylint = "$PSScriptRoot\..\venv\Scripts\pylint.exe"
|
||||
$mypy = "$PSScriptRoot\..\venv\Scripts\mypy.exe"
|
||||
$pylint = "${PSScriptRoot}\..\venv\Scripts\pylint.exe"
|
||||
$mypy = "${PSScriptRoot}\..\venv\Scripts\mypy.exe"
|
||||
|
||||
& $pylint cctext
|
||||
& $mypy cctext
|
||||
|
|
15
setup.cfg
15
setup.cfg
|
@ -3,16 +3,25 @@ name = cctext
|
|||
version = file: VERSION
|
||||
author = CIHT CONCEPT, IRBorisov
|
||||
author_email = iborisov@acconcept.ru
|
||||
description = Concept text processing library
|
||||
description = Text processing library for russian languange
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
license = MIT
|
||||
classifiers =
|
||||
Development Status :: 3 - Alpha
|
||||
Intended Audience :: Developers
|
||||
Intended Audience :: Science/Research
|
||||
License :: OSI Approved :: MIT License
|
||||
Natural Language :: Russian
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.12
|
||||
Topic :: Software Development :: Libraries :: Python Modules
|
||||
Topic :: Scientific/Engineering :: Information Analysis
|
||||
Topic :: Text Processing :: Linguistic
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
install_requires =
|
||||
razdel
|
||||
pymorphy3
|
||||
pymorphy3-dicts-ru
|
||||
pymorphy3
|
Loading…
Reference in New Issue
Block a user