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
torch-harmonics
Commits
b36f9670
Commit
b36f9670
authored
Jun 07, 2023
by
Boris Bonev
Browse files
Adding infrastructure for PyPI
parent
17782f70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
.github/dependabot.yml
.github/dependabot.yml
+11
-0
.github/workflows/deploy_pypi.yml
.github/workflows/deploy_pypi.yml
+40
-0
No files found.
.github/dependabot.yml
0 → 100644
View file @
b36f9670
version
:
2
updates
:
# Maintain dependencies for GitHub Actions
-
package-ecosystem
:
"
github-actions"
directory
:
"
/"
schedule
:
interval
:
"
daily"
ignore
:
# Offical actions have moving tags like v1
# that are used, so they don't need updates here
-
dependency-name
:
"
actions/*"
\ No newline at end of file
.github/workflows/deploy_pypi.yml
0 → 100644
View file @
b36f9670
name
:
Deploy to Pypi
on
:
release
:
types
:
-
published
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
3.9
uses
:
actions/setup-python@v4
with
:
python-version
:
3.9
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
-
name
:
Install package
run
:
|
python -m pip install -e .
pip install setuptools wheel
-
name
:
Build a binary wheel and a source tarball
run
:
|
python setup.py sdist bdist_wheel
-
name
:
Publish package to TestPyPI
uses
:
pypa/gh-action-pypi-publish@master
with
:
user
:
__token__
password
:
${{ secrets.TEST_PYPI_PASSWORD }}
repository_url
:
https://test.pypi.org/legacy/
# - name: Publish package to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_PASSWORD }}
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