Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion ai21/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "2.0.0"
VERSION = "1.9.0"
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ exclude_lines = [

[tool.poetry]
name = "ai21"
version = "2.0.0"
version = "1.9.0"
description = ""
authors = ["AI21 Labs"]
readme = "README.md"
Expand Down Expand Up @@ -104,11 +104,12 @@ match = "(main)"
build_command = "pip install poetry && poetry build"
version_source = "tag"
commit_version_number = true
major_on_zero = true
commit_message = "chore(release): v{version} [skip ci]"

[tool.semantic_release.branches.main]
match = "(main)"
prerelease_token = "rc"
prerelease = true

[tool.semantic_release.changelog.environment]
newline_sequence = "\n"
19 changes: 10 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
#!/usr/bin/python3

import os
import codecs

from setuptools import setup, find_packages
from ai21.version import VERSION

current_folder = os.path.abspath(os.path.dirname(__file__))
version_file_path = current_folder + "/ai21/version.py"
readme_path = os.path.abspath(os.path.dirname(__file__))

version_file = {}
with open(version_file_path, "rt") as f:
exec(f.read(), version_file)
version = version_file["__version__"]
with codecs.open(os.path.join(readme_path, "README.md"), encoding="utf-8") as fh:
long_description = "\\n" + fh.read()

setup(
name="ai21",
version=version,
version=VERSION,
license="MIT",
author="ai21 labs",
author="AI21 Labs",
author_email="support@ai21.com",
long_description_content_type="text/markdown",
long_description=long_description,
packages=find_packages(exclude=["tests", "tests.*"]),
keywords=["python", "sdk", "ai", "ai21", "jurassic", "ai21-python", "llm"],
install_requires=[
"requests",
],
# extras_require={"AWS": ["boto3>=1.28.82"]},
)