-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcin Dobosz
committed
Jun 21, 2023
1 parent
ca45a01
commit 098fa51
Showing
3 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set output | ||
id: vars | ||
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
|
@@ -23,6 +26,8 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
env: | ||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }} | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
#!/usr/bin/env python | ||
import os | ||
|
||
from setuptools import find_packages, setup | ||
|
||
with open("README.md", "r") as readme_file: | ||
README = readme_file.read() | ||
|
||
|
||
def _get_version(): | ||
version = os.getenv("RELEASE_VERSION", default="1.0") | ||
if version.startswith("v"): | ||
version = version[1:] | ||
return version | ||
|
||
|
||
setup(name='ai_embedder', | ||
version='1.0', | ||
version=_get_version(), | ||
description='This script takes .ai files and save them with linked files embedded.', | ||
author='mdobosz', | ||
author_email='[email protected]', | ||
packages=find_packages(), | ||
long_description="This script takes .ai files and save them with linked files embedded.", | ||
long_description_content_type="text/markdown", | ||
long_description=README, | ||
install_requires=[ | ||
"altgraph==0.17.3", | ||
" pefile==2023.2.7", | ||
|