"tests/python/pytorch/nn/test_nn.py" did not exist on "248bece63376411e9f32330fe4e99c0c140b4514"
Unverified Commit 09bff70b authored by Hang Zhang's avatar Hang Zhang Committed by GitHub
Browse files

nightly build (#248)

* Create pythonpublish.yml

* Update setup.py

* Update pythonpublish.yml

* Update README.md

* Update setup.py
parent 90c6a951
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine pypandoc
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets. PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets. PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/* --verbose
[![PyPI](https://img.shields.io/pypi/v/torch-encoding.svg)](https://pypi.python.org/pypi/torch-encoding)
[![PyPI Pre-release](https://img.shields.io/badge/pypi--prerelease-v1.1.0-ff69b4.svg)](https://pypi.org/project/torch-encoding/#history)
[![Upload Python Package](https://github.com/zhanghang1989/PyTorch-Encoding/workflows/Upload%20Python%20Package/badge.svg)](https://github.com/zhanghang1989/PyTorch-Encoding/actions)
# PyTorch-Encoding
created by [Hang Zhang](http://hangzh.com/)
......
......@@ -18,11 +18,12 @@ import setuptools.command.install
cwd = os.path.dirname(os.path.abspath(__file__))
version = '1.0.1'
version = '1.1.1'
try:
sha = subprocess.check_output(['git', 'rev-parse', 'HEAD'],
cwd=cwd).decode('ascii').strip()
version += '+' + sha[:7]
from datetime import date
today = date.today()
day = today.strftime("b%d%m%Y")
version += day
except Exception:
pass
......@@ -47,11 +48,7 @@ class develop(setuptools.command.develop.develop):
setuptools.command.develop.develop.run(self)
#subprocess.check_call("python tests/unit_test.py".split())
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
readme = open('README.md').read()
readme = open('README.md').read()
requirements = [
'numpy',
......@@ -79,6 +76,7 @@ setup(
url="https://github.com/zhanghang1989/PyTorch-Encoding",
description="PyTorch Encoding Package",
long_description=readme,
long_description_content_type='text/markdown',
license='MIT',
install_requires=requirements,
packages=find_packages(exclude=["tests", "experiments"]),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment