Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.2.1 - Bugfix/fix packaging error in pipline #894

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
remove third part package in setup
  • Loading branch information
noO0ob committed Jan 22, 2025
commit 1dbb8caf2d268c32af285824939881aefd64a660
2 changes: 1 addition & 1 deletion lyrebird/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
IVERSION = (3, 2, 0)
IVERSION = (3, 2, 1)
VERSION = ".".join(str(i) for i in IVERSION)
LYREBIRD = "Lyrebird " + VERSION
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import runpy
import os
import sys
from packaging import version
from setuptools import setup, find_packages
from setuptools import setup

here = os.path.abspath(os.path.dirname(__file__))

Expand All @@ -26,8 +25,8 @@ def check_version_condition(condition):
if not condition.startswith('python_version'):
return True
op, ver = condition.split(' ', 1)[1].split(' ')
current_ver = version.parse('.'.join(map(str, sys.version_info[:2])))
ver = version.parse(ver.strip('"'))
current_ver = sys.version_info[:2]
ver = tuple(map(int, ver.strip('"').split('.')))
return {
'>': current_ver > ver,
'>=': current_ver >= ver,
Expand Down Expand Up @@ -68,6 +67,7 @@ def check_version_condition(condition):
'lyrebird = lyrebird.manager:main'
]
},
setup_requires=['packaging'],
install_requires=read_requirements('requirements.txt.lock'),
extras_require={
'dev': read_requirements('requirements.dev.txt')
Expand Down