Skip to content

Commit

Permalink
Fixing github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmosousa committed Nov 19, 2023
1 parent a932d82 commit c5a4ff7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 195 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Build package
run: python -m build
- name: Publish package
Expand Down
188 changes: 5 additions & 183 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,183 +1,5 @@
aiohttp==3.8.4
aiosignal==1.3.1
alabaster==0.7.13
allennlp==2.9.3
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
asttokens==2.0.5
async-timeout==4.0.2
attrs==21.4.0
Babel==2.12.1
backcall==0.2.0
base58==2.1.1
beautifulsoup4==4.11.1
bleach==5.0.1
blis==0.7.8
boto3==1.24.28
botocore==1.27.28
cached-path==1.1.5
cachetools==5.2.0
catalogue==2.0.7
certifi==2022.6.15
cffi==1.15.1
charset-normalizer==2.1.0
click==8.0.4
commonmark==0.9.1
cymem==2.0.6
debugpy==1.6.2
decorator==5.1.1
defusedxml==0.7.1
dill==0.3.5.1
docker-pycreds==0.4.0
docutils==0.19
emoji==2.0.0
entrypoints==0.4
executing==0.9.1
fairscale==0.4.6
fastjsonschema==2.16.1
filelock==3.6.0
frozenlist==1.3.3
furo==2023.3.27
gitdb==4.0.9
GitPython==3.1.27
google-api-core==2.8.2
google-auth==2.9.1
google-cloud-core==2.3.1
google-cloud-storage==2.4.0
google-crc32c==1.3.0
google-resumable-media==2.3.3
googleapis-common-protos==1.56.4
h5py==3.7.0
huggingface-hub==0.8.1
idna==3.3
imagesize==1.4.1
importlib-metadata==6.3.0
importlib-resources==5.9.0
iniconfig==1.1.1
ipykernel==6.15.1
ipython==8.4.0
ipython-genutils==0.2.0
jedi==0.18.1
Jinja2==3.1.2
jmespath==1.0.1
joblib==1.1.0
jsonnet==0.18.0
jsonschema==4.9.0
jupyter-client==7.3.4
jupyter-core==4.11.1
jupyterlab-pygments==0.2.2
langcodes==3.3.0
lmdb==1.3.0
MarkupSafe==2.1.1
matplotlib-inline==0.1.3
mistune==0.8.4
more-itertools==8.13.0
multidict==6.0.4
murmurhash==1.0.7
nbclient==0.6.6
nbconvert==6.5.0
nbformat==5.4.0
nbsphinx==0.9.1
nest-asyncio==1.5.5
networkx==2.8.1
nltk==3.6.7
notebook==6.4.12
numpy==1.23.1
openai==0.27.2
packaging==21.3
pandas==1.4.3
pandoc==2.3
pandocfilters==1.5.0
parso==0.8.3
pathtools==0.1.2
pathy==0.6.2
pexpect==4.8.0
pickleshare==0.7.5
Pillow==9.2.0
pkgutil-resolve-name==1.3.10
pluggy==1.0.0
plumbum==1.8.1
ply==3.11
preshed==3.0.6
prometheus-client==0.14.1
promise==2.3
prompt-toolkit==3.0.30
protobuf==3.20.1
psutil==5.9.1
ptyprocess==0.7.0
pure-eval==0.2.2
py==1.11.0
py-heideltime==1.0.3
py4j==0.10.9.5
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pydantic==1.8.2
Pygments==2.15.0
pyparsing==3.0.9
pyrsistent==0.18.1
pyspark==3.3.0
pytest==7.1.2
python-dateutil==2.8.2
pytz==2022.2
PyYAML==6.0
pyzmq==23.2.0
regex==2022.7.9
requests==2.28.1
rich==12.5.1
rsa==4.8
s3transfer==0.6.0
sacremoses==0.0.53
scikit-learn==1.1.1
scipy==1.8.1
Send2Trash==1.8.0
sentencepiece==0.1.96
sentry-sdk==1.7.1
setproctitle==1.2.3
shortuuid==1.0.9
six==1.16.0
smart-open==5.2.1
smmap==5.0.0
snowballstemmer==2.2.0
soupsieve==2.3.2.post1
spacy==3.2.4
spacy-legacy==3.0.9
spacy-loggers==1.0.2
spark-nlp==4.1.0
sparknlp==1.0.0
sphinx==6.1.3
sphinx-basic-ng==1.0.0b1
sphinx-copybutton==0.5.1
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
srsly==2.4.3
stack-data==0.3.0
tabulate==0.8.9
tensorboardX==2.5.1
termcolor==1.1.0
terminado==0.15.0
thinc==8.0.17
threadpoolctl==3.1.0
tinycss2==1.1.1
tokenizers==0.12.1
tomli==2.0.1
torch==1.11.0
torchvision==0.12.0
tornado==6.2
tqdm==4.64.0
traitlets==5.3.0
transformers==4.18.0
typer==0.4.2
typing-extensions==4.3.0
urllib3==1.26.10
wandb==0.12.21
wasabi==0.9.1
wcwidth==0.2.5
webencodings==0.5.1
xmltodict==0.12.0
yarl==1.8.2
zipp==3.8.1
nltk
xmltodict
networkx>=2.8.1
py_heideltime
cached-path
37 changes: 28 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,44 @@
from setuptools import find_packages
from setuptools import setup
from setuptools import find_packages, setup
import subprocess
import os
from pathlib import Path

PWD = Path(__file__).parent.resolve()

README = (PWD / "README.md").read_text(encoding="utf-8")


version = (
subprocess.run(["git", "describe", "--tags"], stdout=subprocess.PIPE)
.stdout.decode("utf-8")
.strip()
)

if "-" in version:
# See: https://peps.python.org/pep-0440/#local-version-segments
v, i, s = version.split("-")
version = v + "+" + i + ".git." + s

# assert os.path.isfile("tieval/version.py")
version_path = PWD / "tieval" / "VERSION"
version_path.write_text(f"{version}\n", encoding="utf-8")

with open("README.md", encoding="utf-8") as f:
README = f.read()

setup(
name="tieval",
version='{{VERSION_PLACEHOLDER}}',
version=version,
url="https://github.com/LIAAD/tieval",
license='MIT',
author="Hugo Sousa",
author_email="[email protected]",
description=
"This framework facilitates the development and test of temporal-aware models.",
description="This framework facilitates the development and test of temporal-aware models.",
long_description_content_type='text/markdown',
long_description=README,
packages=find_packages(exclude=('tests*',)),
package_data={"tieval": ["VERSION"]},
install_requires=[
"allennlp==2.9.3",
# "allennlp==2.9.3",
"nltk",
"tabulate",
"xmltodict",
"networkx>=2.8.1",
"py_heideltime",
Expand Down

0 comments on commit c5a4ff7

Please sign in to comment.