Skip to content
Snippets Groups Projects
Commit 5369a1f1 authored by Maja Jablonska's avatar Maja Jablonska
Browse files

Change build to pyproject.toml

parent d8329fba
No related merge requests found
Pipeline #16633 failed with stage
in 37 seconds
......@@ -22,7 +22,7 @@ pypi_publish:
- main
stage: publish
script:
- python setup.py sdist bdist_wheel
- python -m build
- python -m twine upload
--skip-existing
--repository-url https://pypi.clarin-pl.eu/
......
[build-system]
requires = ["setuptools"]
[project]
name = "combo"
version = "3.1.5"
authors = [
{name = "Maja Jablonska", email = "maja.jablonska@ipipan.waw.pl"}
]
readme = "README.md"
requires-python = ">=3.6"
keywords = ["nlp", "natural-language-processing", "dependency-parsing"]
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
license = {text = "GPL-3.0"}
dynamic = ["dependencies"]
[project.optional-dependencies]
test = ["pytest", "pylint"]
[tool.setuptools.package-data]
combo = ["config.template.json"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools.packages.find]
exclude = ["docs*", "notebooks*", "tests*"]
[project.scripts]
combo = "combo.main:main"
\ No newline at end of file
......@@ -17,7 +17,7 @@ filelock~=3.9.0
pandas~=2.1.3
pytest~=7.2.2
transformers~=4.27.3
typing_extensions==4.5.0
typing_extensions~=4.5.0
sacremoses~=0.0.53
spacy==3.7.2
urllib3==1.26.6
\ No newline at end of file
spacy~=3.7.2
urllib3~=1.26.6
\ No newline at end of file
import subprocess
from setuptools import find_packages, setup
subprocess.call(['pip', 'install', '--no-deps', '--ignore-requires-python', 'git+https://gitlab.clarin-pl.eu/syntactic-tools/lambo.git#egg=lambo'])
REQUIREMENTS = [
"absl-py~=1.4.0",
"base58~=2.1.1",
"cached-path~=1.3.3",
"conllu~=4.4.1",
"conllutils~=1.1.4",
"dill~=0.3.6",
"importlib-resources~=5.12.0",
"h5py~=3.9.0",
"overrides~=7.3.1",
"torch~=2.0.0",
"torchtext~=0.15.1",
"numpy~=1.24.1",
"pytorch-lightning~=2.0.01",
"requests~=2.28.2",
"tqdm~=4.64.1",
"filelock~=3.9.0",
"pandas~=2.1.3",
"pytest~=7.2.2",
"transformers~=4.27.3",
"sacremoses~=0.0.53",
"spacy~=3.3.1",
"urllib3==1.26.6"
]
setup(
name="combo",
version="3.1.5",
author="Maja Jablonska",
author_email="maja.jablonska@ipipan.waw.pl",
install_requires=REQUIREMENTS,
packages=find_packages(exclude=['tests']),
license="GPL-3.0",
url='https://gitlab.clarin-pl.eu/syntactic-tools/combo',
keywords="nlp natural-language-processing dependency-parsing",
tests_require=['pytest', 'pylint'],
python_requires='>=3.6',
package_data={'combo': ['config.template.json']},
entry_points={'console_scripts': ['combo=combo.main:main']},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment