mirror of
https://github.com/jung-geun/PSO.git
synced 2025-12-20 04:50:45 +09:00
23-09-04
pypi 패키지 배포 실험
This commit is contained in:
20
.github/workflows/pypi.yml
vendored
20
.github/workflows/pypi.yml
vendored
@@ -4,8 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "setup.py"
|
- "setup.py"
|
||||||
branches:
|
- "pso/__init__.py"
|
||||||
- main
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -28,12 +27,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
pip install build
|
||||||
pip install setuptools wheel twine
|
- name: Build package
|
||||||
- name: Build and publish
|
run: python -m build
|
||||||
env:
|
- name: Publish package
|
||||||
TWINE_USERNAME: __token__
|
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
with:
|
||||||
run: |
|
user: __token__
|
||||||
python setup.py bdist_wheel sdist
|
password: ${{ secrets.PYPI_TOKEN }}
|
||||||
twine upload dist/*.whl dist/*.tar.gz
|
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,7 +4,7 @@ __pycache__/
|
|||||||
*$py.class
|
*$py.class
|
||||||
|
|
||||||
.ipynb_checkpoints/
|
.ipynb_checkpoints/
|
||||||
|
.vscode/settings.json
|
||||||
# pypi
|
# pypi
|
||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -17,7 +17,6 @@ setup(
|
|||||||
"pandas",
|
"pandas",
|
||||||
"ipython",
|
"ipython",
|
||||||
"tensorflow<=2.11.1",
|
"tensorflow<=2.11.1",
|
||||||
"tensorboard",
|
|
||||||
],
|
],
|
||||||
packages=find_packages(exclude=[]),
|
packages=find_packages(exclude=[]),
|
||||||
keywords=["pso", "tensorflow", "keras"],
|
keywords=["pso", "tensorflow", "keras"],
|
||||||
|
|||||||
Reference in New Issue
Block a user