update nightly & upgrade Twine (#5458)
* update used Twine
* .
* .
* install
* install
* .
* .
* .
* .
* .
* .
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 9611a7f897
)
This commit is contained in:
parent
a80e37b95b
commit
8db2b2defd
|
@ -1,12 +0,0 @@
|
|||
import os
|
||||
import re
|
||||
|
||||
PATH_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||
|
||||
PATH_SETUP = os.path.join(PATH_ROOT, 'setup.py')
|
||||
print(f"rename package '{PATH_SETUP}'")
|
||||
with open(PATH_SETUP, 'r') as fp:
|
||||
setup = fp.read()
|
||||
setup = re.sub(r'name=[\'"]pytorch-lightning[\'"]', 'name="pytorch-lightning-nightly"', setup)
|
||||
with open(PATH_SETUP, 'w') as fp:
|
||||
fp.write(setup)
|
|
@ -3,7 +3,7 @@ name: Install pkg
|
|||
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
||||
on: # Trigger the workflow on push or pull request, but only for the master branch
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
pull_request:
|
||||
branches: [master, "release/*"]
|
||||
|
||||
|
@ -27,13 +27,13 @@ jobs:
|
|||
|
||||
- name: Prepare env
|
||||
run: |
|
||||
pip install check-manifest "twine>=3.2"
|
||||
pip install check-manifest "twine==3.2" setuptools wheel
|
||||
|
||||
- name: Create package
|
||||
run: |
|
||||
check-manifest
|
||||
# python setup.py check --metadata --strict
|
||||
python setup.py sdist
|
||||
python setup.py sdist bdist_wheel
|
||||
|
||||
- name: Check package
|
||||
run: |
|
||||
|
@ -46,12 +46,18 @@ jobs:
|
|||
# this is just a hotfix because of Win cannot install it directly
|
||||
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
|
||||
|
||||
- name: Install package
|
||||
- name: Install | Uninstall package - archive
|
||||
run: |
|
||||
# pip install virtualenv
|
||||
# virtualenv vEnv --system-site-packages
|
||||
# source vEnv/bin/activate
|
||||
pip install dist/*
|
||||
cd .. & python -c "import pytorch_lightning as pl ; print(pl.__version__)"
|
||||
# deactivate
|
||||
# rm -rf vEnv
|
||||
# install as archive
|
||||
pip install dist/*.tar.gz
|
||||
cd ..
|
||||
python -c "import pytorch_lightning as pl ; print(pl.__version__)"
|
||||
pip uninstall -y pytorch-lightning
|
||||
|
||||
- name: Install | Uninstall package - wheel
|
||||
run: |
|
||||
# install as wheel
|
||||
pip install dist/*.whl
|
||||
cd ..
|
||||
python -c "import pytorch_lightning as pl ; print(pl.__version__)"
|
||||
pip uninstall -y pytorch-lightning
|
|
@ -3,7 +3,7 @@ name: CI basic testing
|
|||
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
||||
on: # Trigger the workflow on push or pull request, but only for the master branch
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
pull_request:
|
||||
branches: [master, "release/*"]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name: PyTorch & Conda
|
|||
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
||||
on: # Trigger the workflow on push or pull request, but only for the master branch
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
pull_request:
|
||||
branches: [master, "release/*"]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name: CI complete testing
|
|||
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
||||
on: # Trigger the workflow on push or pull request, but only for the master branch
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
pull_request:
|
||||
branches: [master, "release/*"]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ name: TPU tests
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
# TODO: temporal disable TPU testing until we find way how to pass credentials to forked PRs
|
||||
# pull_request:
|
||||
# branches:
|
||||
|
|
|
@ -2,7 +2,7 @@ name: "Check Code Format"
|
|||
|
||||
on: # Trigger the workflow on push or pull request, but only for the master branch
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
pull_request:
|
||||
branches: [master, "release/*"]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name: "Docs check"
|
|||
|
||||
on: # Trigger the workflow on push or pull request, but only for the master branch
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
pull_request:
|
||||
branches: [master, "release/*"]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name: Publish Docker Releases
|
|||
# https://github.com/docker/build-push-action
|
||||
on:
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name: PyPI Release
|
|||
# https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
||||
on: # Trigger the workflow on push or pull request, but only for the master branch
|
||||
push:
|
||||
branches: [master, "release/*"] # include release branches like release/1.0.x
|
||||
branches: [master, "release/*"]
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -186,7 +186,7 @@
|
|||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2018-2020 William Falcon
|
||||
Copyright 2018-2021 William Falcon
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
"""Root package info."""
|
||||
|
||||
import logging as python_logging
|
||||
import os
|
||||
import time
|
||||
|
||||
_this_year = time.strftime("%Y")
|
||||
__version__ = '1.2.0dev'
|
||||
__author__ = 'William Falcon et al.'
|
||||
__author_email__ = 'waf2107@columbia.edu'
|
||||
__license__ = 'Apache-2.0'
|
||||
__copyright__ = 'Copyright (c) 2018-2020, %s.' % __author__
|
||||
__copyright__ = f'Copyright (c) 2018-{_this_year}, {__author__}.'
|
||||
__homepage__ = 'https://github.com/PyTorchLightning/pytorch-lightning'
|
||||
# this has to be simple string, see: https://github.com/pypa/twine/issues/522
|
||||
__docs__ = (
|
||||
|
@ -33,9 +38,6 @@ Documentation
|
|||
- https://pytorch-lightning.readthedocs.io/en/stable
|
||||
"""
|
||||
|
||||
import logging as python_logging
|
||||
import os
|
||||
|
||||
_logger = python_logging.getLogger("lightning")
|
||||
_logger.addHandler(python_logging.StreamHandler())
|
||||
_logger.setLevel(python_logging.INFO)
|
||||
|
|
|
@ -6,7 +6,7 @@ pytest>=5.0
|
|||
flake8>=3.6
|
||||
flake8-black
|
||||
check-manifest
|
||||
twine==1.13.0
|
||||
twine==3.2
|
||||
# scipy>=0.13.3
|
||||
scikit-learn>=0.22.2
|
||||
scikit-image>=0.17.2
|
||||
|
|
Loading…
Reference in New Issue