Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
opencompass
Commits
ca68637c
"src/regex.cpp" did not exist on "4cfa233888da422d8e6a6211fc0e40f28ab1eb33"
Unverified
Commit
ca68637c
authored
Sep 11, 2023
by
Tong Gao
Committed by
GitHub
Sep 11, 2023
Browse files
[CI] Publish to Pypi (#366)
parent
63ced828
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
27 deletions
+62
-27
.github/workflows/publish-to-pypi.yml
.github/workflows/publish-to-pypi.yml
+26
-0
setup.py
setup.py
+36
-27
No files found.
.github/workflows/publish-to-pypi.yml
0 → 100644
View file @
ca68637c
name
:
deploy
on
:
push
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
jobs
:
build-n-publish
:
runs-on
:
ubuntu-latest
if
:
startsWith(github.event.ref, 'refs/tags')
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
3.7
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Build lagent
run
:
|
pip install wheel
python setup.py sdist bdist_wheel
-
name
:
Publish distribution to PyPI
run
:
|
pip install twine
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
setup.py
View file @
ca68637c
...
...
@@ -10,8 +10,10 @@ class DownloadNLTK(install):
nltk
.
download
(
'punkt'
)
with
open
(
'README_zh-CN.md'
)
as
f
:
readme
=
f
.
read
()
def
readme
():
with
open
(
'README.md'
,
encoding
=
'utf-8'
)
as
f
:
content
=
f
.
read
()
return
content
def
parse_requirements
(
fname
=
'requirements.txt'
,
with_version
=
True
):
...
...
@@ -101,23 +103,30 @@ def get_version():
def
do_setup
():
setup
(
name
=
'opencompass'
,
setup
(
name
=
'opencompass'
,
version
=
get_version
(),
description
=
'A comprehensive toolkit for large model evaluation'
,
# url="",
# author="",
long_description
=
readme
,
url
=
'https://github.com/open-compass/opencompass'
,
long_description
=
readme
(),
long_description_content_type
=
'text/markdown'
,
maintainer
=
'OpenCompass Authors'
,
cmdclass
=
{
'download_nltk'
:
DownloadNLTK
},
setup_requires
=
[
'nltk==3.8'
],
python_requires
=
'>=3.8.0'
,
install_requires
=
parse_requirements
(
'requirements/runtime.txt'
),
license
=
'Apache License 2.0'
,
packages
=
find_packages
(
exclude
=
[
'test*'
,
'paper_test*'
,
'configs'
,
'data'
,
'docs'
,
'tools'
,
'tmp'
,
]),
keywords
=
[
'AI'
,
'NLP'
,
'in-context learning'
],
keywords
=
[
'AI'
,
'NLP'
,
'in-context learning'
,
'large language model'
,
'evaluation'
,
'benchmark'
,
'llm'
],
classifiers
=
[
'Programming Language :: Python :: 3.8'
,
'Programming Language :: Python :: 3.9'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment